SukkaW / cloudflare-workers-async-google-analytics

:cloud: The Cloudflare Workers implementation of an async Google Analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pageview event in an SPA

winstef opened this issue · comments

Hi,

Is it possible to use your code in a single page application (NextJS) and send an event (e.g: ga('send', 'pageview') ) whenever a new page is loaded so we can track pages as well?

thanks

commented

Maybe expose a function to the global could achieve this.

commented

Done in 4e6ac69 and launched in cfga@1.0.3.

1.0.3 Release Notes.

thanks, works great!