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

Gtag#1034 #1067

Merged
merged 4 commits into from Nov 12, 2023
Merged

Gtag#1034 #1067

merged 4 commits into from Nov 12, 2023

Conversation

ddfridley
Copy link
Collaborator

This is a one file change to implement google's gtag on the /companies page so we can track user interaction there. In the future we could extend this to metrics.js - but lets do one step at a time. Also, this version will not throw errors if GOOGLE_PROPERTY_ID is not set.

I have tested this on democracy-lab-dev.herokuapp.com with the GOOGLE_PROPERTY_ID env var and the GOOGLE_TAGS_ID set, which is how we have it set in production.

In production we are using the GOOGLE_PROPERTY_ID that corresponds to the google analytics data stream that we see at analytics.google.com.

The GOOGLE_TAGS_ID that we have set, is not what analytics is telling me to use to setup tag manager. So, I suspect that the GOOGLE_TAGS_ID is sending data to some other account and we are not seeing it.

A future step might be to change the GOOGLE_TAGS_ID but lets' leave that for now. We are trying to get to data on the companies page so we can make improvements.

@marlonkeating marlonkeating changed the base branch from master to sprint-96-release November 12, 2023 22:23
@marlonkeating marlonkeating merged commit b02d4de into sprint-96-release Nov 12, 2023
@marlonkeating marlonkeating mentioned this pull request Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need Google Analytics Tags on /companies to help study conversion
2 participants