Google Analytics Campaign Tracking made Easy
The ever-popular website statistics solution, Google Analytics, allows webmasters to create and identify campaigns that are referring traffic to their website. All you have to do is add the right parameters. Sounds simple enough, right? Well, sort of.
As Google explains in their Analytics help file:
By adding campaign parameters to your URLs, you can identify the campaigns that send traffic to your site. When a user clicks a referral link, these parameters are sent to Analytics, so you can see the effectiveness of each campaign in your reports.
Now, that all sounds easy enough, but you have to add those parameter manually unless your system is already generating them for you. Looking into building exactly just such a solution for a client, I dug pretty deep into how one might actually do this. I started with their URL builder tool.
That makes it much easier to understand, but it turns something pretty like
http://jdmdigital.co/landing-page/ into a monstrosity like
That wouldn’t be a big deal, but for an offline medium, like a postcard, that’s a TERRIBLE thing to expect users to type into their browser. We need to shorten it.
We could use Google’s URL builder tool and its built-in goo.gl shortener, but what if you want to keep it branded using a service like Bitly? I think you see how this quickly gets overly complicated…
As we wrestled with automating this for a client as part of a much larger system, we couldn’t help ourselves but to turn some of the backend stuff relating to this little problem into a very small (and over-simplified) web app we nicknamed Cliqued (pronounced “Clicked”).
Happy campaign tracking!