Hi, is there some file where you recommend to insert Google Analytics tracking code?
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 | 1662 | 9 years ago | ||
| 2 | 1122 | 9 years ago | ||
| 2 | 4282 | 9 years ago | ||
| 1 | 3162 | 9 years ago | ||
| 3 | 1286 | 9 years ago |