-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Allow use of gtag.js Google Analytics script #375
Labels
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Comments
JoelMarcey
added
the
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
label
Feb 27, 2018
ramiel
added a commit
to ramiel/Docusaurus
that referenced
this issue
Apr 25, 2018
The code now uses the new gtag script to track the website on google analytics. The migration is explained [here](https://developers.google.com/analytics/devguides/collection/gtagjs/migration). This will help to solve issues such as facebook#375. As indicated at https://support.google.com/analytics/answer/1008080 the analytics code must be placed in the head tag, so it is moved there.
ramiel
added a commit
to ramiel/Docusaurus
that referenced
this issue
Apr 26, 2018
The code now uses the new gtag script to track the website on google analytics. The migration is explained [here](https://developers.google.com/analytics/devguides/collection/gtagjs/migration). This will help to solve issues such as facebook#375. As indicated at https://support.google.com/analytics/answer/1008080 the analytics code must be placed in the head tag, so it is moved there.
ramiel
added a commit
to ramiel/Docusaurus
that referenced
this issue
Apr 26, 2018
The code now uses the new gtag script to track the website on google analytics. The migration is explained [here](https://developers.google.com/analytics/devguides/collection/gtagjs/migration). This will help to solve issues such as facebook#375. As indicated at https://support.google.com/analytics/answer/1008080 the analytics code must be placed in the head tag, so it is moved there.
ramiel
added a commit
to ramiel/Docusaurus
that referenced
this issue
Apr 28, 2018
The code now uses the new gtag script to track the website on google analytics. The migration is explained [here](https://developers.google.com/analytics/devguides/collection/gtagjs/migration). This will help to solve issues such as facebook#375. As indicated at https://support.google.com/analytics/answer/1008080 the analytics code must be placed in the head tag, so it is moved there.
yangshun
pushed a commit
that referenced
this issue
Apr 29, 2018
* Moved google analytics script to head The code now uses the new gtag script to track the website on google analytics. The migration is explained [here](https://developers.google.com/analytics/devguides/collection/gtagjs/migration). This will help to solve issues such as #375. As indicated at https://support.google.com/analytics/answer/1008080 the analytics code must be placed in the head tag, so it is moved there. * Add a boolean to use the new gtag library * Update api-site-config.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Is this a bug report?
No
Have you read the Contributing Guidelines?
Yes.
Environment
OS: macOS 10.12.3 (16D32)
Node: v9.0.0
npm: 5.5.1
Yarn: 1.3.2
Steps to Reproduce
gaTrackingId
to the site config.scripts
config option, add this code:Expected Behavior
The
login
event would be reported to Google Analytics via thegtag.js
API.Actual Behavior
Reproducible Demo
Code • Website
The text was updated successfully, but these errors were encountered: