prezly / analytics

Prezly Analytics package based on analytics-next by Segment
MIT License
2 stars 1 forks source link

[DEV-12776] Remove automatic page tracking call #299

Closed kudlajz closed 4 months ago

kudlajz commented 4 months ago

In order to have more control over when page tracking call is fired, I'm disabling the automatic page call in this package and it is now the responsibility of the consumer code to trigger this.

This also means we no longer need onPageView prop, since you can pass the data directly to the page function.

This change is needed to fix https://github.com/prezly/theme-nextjs-bea/pull/1126.