Back to the help center

Troubleshooting

Single-page apps and route changes

Keep blocking working across client-side navigation

Ensure the banner and blocking work as users navigate without full reloads.

Key points

  • The banner loads once; consent state persists.
  • When routes change, your app may load new trackers—ensure they respect consent.

What to do

  • On route change, check consent before initializing any new analytics/ads.
  • If using data attributes, ensure dynamically injected scripts also use type="text/plain" and data-cookieconsent.
  • For GTM, rely on Consent Mode; tags stay blocked until consent regardless of route changes.

Testing

  • In your SPA, navigate across routes in incognito.
  • Verify new page components don’t load trackers before consent.
  • Use console/network to confirm no new requests fire on navigation without consent.

Still stuck?

Email [email protected] with your domain and what you tried. Signed-in customers can also open a ticket from the dashboard.