Skip to content
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

Specify beacon tracking for gtag.js? #87

Open
SeanKilleen opened this issue Mar 4, 2018 · 0 comments
Open

Specify beacon tracking for gtag.js? #87

SeanKilleen opened this issue Mar 4, 2018 · 0 comments

Comments

@SeanKilleen
Copy link
Contributor

Sometimes with html or image, the hits to GA won't be sent if the page is unloading (which we try to do asap).

However, beacons have been implemented by many browsers, and we can instruct Google Analytics to use them.

https://developers.google.com/analytics/devguides/collection/gtagjs/sending-hits#specify_different_transport_mechanisms

Since we're redirecting on the callback already, this could also potentially improve performance. Not sure. Need to look into it a little bit more.

@SeanKilleen SeanKilleen changed the title Specify beacon tracking for gtag.js Specify beacon tracking for gtag.js? Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant