-
Notifications
You must be signed in to change notification settings - Fork 905
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
[GA4] Emit page_helpful
events for page feedback
#1726
[GA4] Emit page_helpful
events for page feedback
#1726
Conversation
page_helpful
events for page feedback
/cc @fekete-robert |
5b5c69b
to
c4348b9
Compare
I don't have a setup where I could actually test it, but LGTM |
Thanks for the feedback @fekete-robert. Right, we'll have to iterate, if necessary, given that preview builds don't include analytics. This code was in use in another one of our projects, so there's a good chance it'll work here too. |
I want to test this, it may take a couple of more days. If you need this merged sooner I can approve it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
c4348b9
to
9dc1514
Compare
LOL, I forgot that we don't have analytics setup yet for the User Guide! |
I'll test as soon as I can and report here. (Since the UG isn't using this new feature, then there's no rush.) |
Ok, feature tested! |
page_helpful
rather than aclick
event when the page feedback button is clicked. This makes it easier to view page feedback in the GA4 analytics console. FYI, the code in this PR has been used and vetted as part of the falco.org website, see Ensure page feedback works under GA4 falcosecurity/falco-website#974.max_value
emitted for "yes" events, whose default value is now 100Preview, e.g.: https://deploy-preview-1726--docsydocs.netlify.app/docs/adding-content/feedback/#search-engine-optimization-meta-tags -- navigate to the end of the page to see the feedback form