GTM best practices and tracking tags for 2026

Written by

Uliana Lesiv

Updated Sep 17, 2026 comments

What is Google Tag Manager?

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

12 Best Google Tag Manager practices

Create scalable naming system

GTM elementTool/TypePurposeExample

Avoid loading all scripts with a tag manager

Set up Data Layer

Use constant variables

Constant variable in GTM
Pre-built template by Stape

Reduce the number of custom HTML tags

Custom HTML tag

Implement allow and deny lists

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

Discover Accelerated Mobile Pages (AMP)

AMP in GTM

Monitor PageSpeed Insights

Third-party code in pagespeed insights

Conduct container audit

GTM tools by Stape

Test with other tools

Monitoring feature at Stape

Make GTM preview easier to navigate

Consider using server-side tagging

How server-side tracking works

Conclusion

Want to start on the server side?

Try for free

Written by

Uliana Lesiv

Content 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