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 b6fb59c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 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,9 @@ 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 b6fb59c

Please sign in to comment.