-
Notifications
You must be signed in to change notification settings - Fork 127
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
Problem: G4 analytics does not track pageviews from clicks in full-width treeview #1606
Comments
Fix requires use of manual page view events with gtag. |
Moving this back to refining to see if while we investigate this. Also, adding a docs issue to our backlog for the next release to make sure we've properly documented how to use G4 tags in AtoM, as well as adding a note about tracking page views when there aren't full page reloads (as is the case with Full width tree view) |
First test now that data tracking has been enabled on https://melanie.analyst.accesstomemory.net/ Clicked through each of the treeview pages at least twice each: Will check again later/tomorrow for updates |
Day 1 of testing: Also tested "1st Coniston Wolf Cub Pack" and its descendant "Item 1 - Records of the 1st Coniston Wolf Cub Pack, Group Charter 84, Local Association of Sudbury, Ontario" Day 2 of testing: Will conclude that I might have refreshed on Publications and Memoribilia (from Jim Heldmann fonds) since those were present early in testing. Since "Item 1 - Records of the 1st Coniston Wolf Cub Pack, Group Charter 84, Local Association of Sudbury, Ontario", "Programs", and "Personal accounts" were not tracked, can confirm that G4 Google Analytics module does not capture different node clicks in the full-width treeview as individual page clicks. |
Day 3 of testing: added the following changes to melanie-atom's
|
Update Bug was a result of fullwidth treeview not updating document title so GA was receiving incorrect information. Once we updated the document title, the correct information is sent to GA for tracking. |
Bug was a result of fullwidth treeview not updating document title so GA was receiving incorrect information. Once we updated the document title, the correct information is sent to GA for tracking.
Bug was a result of fullwidth treeview not updating document title so GA was receiving incorrect information. Once we updated the document title, the correct information is sent to GA for tracking.
Current Behavior
First reported in the user forum, 2023-06-06: https://groups.google.com/g/ica-atom-users/c/8c2QkRNitsU/m/2NFkJgVdBAAJ
Lacking the right tools, I have not reproduced this locally - though the logic of the report makes sense and it's worth investigating what options there are to potentially address it.
The full-width treeview uses AJAX to perform partial page loads, so that the current treeview position can be maintained while the body of the record view page can be updated based on the current node selection in the treeview. This is very different from how the older sidebar treeview works, where each node click performs a full request/response and page reload.
One consequence of this difference, as reported in the forum, is that the G4 Google Analytics module does not capture different node clicks in the full-width treeview as individual page clicks, so no analytics information is captured for any descriptions viewed within the same hierarchy.
Steps to reproduce the behavior
config/app.yml
file in the appropriate spot, as described in the documentationExpected Behavior
Possible Solution
No response
Context and Notes
No response
Version used
AtoM 2.7.2
Operating System and version
No response
Default installation culture
No response
PHP version
PHP 7.4
Contact details
No response
The text was updated successfully, but these errors were encountered: