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 | 1277 | 9 years ago | ||
| 2 | 885 | 9 years ago | ||
| 2 | 4014 | 9 years ago | ||
| 1 | 2890 | 9 years ago | ||
| 3 | 1074 | 9 years ago |