Bulk Campaign URL Builder For Google Analytics Campaign Parameters

October 31, 2013
By Dan Wilkerson

This tool can tag a bulk list of URLs with Google Analytics campaign parameters. Just enter in your campaign parameters, paste in your links (carriage or comma separated, both work), and press ‘Submit’.







Submit

What are campaign parameters?

Campaign parameters are query parameters that Google Analytics uses to figure out where a user was referred from. Campaign parameters overrule any other referral information that Google Analytics might see; for example, if you share a link on Facebook tagged ‘http://www.mysite.com/?utm_source=facebook’, users who click that link will be attributed to Facebook in your reports, but if one of those visitors visits and tweets the same link, the visitors they refer from Twitter will be credited as visits from Facebook. Our best practice recommendation is to add campaign parameters to any link you share to your domain.z

utm_source is the source of the visitor, e.g. ‘newsletter’ or ‘twitter’, and is required for Google Analytics to recognize and process the parameters

utm_medium is the medium that users traveled through to reach your site, e.g. ’email’ or ‘referral’

utm_campaign is the marketing campaign the link is associated with, e.g. ‘example-banner-ads’ or ‘NYC-Training’

utm_term is the keyword attached to the visit, e.g. ‘google analytics training’ or ‘(not provided)’ (I couldn’t resist)

utm_content is a field to define more about the specific link, like it’s location or other relevant information not covered by the other parameters, e.g. ‘sidebar’

How does it work?

The tool is a simple JavaScript application that operates entirely within your browser; no server-side stuff necessary. When you paste the URLs into the box, it grabs them and appends the campaign parameters you specify, correctly formatted. Since a utm_source value is necessary, it will display an error if it doesn’t detect that a source has been entered. The tool also encodes special characters.

Which links should I tag with campaign parameters?

Seriously, any links that you share on Facebook, Twitter, Google+, in email campaigns, and so on, should have campaign parameters. It’s the only way to reliably get valid visitor referral information into Google Analytics; emailed links and app-based browsing tend to screw this up. Campaign tagging ensures you’re getting some information about all of the visitors that the link refers.

Have questions about campaign parameters? Sound off in the comments.