Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Google Analytics tracking code

Started by Muut Archive 12 years ago · 2 replies · 885 views
12 years ago

Hi, is there some file where you recommend to insert Google Analytics tracking code?

12 years ago

I would recommend putting the google tracking code in your theme's base.html.twig. So if you were using antimatter that would be:

user/themes/antimatter/templates/partials/base.html.twig

Specifically in the bottom block where the other JS is initializing.

12 years ago

Yes, that seems to be the right place. Thanks.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2969 9 years ago
Archive · by Muut Archive, 9 years ago
2 1923 9 years ago
Archive · by Muut Archive, 9 years ago
2 5261 9 years ago
Archive · by Muut Archive, 9 years ago
1 4075 9 years ago
Archive · by Muut Archive, 9 years ago
3 2014 9 years ago