Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Google Analytics tracking code

Started by Muut Archive 12 years ago · 2 replies · 360 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 1279 9 years ago
Archive · by Muut Archive, 9 years ago
2 886 9 years ago
Archive · by Muut Archive, 9 years ago
2 4015 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1075 9 years ago