escopecz / grav-ganalytics

Google Analytics plugin for Grav CMS
MIT License
20 stars 9 forks source link

GA in template? #15

Closed elliotlewis closed 1 year ago

elliotlewis commented 6 years ago

This might be a silly question but…

After installing the plugin and configuring, GA script does not appear in the site code. Are there extra steps to add this plugin to the site template?

escopecz commented 6 years ago

No, it will insert the tracking code no matter what template you use. The only option I can see while looking at the code is that maybe you are accessing from an IP address which you configured as blocked?

If not, please share your plugin configuration as a screenshot and give use a link to your website where the tracking should appear, but it does not.

elliotlewis commented 6 years ago

Unfortunately this is on an internal server so I can't send the link. But I've identified the issue: Selecting "Code Position" - position: body does not inject the code but head works.

ViliusS commented 1 year ago

@elliotlewis I have tested latest version with Quark and at least one more theme. It works with both, head and body positions.

If you still have issue feel free to reopen this ticket.