tmaiaroto / hugo-redlounge

A Hugo theme
Other
100 stars 65 forks source link

Adding GoogleAnalytics tracking script #12

Closed machortz closed 9 years ago

machortz commented 9 years ago

I have used your cool theme in my site and be very grateful to you. Then I propose to insert GoogleAnalytics script to headend for convenience. I'll be sorry if there's anything to bother you. Thanks.

tmaiaroto commented 9 years ago

Good idea. Maybe better to put this in the footer template partial? Or bodyend.

machortz commented 9 years ago

Sorry for my late reply. I think so too, but Google says officially that it should be placed before the closing tag in the following link. Thanks. https://developers.google.com/analytics/devguides/collection/analyticsjs/

tmaiaroto commented 9 years ago

Oh, shows how old I am =) I immediately think before </body> but apparently they've changed that. Cool.