Skip to content

Commit 13f0d6f

Browse files
authored
Merge pull request #601 from plausible/non-interactive-events
Documentation for non-interactive custom events
2 parents 2a9f76c + 4245377 commit 13f0d6f

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

docs/custom-props/for-custom-events.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,10 @@ All you have to do is add the second argument to this function call with the cus
5656
plausible('Download', {props: {method: 'HTTP', position: 'footer'}})
5757
```
5858

59+
To mark an event as non-interactive, you can set the `interactive` argument to `false`. This will exclude the event from bounce rate calculations.
60+
61+
```js
62+
plausible('Custom Event', {interactive: false})
63+
```
64+
5965
</details>

docs/events-api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ For example, to track a purchase of US$ 1.322,22, your request body might look l
144144
```
145145
<hr / >
146146

147+
**interactive** <Optional />
148+
149+
Whether the event is interactive. By default, Plausible will assume all events are interactive and will be counted for bounce detection.
150+
151+
By marking a custom event as non-interactive, it will not be counted towards bounce rate calculationsp.
152+
147153
### Debugging
148154

149155
By default, the API returns HTTP 202 Accepted. However, if you want to debug a request and see if the `X-Forwarded-For` header is set correctly, you can add the `X-Debug-Request` header to your request. If set to `true`, the API will return an HTTP 200 OK and the IP address which we will use for unique visitor counting.

docs/metrics-definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The average revenue of orders tracked. This is a part of the [revenue attributio
1616

1717
The percentage of visitors with a single page view. A visitor "bounces" away and leaves your site after only viewing a single page.
1818

19-
If you have issues with high bounce rates on your site, you can try to set up some [custom events](custom-event-goals.md). All custom events are considered interactive so any clicks on those events will count towards the bounce rate.
19+
If you have issues with high bounce rates on your site, you can try to set up some [custom events](custom-event-goals.md). Custom events are by default considered interactive and will count towards the bounce rate.
2020

2121
## Browser
2222

0 commit comments

Comments
 (0)