Add your tracking script¶
Introduction¶
In this article you’ll learn to set up your tracking script so as not to miss any details.
Page tracking¶
Because Foleon Docs are Single Page Applications, we need to add some triggers to identify page changes.
foleon('onPageChange', function() {
// your tracking send beacon
});
Event tracking¶
These events will help you get more details about reader behavior.
Category | Action | Label |
---|---|---|
Scroll | down, up | 25%, 50%, 75%, 100% |
button | click | url |
foleon('onEvent', function(event) {
// your tracking send beacon
});
Last update:
2023-11-06