GTM-GEAR
  • Blog
  • Templates
  • Tools
  • About

gtm-templates

GA4 cross-domain for JavaScript redirects

GA4 cross-domain for JavaScript redirects
In the post I give step-by-step instructions on how to use a custom template which helps you to generate _gl parameters for GA4 cross domain set up. [Read More]
ga4  gtm-templates  cross-domain 

GTM Templates Test API tips and tricks

GTM Templates Test API tips and tricks
Tips and tricks for the GTM Templates testing, I’ll show code samples for most often used GTM API: dataLayer, Cookies, Consent, SHA256, localStorage and even Firestore. [Read More]
serer-gtm  gtm-templates  promise-api  test-api 

Firestore and GTM. Create any conversion or audience based on user history. Part 2

Firestore and GTM. Create any conversion or audience based on user history. Part 2
The second part of the tutorial. Firestore and Server-Side GTM integration. Firestore Server Client and Firestore Server Tag set up. [Read More]
gtm-templates  firestore 

Firestore and GTM. Create any conversion or audience based on user history. Part 1

Firestore and GTM. Create any conversion or audience based on user history. Part 1
Create any conversion or audience based on user history, with a little help of Server-Side GTM and Google Firestore. Set up Firestore Web Tag and two test conversions - more than 3 purchases and the previous purchase was made more than a month ago. [Read More]
gtm-templates  firestore 

Firestore Web Tag

The Firestore Web Tag template allows you to create a list of the rules on how to change the user property. [Read More]
gtm-templates  firestore 

Firestore Server Tag

Firestore Server Tag gets rules from event generated by Firestore Server Client, use Firestore.runTransaction GTM API to read and update user state from Firestore. [Read More]
gtm-templates  firestore 

Firestore Server Client

The Firestore Server Client template receives requests from Firestore Web Tag [Read More]
gtm-templates  firestore 

Days, Hours or Minutes Between Two Dates (or Now) – Custom Variable Template

The Custom Variable Template to get the amount of full days, hours, etc. between the first and the second date or current moment. [Read More]
gtm-templates  gtm-templates-variables  gtm-utils 

Server GTM Promise API. How to test?

Server GTM Promise API. How to test?
In this post I'll show an example how to mock sendHttpRequest and return Promise with fake data and fake status. [Read More]
serer-gtm  gtm-templates  promise-api  test-api 

Server GTM Promise API. How to get / set user state and pass it to Google Ads Remarketing

Server GTM Promise API. How to get / set user state and pass it to Google Ads Remarketing
In this post I'll show how to make a few API calls using Server GTM Promise API after that generate new event by runContainer API. And at the end pass changed params to Google Ads Remarketing. Viva la Server GTM! [Read More]
serer-gtm  gtm-templates  promise-api 

Artem Korneev  • © 2025  •  GTM-GEAR

Hugo v0.96.0 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll