Skip to content

Variable Library

The complete, composable variable framework for Google Tag Manager. 250+ templates, organized across 14 functional categories, all sharing the same conventions, parameters, and chaining mechanism.

Quick Start — 60 Seconds to Your First Variable

Section titled “Quick Start — 60 Seconds to Your First Variable”

2. Import

GTM Admin → Import Container → Merge. All variables appear instantly in your workspace.

3. Configure

Browse the library below, find your variable, configure via the template UI.

4. Deploy

Preview, verify, publish. Your data layer mapping works on the first try.

Every variable in the library follows the same standardized interface:

ParameterPurposeRequired
srcThe input data sourceYes
outOutput target for chainingNo
prePre-processing directiveNo
rp1Reserved parameter 1No
rp2Reserved parameter 2No
  • Direct Mode — Returns the result immediately. Use for final values.
  • Apply Mode — Wraps the result in a __gtm_chain_apply envelope for the next variable in the chain. Use for multi-step pipelines.
PackageDescriptionLink
Full LibraryAll 250+ variables as a single container JSONDownload
Core OnlyEssential framework variables onlyDownload
Individual TemplatesPick specific .tpl filesBrowse on GitHub