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

Migrate from analytics.js to gtag.js #281

Merged
merged 4 commits into from
Oct 29, 2018
Merged

Conversation

mladenilic
Copy link
Contributor

Use gtag.js instead of analytics.js snippet, as it is now the preferred option.

Google Analytics docs suggest using window['ga-disable-GA_TRACKING_ID'] = true; as a way to disable tracking, so that's added as well. :)

Here's the link to the docs: https://developers.google.com/analytics/devguides/collection/gtagjs/user-opt-out

Cheers!

@DirtyF
Copy link
Member

DirtyF commented Oct 29, 2018

as it is now the preferred option

@mladenilic could you provide official source that supports this statement?

@mladenilic
Copy link
Contributor Author

@DirtyF there's no official statement that I'm aware of, it's just that when you create the Google Analytics account, the tracking code provided is the new gtag.js one.

https://s3.amazonaws.com/drei.one-public/gtag.png

@DirtyF DirtyF merged commit 64c6b7a into jekyll:master Oct 29, 2018
hookex pushed a commit to hookex/red-star that referenced this pull request May 13, 2019
* Replace analytics.js with gtag.js
@jekyll jekyll locked and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants