Closed CryptoTotalWar closed 4 months ago
Closing for now as issue is no longer occurring @CryptoTotalWar .
Just got it again.
It still works fine... but we will need to investigate this when we're looking into the Google Analytics stuff. We can keep this closed for now...
Describe the bug
In the deployed version of our Docusaurus site, we are encountering a JavaScript error in the browser console stating TypeError: window.gtag is not a function. This issue seems to affect the functionality of Google Analytics tracking on the site.
To Reproduce
Expected behavior
Google Analytics should track page views without any errors. The window.gtag function should be defined and work correctly to send tracking information to Google Analytics.
Screenshots
Platform (please complete the following information)
Additional context
Encountered a JavaScript error: window.gtag is not a function, suggesting issues with the script execution of Google Tag Manager's (gtag.js). This issue persists across multiple browsers and rollback attempts, affecting potential user engagement tracking across the documentation site.
Here's some context from the last PR that was related to gtag implementation but its related to the polykey.com repo... i haven't checked there yet if the same problem/warning is persisting. https://github.com/MatrixAI/polykey.com/pull/45
I also have access to the Google Analytics account to verify the ID, etc.
Notify maintainers