Direct script, WordPress and Shopify installations
Direct script installations
Google tags load before CookieHub
- Ensure that the CookieHub script is loaded before any
gtag.js, Google Analytics, or Google Ads scripts. - Avoid using
asyncordeferon the CookieHub script. - Verify that performance optimization tools are not delaying the CookieHub script.
- Inspect the page source and browser network requests to verify execution order.
Correct ordering:
<script src="https://cookiehub.net/..." type="text/javascript"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX"></script>Incorrect ordering:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX"></script>
<script src="https://cookiehub.net/..." type="text/javascript"></script>WordPress
Consent Mode issues on WordPress websites
- Ensure that caching or optimization plugins are not delaying the CookieHub script.
- Disable JavaScript deferral or delay features for CookieHub.
- Avoid installing multiple consent management plugins simultaneously.
- Verify that GTM plugins are not injecting Google tags before CookieHub initializes.
- If using GTM, use the
Consent Initialization - All Pagestrigger.
Shopify
Consent Mode issues on Shopify websites
- Verify that CookieHub is loaded before any manually installed Google Analytics or Google Ads scripts.
- Review theme customizations and third-party apps that may inject tracking scripts before CookieHub loads.
- Avoid duplicate Google tag installations through both Shopify integrations and GTM.
- Use Google Tag Assistant and GTM Preview mode to verify the execution order.