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

Move Google Analytics tracking code to head element. #144

Closed

Conversation

ghost
Copy link

@ghost ghost commented Feb 16, 2018

This is the suggested location by Google for the Google Analytics
tracking code: https://support.google.com/analytics/answer/1008080

Also it is needed for easy site ownership verification in Google Search
Console: https://support.google.com/webmasters/answer/35179

This is the suggested location by Google for the Google Analytics
tracking code: https://support.google.com/analytics/answer/1008080

Also it is needed for easy site ownership verification in Google Search
Console: https://support.google.com/webmasters/answer/35179
@highergroundstudio
Copy link

Actually if you read the link you posted it says that it should be right after the closing head tag. Secondly, I would suggest changing to the async version too:

{{ template "_internal/google_analytics_async.html" . }}

@ryanfox1985
Copy link
Contributor

@highergroundstudio you are right. I will close this PR and I created an issue #213 related with google async.

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

Successfully merging this pull request may close these issues.

2 participants