Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.23 KB

File metadata and controls

28 lines (18 loc) · 1.23 KB

Math Variable for Google Tag Manager Server Container

A custom variable template for the GTM Server container that performs basic mathematical operations between two input values. Including optional result rounding.

Features

  • Supports addition, subtraction, multiplication, and division
  • Accepts numeric inputs or string representations of numbers
  • Optional rounding to a configurable number of decimal places

Usage

  1. Select a math operation: Add, Subtract, Multiply, or Divide
  2. Enter two numeric input values
  3. Enable "Round result" to round the output
  4. Specify the number of decimal places to round to (defaults to 2)

Installation

2 options:

  • (Recommended) Add the variable to your GTM Server container from the GTM Template Gallery;
  • or import the template.tpl file into your GTM Server container under TemplatesVariablesNew3 dots on the upper right cornerImport.

Open Source

Initial development was done by Lars Friis.

The Math Variable for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.