Google Analytics Campaign Tracking made Easy
We couldn't help ourselves but to build a very simple web app we nicknamed Cliqued (pronounced "Clicked"). The project has just been released on GitHub. Just another one of those code projects by your friendly nerds at JDM Digital.
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 https://jdmdigital.co/landing-page/
into a monstrosity like https://jdmdigital.co/landing-page/?utm_source=prweb&utm_medium=press_release&utm_campaign=awesome_news
.
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”).
The web app has just been released on GitHub under the GNU General Public License. Just another one of those code projects by the friendly nerds at JDM Digital.
Happy campaign tracking!
Get the Email
Join 1000+ other subscribers. Only 1 digest email per month. We'll never share your address. Unsubscribe anytime. It won't hurt our feelings (much).
Discussion
Comments are now closed.
Notice: Trying to access array offset on value of type null in /home2/justin/public_html/wp-content/plugins/wp-invoice-quotes/lib/class-wp-invoice-quotes.php on line 413