The Stape Store Margin Lookup Variable for GTM Server allows you to retrieve margin data from Stape Product Feed for each product in your items array and returns a combined margin value that accounts for quantity, enabling you to track Profit on Ad Spend (ROAS) for your conversion events and advertising campaigns.
Useful Resources
Open Source
The Stape Store Margin Lookup Variable for GTM Server Side is developed and maintained by the Stape Team under the Apache 2.0 license.
GTM Gallery Status
Listed
stape-io/stape-store-margin-lookup-variable — updated: view commit
- Renamed “Stape Product Feed” to “Product Feed” in profit margin variable description
- Added option to use item price as fallback if item margin is missing in Product Feed
- Introduced discount calculation in profit margin with item-level and order-level discount types
- Added discount formula options for item-level discounts: discount over item price or item profit
- Adjusted profit margin calculation logic to incorporate selected discount settings and formulas
GTM Gallery Status
Listed