Skip to content

Commit

Permalink
Fixing docs as per #131
Browse files Browse the repository at this point in the history
  • Loading branch information
4lejandrito committed Jan 15, 2025
1 parent 9cad616 commit 242b3ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default Home() {
}
```

If are using [the app directory](https://beta.nextjs.org/docs/routing/fundamentals#the-app-directory) include `PlausibleProvider` inside the root layout:
If are using [the app directory](https://beta.nextjs.org/docs/routing/fundamentals#the-app-directory) use `PlausibleProvider` inside the root layout:

```jsx
// app/layout.js
Expand All @@ -50,10 +50,10 @@ import PlausibleProvider from 'next-plausible'
export default function RootLayout({ children }) {
return (
<html>
<head>
<PlausibleProvider domain="example.com" />
</head>
<body>{children}</body>
<body>
<PlausibleProvider domain="example.com" />
{children}
</PlausibleProvider></body>
</html>
)
}
Expand Down

0 comments on commit 242b3ae

Please sign in to comment.