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

GA integration issue #1413

Closed
kalganem opened this issue Oct 29, 2019 · 2 comments
Closed

GA integration issue #1413

kalganem opened this issue Oct 29, 2019 · 2 comments

Comments

@kalganem
Copy link

Hi,

I've been using and loving this theme. Great Job!

But I still can figure out how integrate Google Analytics into my website. I followed the documentation by adding GA id /config/_default/params.toml:

[marketing]
google_analytics = ""

is that all I need to do? Because that didn't work for me.

Or based on this,
do I have to add these templates?:

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

If so, where should I add them? The theme documentation didn't mention that.

I also made sure since I'm deploying using netlify, that the netlify.toml is similar to the one on academic kickstart.

@gcushen
Copy link
Collaborator

gcushen commented Oct 30, 2019

You'll need to set HUGO_ENV=production rather than -e production. See gohugoio/hugo#6456 (comment) .

@gcushen gcushen closed this as completed Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants