GTM best practices and tracking tags for 2026

Written by

Uliana Lesiv

Updated Sep 17, 2026 comments

What is Google Tag Manager?

19 best practices for Google Tag Manager

1. Plan tracking before you implement it

2. Structure accounts and containers properly

3. Create a scalable naming system

GTM elementTool/TypePurposeExample

4. Limit access with user permissions

5. Use workspaces for teamwork

6. Avoid loading all scripts with a tag manager

7. Set up Data Layer

8. Use constant variables

Constant variable in GTM
Pre-built template by Stape

9. Use lookup and regex tables

10. Reduce the number of custom HTML tags

Custom HTML tag

11. Implement allow and deny lists

<script> window.dataLayer = window.dataLayer || []; dataLayer.push({   'gtm.allowlist': ['<id>', '<id>', ...],   'gtm.blocklist': ['<id>', '<id>', '<id>', ...] }); </script>

12. Use a separate container for AMP pages

AMP in GTM

13. Monitor PageSpeed Insights

Third-party code in pagespeed insights

14. Conduct container audit

GTM tools by Stape

15. Test with other tools

Monitoring feature at Stape

16. Run old and new tracking in parallel

17. Write clear version names and publish in small chunks

18. Make GTM preview easier to navigate

19. Consider using server-side tagging

How server-side tracking works

Tags for analytics tools

Google Analytics

Google Analytics tag

Mixpanel

Mixpanel tag for web container
Mixpanel tag for server GTM configuration

Matomo

Matomo tag for web GTM container
Matomo Advanced tag for server GTM
Google Ads Conversions tag in GTM
Google Ads Conversions tag in GTM

Facebook tracking

Example of Facebook Pixel configuration
Example of Facebook CAPI tag configuration

LinkedIn tracking

LinkedIn CAPI tag configuration

Email marketing tags

Mailchimp

Mailchimp tag configuration

Klaviyo

Klaviyo tag configuration

Brevo

Brevo tag configuration

SendGrid

SendGrid tag configuration

Final thoughts on best practices for Google Tag Manager

Want to start on the server side?

Try for free

Written by

Uliana Lesiv

Writer

Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

Was this article helpful?

Comments

Recommended for you

Blog

Data trends in digital marketing for 2026

Explore key 2026 digital marketing trends like first-party tracking, offline data, trust building, etc., plus common challenges and solutions to choose from.

Aug 18, 2026

Turn better tracking into better marketing performance

Try for free