I’m sending Stripe purchase data directly to my server GTM via a webhook. But Stripe sends value amounts in cents e.g. $49 is 4900.
Is there a way to reformat this to e.g. 49 in server GTM before sending to GA4, Facebook etc?
Thanks
I’m sending Stripe purchase data directly to my server GTM via a webhook. But Stripe sends value amounts in cents e.g. $49 is 4900.
Is there a way to reformat this to e.g. 49 in server GTM before sending to GA4, Facebook etc?
Thanks
Yes, you need a custom variable template to handle your specific case. Unfortunately there’s no custom javascript such as you have in the web container, so you need to build a rudimentary template
Ah - so I just write my Javascript in the custom variable template. Useful to know, thanks
exactly, do note that it’s a sandboxed JS, not all the thing you’re used to on the web will work, but that shouldn’t be an obstacle in your case.
here’s some helpful stuff: