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

GA not recording org and publisher correctly #4743

Open
3 tasks
tdlowden opened this issue May 8, 2024 · 1 comment
Open
3 tasks

GA not recording org and publisher correctly #4743

tdlowden opened this issue May 8, 2024 · 1 comment
Assignees
Labels
bug Software defect or bug

Comments

@tdlowden
Copy link
Member

tdlowden commented May 8, 2024

After implementing CSS Selectors to collect organization and publisher (when present), GA is showing that the implementation worked, but it is recording those variables for some pageviews and not all.

Image

How to reproduce

  1. Log into datagovGA4
  2. Create a report to show datagov_dataset_organization
  3. Filter by a specific dataset URL
  4. witness the variance in organization and (not set)

Expected behavior

100% of dataset pageviews will attribute a datagov_dataset_organization and a datagov_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 and publisher, and ~40% record (not set)

Sketch

  • Research activity to determine issue or if it is related to bots
  • Make necessary changes
  • Validate changes work in GA
@tdlowden tdlowden added the bug Software defect or bug label May 8, 2024
@tdlowden
Copy link
Member Author

New goal: Have the organization and publisher drawn from CKAN directly to populate a dataLayer array upon pageload, like usa.gov does:

Image

This would apply on all pages related to a dataset, for example:

Should all have the same array with organization set to State of Washington and publisher set to data.wa.gov

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software defect or bug
Projects
Status: 📟 Sprint Backlog [7]
Development

No branches or pull requests

2 participants