Google Analytics

The Devil Is in the Detail

  |  February 6, 2014   |  Comments

To ensure your Universal Analytics setup doesn't get lost in translation, there's a new tool that can be used to double-check your syntax.

With Google Analytics making Universal Analytics its default data collection and processing technology, there has been a lot of talk about why you should switch, when you should switch, potential pitfalls to switching, etc. Back in December I even wrote a post covering the most common questions I've received from current and potential clients.

And having done a similar swap a few years back, from the Google Analytics synchronous syntax to the asynchronous syntax, I remember that one of the most frustrating parts of migrations was remembering the new terminology and syntax. After all, with a new analytics technology, there is almost always a new syntax to replace the old technology. And as most implementation specialists know, one missed comma or parenthesis can cause a data collection nightmare.

Thankfully, though, the digital analytics industry is seeing an ever-increasing adoption of tag management systems. And while this adoption does mean that less analytics practitioners need to memorize the placement of every comma or parenthesis, the need to know proper syntax is still necessary. This is because as sites need advanced implementations, beyond the stock configuration of most tag management systems, the analytics practitioners will need to resort to manually written syntax. And as you can see in the below examples, the updated syntax is quite different.

Example Google Analytics Event tracking snippet for ga.js syntax:
_gaq.push(['_trackEvent', 'category', 'action', 'label', 'integer value']);

Example Google Analytics Event tracking for analytics.js syntax:
ga("send", "event", {
"eventCategory": "category",
"eventAction": "action",
"eventLabel": " label",
"eventValue": "integer value"
});

As a result of this needed knowledge, and because our eyes don't always catch those missing commas before code launch, the analytics team I work with has taken the technology of Airlock, a free tool for use with making the transition from ga.js to Universal Analytics, and used it to create a translator for double-checking your syntax. Feel free to check it out and use it for your next Google Analytics upgrade.

If you are undertaking a Universal Analytics migration or planning one soon, I really hope you can find the Universal Analytics translator useful. And if you run into any other headaches aside from new syntax, what are they? I'd love to hear your thoughts, and who knows, we may even make a new tool for it.

ClickZ Live Toronto On the heels of a fantastic event in New York City, ClickZ Live is taking the fun and learning to Toronto, June 23-25. With over 15 years' experience delivering industry-leading events, ClickZ Live offers an action-packed, educationally-focused agenda covering all aspects of digital marketing. Register today!

ClickZ Live San Francisco Want to learn more? Join us at ClickZ Live San Francisco, Aug 10-12!
Educating marketers for over 15 years, ClickZ Live brings together industry thought leaders from the largest brands and agencies to deliver the most advanced, educational digital marketing agenda. Register today and save $500!

ABOUT THE AUTHOR

Robert Miller

Robert Miller is a Senior Analyst at Search Discovery. He is actively involved in industry organizations, such as the Analysis Exchange and the Digital Analytics Association.

With the Analysis Exchange, he helps non-profits capitalize on their website data, and educates aspiring digital analysts about the foundation of digital analytics, from the implementation of a digital analytics tool to performing analysis and making data-driven recommendations for organizations.

COMMENTSCommenting policy

comments powered by Disqus

Get the ClickZ Analytics newsletter delivered to you. Subscribe today!

COMMENTS

UPCOMING EVENTS

Featured White Papers

Gartner Magic Quadrant for Digital Commerce

Gartner Magic Quadrant for Digital Commerce
This Magic Quadrant examines leading digital commerce platforms that enable organizations to build digital commerce sites. These commerce platforms facilitate purchasing transactions over the Web, and support the creation and continuing development of an online relationship with a consumer.

Paid Search in the Mobile Era

Paid Search in the Mobile Era
Google reports that paid search ads are currently driving 40+ million calls per month. Cost per click is increasing, paid search budgets are growing, and mobile continues to dominate. It's time to revamp old search strategies, reimagine stale best practices, and add new layers data to your analytics.

WEBINARS

Resources

Jobs

    • GREAT Campaign Project Coordinator
      GREAT Campaign Project Coordinator (British Consulate-General, New York) - New YorkThe GREAT Britain Campaign is seeking an energetic and creative...
    • Paid Search Senior Account Manager
      Paid Search Senior Account Manager (Hanapin Marketing) - BloomingtonHanapin Marketing is hiring a strategic Paid Search Senior Account Manager...
    • Paid Search Account Manager
      Paid Search Account Manager (Hanapin Marketing) - BloomingtonHanapin Marketing is hiring an experienced Paid Search Account Manager to...