-
Notifications
You must be signed in to change notification settings - Fork 115
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
GA not recording org
and publisher
correctly
#4743
Comments
New goal: Have the This would apply on all pages related to a dataset, for example:
Should all have the same array with This tutorial should help: https://www.analyticsmania.com/post/ultimate-google-tag-manager-data-layer-tutorial/ From there, I can use GTM dataLayer variables to collect the data and send on pageviews and file downloads to GA, to associate those events with the org. |
@robert-bryson any updates here? |
@robert-bryson , please update the ticket. |
The current approach (JS Google Tag Manger script) is the recommended by Tag Manager but not working for us, obviously. There is a way to generate it via an official server-side tagging option. The docs describe a very different scenario than what is presented above so I am working on achieving the above with the official functionality if possible. |
Draft PR at GSA/ckanext-datagovtheme#204. |
FYI: Thanks to @jbrown-xentity for a quick fix PR |
@robert-bryson added
which resolved the GTM issue. Moving to blocked until pentesting is done so we can push to prod |
Related to GSA/data.gov#4743
Pushed to prod. Subject to data populating, will QA Wednesday |
After implementing CSS Selectors to collect
organization
andpublisher
(when present), GA is showing that the implementation worked, but it is recording those variables for some pageviews and not all.How to reproduce
Expected behavior
100% of dataset pageviews will attribute a
datagov_dataset_organization
and adatagov_dataset_publisher
. Each dataset page will contain one value per variable, and not a value and also (not set) for some pageviews.Actual behavior
~60% of pageviews record an
org
andpublisher
, and ~40% record(not set)
Sketch
The text was updated successfully, but these errors were encountered: