News for hackers. Stuff that matters.
Re:Show HN: Analytics.js – The analytics API you've always w... by ianstormtaylor on Wednesday December 12, 2012 @03:10PM (#4912159)
The Google Analytics provider doesn't send properties for events. The only thing the GA API providers that's even close is a "Label" which is just a string. The idea is to get as much from each provider as possible, so we just don't send properties when a provider can't use them.

Hope that helps!

Re:Show HN: Analytics.js – The analytics API you've always w... by troels on Wednesday December 12, 2012 @03:49PM (#4912373)
There's the ecommerce api though, which would apply to this specific case.

https://developers.google.com/analytics/devguides/collection...

Re:Show HN: Analytics.js – The analytics API you've always w... by ianstormtaylor on Wednesday December 12, 2012 @04:02PM (#4912433)
Ah yep that's a good point. Trouble is it doesn't apply to all cases, and has really strict requirements, but if it's a big enough need I could totally see a .price() method that hits GA's ecommerce API and then delegates to other providers's normal event API with properties. Wouldn't be a bad way to handle it.
Re:Show HN: Analytics.js – The analytics API you've always w... by rattray on Saturday December 15, 2012 @09:47PM (#4927135)
Maybe just pass the JSON object in as a string to the label? I personally don't think I'd mind reading "{'paymentAmount': 50, 'productColor': 'red'}". I haven't used Google Analytics for event tracking yet, though, so not sure what the UI around Labels is like.