Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google analytics not working in Arches with existing code #11144

Closed
junaidjabbar01 opened this issue Jul 8, 2024 · 1 comment
Closed

Google analytics not working in Arches with existing code #11144

junaidjabbar01 opened this issue Jul 8, 2024 · 1 comment

Comments

@junaidjabbar01
Copy link

After adding a google analytics measurement ID in Arches under Web Analytics in System Data Settings, there are no recorded analytics on google analytics page and it mentions 'No data received from your website yet'. I have noticed the code snippet in https://github.com/archesproject/arches/blob/master/arches/app/templates/base.htm#L96 is different to what I see in the latest tag manager from google. So updating this part in the base.htm with the following code starts recording analytics successfully

<!-- Google tag (gtag.js) -->
        <script async src="https://www.googletagmanager.com/gtag/js?id={{app_settings.GOOGLE_ANALYTICS_TRACKING_ID}}"></script>
        <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
          gtag('js', new Date());

        gtag('config', '{{app_settings.GOOGLE_ANALYTICS_TRACKING_ID}}');
        </script>
@jacobtylerwalls
Copy link
Member

Thanks for the report. Duplicate of #11131

@jacobtylerwalls jacobtylerwalls closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants