peaksandpies / universal-analytics

A node module for Google's Universal Analytics and Measurement Protocol
961 stars 146 forks source link

send source/medium to Google analytics #30

Open rajbirs opened 9 years ago

rajbirs commented 9 years ago

Hi,

i am using this universal analytics module to send transactions and items data to google analytics, that is working fine though. But the source/medium is showing as (direct/none) is the GA admin panel. So i want to send the source/medium to google analytics. Please let me know as how to send source/medium to GA through this universal analytics module?

jtillmann commented 9 years ago

Check out the parameter reference: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#trafficsources

The attribute name for Source is cs, for Medium it's cm