Skip to content

Commit 7d5eacc

Browse files
committed
Update cloudflare docs
1 parent 2f3ee0b commit 7d5eacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/proxy/guides/cloudflare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Next, in the 'Route' field enter the URL prefix where you would like to host the
140140

141141
Then select your domain name in the 'Zone' field. Then click on the 'Add route' button. After clicking 'Add route', the script should be accessible at the subdirectory URL of your site: `https://example.com/qwerty/your-folder-name/script.js`.
142142

143-
At this point you can change your Plausible script tag in your site header to reference the new URL. It's also important to specify the `data-api` attribute to make sure data is sent through the worker as well. The new snippet in your site header should look like this:
143+
At this point you can change your Plausible script tag in your site header to reference the new URL. It's also important to specify the `endpoint` option in `plausible.init()` to make sure data is sent through the worker as well. The new snippet in your site header should look like this:
144144

145145
```html
146146
<script async src="/qwerty/your-folder-name/script.js"></script>

0 commit comments

Comments
 (0)