Changelog · Cloudflare Zaraz docs

It seems the internals of Zaraz tracking SPAs changed in the last month or so, perhaps breaking the previous implementations. In Dec 2023 @yo'av recommended an approach like this:
  window.zarazData['l'] = document.location.href;
  window.zarazData['t'] = document.title;
  window.zarazData['r'] = prevLocation;
  window.zaraz.pageVariables = {};
  window.zaraz.track('__zarazSPA');

but now I see zaraz.spaPageview() was released in Feb 2024 https://developers.cloudflare.com/zaraz/changelog/#2024-02-15 and it appears that perhaps the prior approach is not working correctly anymore? I searched this discord and there were zero mentions of spaPageview()
Cloudflare Docs
Run third-party tools and services on the cloud, and improve the loading speed and security of your website.
Changelog · Cloudflare Zaraz docs
Was this page helpful?