/legacy-click-id

reads gcl_aw cookie and returns stored click id (Google Tag Manager Custom Variable Template)

Primary LanguageSmartyApache License 2.0Apache-2.0

Google Click ID From Legacy Cookie

Custom Variable Template for Server-Side Google Tag Manager

Read existing client-side _gcl_aw cookie and returns stored click id

Template Status Repo Size License


Usage

Create a new variable with this template. There is no configuration required. The variable will either extract an existing click id from a cookie, whenever a request gets processed and return the value. If no cookie is found or does not fit the expected format, the variable returns undefined.