-
Notifications
You must be signed in to change notification settings - Fork 110
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
Create association between GA and CKAN to group page views by agency #4567
Comments
I believe we would implement this at the harvest source level so we can associate datasets with each unique ID. |
@dlennox24 attempted to do this by adding the values to the datalayer. When testing the solution we found:
I ended up working with a colleague to identify a spot where publisher and organization appeared in the DOM, but would not be translated. We thought we found this in the breadcrumbs: So we created CSS Selector variables to capture that URL, and then parse it to separate the query params for publisher and organization Unfortunately, I then discovered that some pages do not have a publisher, and in that case, the entire So, I re-wrote a bunch of the variables to look the the last child
I added DATAGOV_dataset_organization and DATAGOV_dataset_publisher as custom dimensions in GA and published the GTM container to prod. Testing looked good on this in debug mode, but tomorrow when I can check GA will be the real QA. |
This is working, but not sufficiently. We are getting 60% of pageviews with Going to create a separate ticket to troubleshoot. |
There's a draft PR attached to this ticket that should be addressed. @robert-bryson can you take a look at that and update the status? Thanks. |
moving to in review until the above gets resolved so we don't lose track of it. |
As @tdlowden mentioned, the work was complete as designed. However, in practice the data flow was inconsistent. So #4743 was created to troubleshoot. |
User Story
In order to improve transparency to agency partners and the public, Data.gov needs to integrate unique tracking groups of agency partners and their datasets. This will allow Data.gov to publish statistics on the agency partners dataset viewership.
Acceptance Criteria
THEN Data.gov integrate Google Analytics 4 and CKAN to group datasets into separate analytic data groups to determine overall agency viewership
Background
With the completed migration to GA4 and the integration into CKAN, Data.gov can now set up unique tracking groups for each agency.
Sketch
The text was updated successfully, but these errors were encountered: