Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GA - GT Event value not coming through with decimal places

For some reason when I gt event values through to analytics it comes through without a decimal place.

They way I track the event is on the site after conversion I use the datalayer to send the amount data via tag manager to the corresponding places.

The amount is a custom variable setup in tag manager and feeds to a few different locations like Bing conversion tracking and Adwords Conversion tracking as well as my goal and event tracking within analytics. What I have noticed though is for some reason in analytics my event values are coming through minus the decimal space.

so for instance if my conv value was 5.68 it comes through as 5 in analytics event value.

Anyone had any similar issues in the past?


1 Answers

The workaround here is to set the value in a more granular unit (e.g. cents instead of dollars). In your example you would set the value to 568 instead of 5.68

Warning: value should be exactly Integer, not 568.0 - same events will skipped GA.

like image 88
eagleas Avatar answered Sep 16 '25 23:09

eagleas