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

How to enable Google Analytics #3

Open
wants to merge 1 commit into
base: master
from

Conversation

2 participants
@yihui
Owner

yihui commented Jun 20, 2017

Add {{ template "_internal/google_analytics.html" . }} to foot_custom.html, and configure googleAnalytics in config.toml.

@yihui yihui added the feature label Jun 22, 2017

@kaizacorp

This comment has been minimized.

kaizacorp commented Aug 11, 2017

I wasn't able to get Google Analytics to work until putting the code into head_custom.html. Perhaps this should be changed?

@yihui

This comment has been minimized.

Owner

yihui commented Aug 11, 2017

It does not have to be in <head>. I often put Google Analytics at the very end of <body> for performance reasons (take a look at my source HTML https://yihui.name).

As usual, if anything does not work, please show me an example.

@kaizacorp

This comment has been minimized.

kaizacorp commented Aug 11, 2017

Okay thanks, I will try that out.

My apologies, I was using the Google Tag Assistant Chrome extension to check and it wasn't happy if it wasn't in <head>.

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