Skip to content

Commit c07bc2a

Browse files
Update docusaurus-integration.md
1 parent ec01da0 commit c07bc2a

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

docs/docusaurus-integration.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ title: How to add the script to your Docusaurus site
44

55
import useBaseUrl from '@docusaurus/useBaseUrl';
66

7-
There are several simple ways to integrate Plausible Analytics with your Docusaurus documentation site. Let's take a look at them:
7+
There is a Plausible Analytics community plugin that allows you to integrate Plausible Analytics with your Docusaurus documentation site.
88

9-
## Option 1. Inject the script through the docusaurus.config.js
10-
11-
Add this Plausible Analytics snippet into your "**docusaurus.config.js**" file (make sure to change "**yourdomain.com**" to the domain name that you added to your Plausible account).
12-
13-
This is how [we've integrated Plausible](https://github.com/plausible/docs/commit/08d804dea840f10c49e4118b5ddd5fe0bc722fd8) into our very own Docusaurus-powered documentation:
14-
15-
```
16-
module.exports = {
17-
scripts: [{src: 'https://plausible.io/js/script.js', defer: true, 'data-domain': 'yourdomain.com'}],
18-
};
19-
```
20-
21-
## Option 2: Plausible Analytics community plugin
22-
23-
"**[A Docusaurus plugin for Plausible Analytics](https://github.com/infracost/docusaurus-plugin-plausible)**". Built and maintained by Alistair Scott and the [Abar Team](https://www.abar.tech/).
24-
25-
Now you can go to your website and verify whether Plausible Analytics script has been added and to your Plausible Analytics account to see whether the stats are being tracked. See here [how to verify the integration](troubleshoot-integration.md).
9+
"**[A Docusaurus plugin for Plausible Analytics](https://github.com/infracost/docusaurus-plugin-plausible)**".

0 commit comments

Comments
 (0)