Skip to main content

I’m using a catch webhook trigger and one of the fields is currently a float / decimal data type. I need to convert it to an integer, or text that has the “.00” stripped out of it, to pass it into google analytics 3 event value field.  

It seems like the formatter should be able to do this but I cannot find an option in there? Is there any other way of doing this? 

Hi @J-zap 

Good question.

If you are trying to use a Zap Code step, try asking ChatGPT for help with configuring the code: https://chat.openai.com


@J-zap 

One trick might be to use Formatter > Text > Split.

Split by .

Keep the first segment.