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"anddata-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.
Sidder du stadig fast?
Skriv til [email protected] med dit domæne og det, du har prøvet. Loggede kunder kan også oprette en supportsag fra dashboardet.