Universal analytics not tracking currency

156 views
Skip to first unread message

Ben Beaumont

unread,
Jul 22, 2013, 1:20:43 PM7/22/13
to google-analyti...@googlegroups.com
Hi,

I'm trying to use google universal analytics e-commerce tracking. Everything is working as expected, except the currency. Our web store takes payments in $, £ and € and while I'm passing a currency code with every transaction, the currencyCode in analytics always appears as "(not set)" in reports.

The user returns to our store after entering their credit card details and the following tracking code is generated and embedded in the page:

 ga("require", "ecommerce", "ecommerce.js");

ga("ecommerce:addTransaction", {
  "id": "WP19312MQCL1F",
  "affiliation": "Online Store",
  "revenue": "1.2",
  "shipping": "0",
  "vat": "0.2",
  "currencyCode": "USD"
});

ga("ecommerce:addItem", {
  "id": "WP19312MQCL1F",
  "name": "Community Donation",
  "sku": "com.beaumont.donation.1_0_0",
  "price": "1",
  "quantity": "1"
});

ga("ecommerce:send");                       

The analytics api states that I can specify the currency globally, in the transaction or in the item. I have tried all sorts of combinations with no luck.

Incidentally, what I track purchases using the measurement protocol, the currency tracks just fine, but with universal.js, I can't get it to register.

Your help is very much appreciated.

Regards,

Ben

Brad Townsend

unread,
Jul 22, 2013, 4:04:26 PM7/22/13
to Ben Beaumont, google-analyti...@googlegroups.com
Hi Ben,

Unfortunately, it looks like the documentation for the ecommerce plug-in is incorrect. The field should be 'currency' instead of 'currencyCode'.

Sorry for the confusion, it should be fixed shortly.

-Brad



--
You received this message because you are subscribed to the Google Groups "google-analytics-analyticsjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-ana...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ben Beaumont

unread,
Jul 22, 2013, 4:11:22 PM7/22/13
to google-analyti...@googlegroups.com, Ben Beaumont
Perfect!

Thumbs up to google for responsiveness.

B
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-analyticsjs+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages