Stape
SearchTry for free
FreeGTM variables

Math variable

Math Variable is a custom variable that allows you to perform basic mathematical operations, such as multiplication, division, addition, and subtraction, directly in their server-side container setups.

  • Ad spend calculations: easily calculate the POAS by finding the ratio of revenue to ad spend.
  • Conversion adjustments: adjust conversion values using factors or percentages.
  • Custom metrics: create new analytics metrics by combining or multiplying data values.

Related to this solution

Days In Seconds variable for Google Tag Manager server container
Sep 4, 2024

Blog

Days In Seconds variable for Google Tag Manager server container

Discover how to use the Days In Seconds variable to easily convert days into seconds for precise time calculations in server-side tracking setups.

Math variable for Google Tag Manager server container
Sep 11, 2024

Blog

Math variable for Google Tag Manager server container

Perform calculations in server GTM. Use the Math variable to multiply, divide, add, or subtract values for ad spend, conversion adjustments, and custom metrics.

We have more than 100 000 happy clients

Try Stape for all things server-sideright now!