-
Notifications
You must be signed in to change notification settings - Fork 918
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
Page feedback: support for Google Analytics 4 (GA4) #1302
Comments
Note: the use of |
In the interim, it seems that projects can define an event-modification rule through the analytics console interface, to change the event name of page-feedback events to, e.g., (Edit) Or projects could disable data-stream outbound clicks. Thanks for the pointer to the relevant GA4 doc pages @emckean! 🧡 |
Thank you for the pointers here, I just spent one hour trying to figure out this. |
All done! |
Universal Analytics (UA) is deprecated. For details, see #1096. Here's some of the code associated with the page feedback feature:
docsy/layouts/partials/feedback.html
Lines 37 to 53 in d9bf98b
This still uses the
analytics.js
library'sga()
function. Note that this code is incompatible with GA4 because of the library that is used and the event name, as is explained below.Tasks
gtag
- [GA4] Emitpage_helpful
events for page feedback #1726page_helpful
events are being emitted, with a default value of 100 for "yes" and 0 for "no" responses:page_helpful
events for page feedback #1726Notes:
gtag.js
in their override of layouts/partials/feedback.html already 4 years ago/cc @caniszczyk @nate-double-u
The text was updated successfully, but these errors were encountered: