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

Replace analytics.js with gtag.js #32

Open
mojavelinux opened this issue Feb 6, 2018 · 2 comments
Open

Replace analytics.js with gtag.js #32

mojavelinux opened this issue Feb 6, 2018 · 2 comments

Comments

@mojavelinux
Copy link

Google is now recommending that all new sites adopt the gtag.js script instead of analytics.js.

gtag.js is the web tagging library that works for Google's site measurement, conversion tracking, and remarketing products – giving you better control while making implementation easier. By using gtag.js, you will be able to benefit from the latest dynamic features and integrations as they become available.

The gtag.js script merges the functionality of Google Tag Manager and Google Analytics into one and fixes some cross domain cookie issues, as far as I understand it.

This issue is to request for this extension to use gtag.js instead of analytics.js, or offer an option to enable it.

For details, see:

mojavelinux added a commit to mojavelinux/middleman-google-analytics that referenced this issue Feb 6, 2018
mojavelinux added a commit to mojavelinux/middleman-google-analytics that referenced this issue Feb 6, 2018
mojavelinux added a commit to mojavelinux/middleman-google-analytics that referenced this issue Feb 6, 2018
mojavelinux added a commit to mojavelinux/middleman-google-analytics that referenced this issue Feb 6, 2018
@danielbayerlein
Copy link
Owner

Thank you for your request 💛
If gtag.js is the new recommended variant, then we should replace analytics.js.
I would be happy about a PR.

@mojavelinux
Copy link
Author

Already done it. #33

I think it's too premature to switch from analytics.js because not everyone is convinced about the transition yet. So there were be a period we should probably support both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants