Do It Yourself – Tutorials – Build a Universal Analytics Client in Server-side Google Tag Manager

by | Aug 20, 2020 | 0 comments

Do It Yourself – Tutorials – Build a Universal Analytics Client in Server-side Google Tag Manager

by | Aug 20, 2020 | Do It Yourself - Build Your Own Website | 0 comments

Do It Yourself – Website Tutorials



A tutorial on how to build a new Client Template for Server-side Tagging in Google Tag Manager.

This video walks through the steps of Custom Template creation. You’ll learn to build a new Client which ingests Measurement Protocol hits and forwards them to Google Analytics.

The Client will also return an HTTP response that rewrites the _ga (Google Analytics) cookie to avoid things like Safari’s Intelligent Tracking Prevention from truncating the cookie expiration.

ERRATA
The video glosses over a very important permission that needs to be in place for the proxying of analytics.js to work. In the Client template editor, go to the “Permissions” tab, expand “Sends HTTP Requests”, and check the “Allow Google Domains” under “Specific Domains”.

REFERENCES
Server-side Tagging In Google Tag Manager (article):
https://bit.ly/server-side-tagging

#GTMTips: Build A Custom Universal Analytics Client For Server-side Tagging (article):
https://bit.ly/build-client-template

An introduction to server-side tagging (Google documentation):
https://developers.google.com/tag-manager/serverside/intro

source