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.
In order to have more control over when
page
tracking call is fired, I'm disabling the automaticpage
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 thepage
function.This change is needed to fix https://github.com/prezly/theme-nextjs-bea/pull/1126.