Tuesday, November 13, 2018

How to Set up Custom Campaigns in Google Analytics

To set up custom campaigns, add parameters to the end of a URL. The parameters are variable-value pairs that contain the campaign identifying information and values for each that you define. For example, the tag utm_source=newsletter identifies that the traffic came from a newsletter and the tag utm_campaign=june identifies that this was the campaign in the month of June. There is no limit to the number of values you can have, but it is recommended that you use transparent names and keep track of what campaigns each value relates to.
Separate the parameters from a URL with a question mark. List the variables and values as pairs separated by an equals sign. Separate each variable-value pair with an ampersand. Parameters can be added to a URL in any order, but must use the proper syntax. Note that Analytics is case sensitive, so utm_source=google is different from utm_source=Google. Case sensitivity applies for each variable you define.
Setting up custom campaigns doesn’t require any changes to the tracking code. You can set them up manually or use a tool to help create and append URL variables. Use the URL builder tool for website tracking and the Google Play URL builder tool for mobile app tracking.
The Google Analytics terms of service prohibit sending any personally identifiable information (PII) to Google; don't include any PII in your Custom Campaigns. Review best practices for creating Custom Campaigns and the Google Analytics privacy principles for more information.

Examples

http://it.i88.ca/?utm_campaign=spring&utm_medium=referral&utm_source=exampleblog
http://it.i88.ca/?utm_campaign=spring&utm_medium=email&utm_source=newsletter1
http://it.i88.ca/?utm_campaign=spring&utm_medium=email&utm_source=newsletter1&utm_content=toplink
For more information, check here