Search code examples
universal-analytics

Google Universal Analytics - Should campaign parameters be set manually?


We use Google Universal Analytics on site example.com.

I've generated my site campaign URL : http://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=partnership

I want GA to be notified that URL was accessed with campaign parameters. How should I do it ? Is it automatically done ? I can't find mention of "utm" parameters in Universal documentation.

I think I should set each campaign parameter cf. https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference

ga('set', 'campaignName', '(direct)');
ga('set', 'campaignSource', '(direct)');
ga('set', 'campaignMedium', 'organic');
ga('set', 'campaignId', 'ID');

and then :

ga('send', 'pageview');

It seems very much "complicated" for something that should be a common task when GA/campaign are used.

Any idea ?

Thanks for your help,

Philip.


Solution

  • Once you have created your link with the utm parameters, tracking is done automatically. You can find the reports under Acquisition / Campaign.