You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/custom-locations.md
+4-14Lines changed: 4 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Follow the steps below to learn how you can specify a custom location for your p
10
10
11
11
## 1. Disable automatic pageviews
12
12
13
-
To specify a custom location for your event, you must disable automatic pageview tracking. Update your snippet to set `autoCapturePageviews` to `false.
13
+
To specify a custom location for your event, you must disable automatic pageview tracking. Update your snippet to set `autoCapturePageviews` to `false`.
14
14
15
15
```javascript
16
16
plausible.init({
@@ -22,20 +22,10 @@ plausible.init({
22
22
23
23
Once you've added the manual extension, the `pageview` event won't be sent automatically anymore: you'll have to trigger it manually.
24
24
25
-
To trigger events manually, you need to add the following script after your regular Plausible tracking script:
25
+
To trigger your pageview event, call the following javascript function:
26
26
27
-
```html
28
-
<!-- define the `plausible` function to manually trigger events -->
0 commit comments