-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: google analytics for drop-off statistics #192
Conversation
Would having the client browser send the event to GA directly cause it to be blocked by ad blockers? |
That is a good question. Through my manual tests, sending events to GA with my adblocker turned on is still working as intended. If you have tried it, is it also working as intended for you? To slightly alleviate things, we do have an intermediate The alternative I can think of right now will be for the transition page to ping our server, so that our server can send the analytics instead. But that could double calls to our servers on every redirects. @liangyuanruo @yong-jie do you have any inputs on this? Edit: From my quick research, ad-blockers in general do not block GA. The exceptions are ghostery, and Firefox, which blocks all trackers by default. |
Although the approach of routing our tracking requests through our server before sending to GA could solve this problem, I feel like it might be a bit too much development effort for the benefits it provides. Using this bypass might also be deemed unethical(?). If we're concerned that firefox users could skew our data, would ignoring redirect events coming from firefox help? |
I agree on the unethical part. I believe we can keep my current implementation, to observe the proportion of users blocking GA first, from the difference in |
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.
sounds good to me.
Problem
Make use of Google Analytics to measure drop-offs that might occur with the introduction of the transition page.
Closes #95.
Solution
I have made use of event logging in Google Analytics.
I named this event which is focused on TransitionPage as
transition-page
. There are three possible event actions in this Event:served
- Logged by the server when serving a transition page.loaded
- Logged by the user after rendering the transition page.proceeded
- Logged by the user when the proceed button is clicked.GA logging on the TransitionPage is done using
analytics.js
gtag.js
.In this configuration, realtime statistics can be view under Reports > Realtime > Events.
Tested on:
Improvements: