Hi, is there some file where you recommend to insert Google Analytics tracking code?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Archive
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.
Yes, that seems to be the right place. Thanks.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1279 | 9 years ago | ||
| 2 | 886 | 9 years ago | ||
| 2 | 4015 | 9 years ago | ||
| 1 | 2891 | 9 years ago | ||
| 3 | 1075 | 9 years ago |