Zaraz doesn't fire `PageView` when navigating on SvelteKit app

I deploy a SvelteKit app and install Zaraz GA4.

It comes with a default PageView action and trigger.

I turned on Single Page App support already.

However, when navigating around the web app, zaraz’s not able to detect history change.

May I ask if you’re using Cloudflare Pages or? :thinking:

I was using Cloudflare Pages.

Later I found out it was a SvelteKit bug that’s fixed 2 weeks ago.

Just update to latest Sveltekit version is fine.

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.