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

Add option to use gtag.js instead of analytics.js #59

Open
cjg89 opened this issue Apr 11, 2019 · 0 comments
Open

Add option to use gtag.js instead of analytics.js #59

cjg89 opened this issue Apr 11, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cjg89
Copy link
Member

cjg89 commented Apr 11, 2019

Description

Provide an option that allows users to either use Google's analytics.js script or their newer gtag.js script for incorporating Google Analytics (for users not using Google Tag Manager).

Why it's Important

gtag.js seems to be what Google is recommending now vs analytics.js. Providing the option to use one versus the other would preserve backward compatibility for any child theme that expects analytics.js to be loaded.

More info: https://developers.google.com/analytics/devguides/collection/gtagjs/migration

Alternatives

n/a

Possible Implementation

Add a new customizer option that lets users select either script. Default to analytics.js to preserve backward compatibility.

Additional context

n/a

@cjg89 cjg89 added the enhancement New feature or request label Apr 11, 2019
@cjg89 cjg89 added this to the backlog milestone Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants