Translate Google Analytics tags to Universal Analytics

Download Airlock.js v1.03

See Airlock.js in action.

We built Airlock.js to help you quickly start using Google Universal Analytics. See a demo of Airlock.js in action or use this tool as a translator to convert your old tags while you migrate your site to Google Universal Analytics.


Example Snippets

Here are a few examples to get you started. Copy and paste these into the first box and hit translate.

Virtual pageview tracking:

_gaq.push(['_trackPageview', 'custom-pagename']);

Event tracking:

_gaq.push(['_trackEvent', 'category', 'action', 'optional label', 'optional integer value']);

Custom variable:

_gaq.push(['_setCustomVar', 2, 'name', 'value', 'optional scope']);


| 'transaction ID',
| 'store name',
| 'order total',
| 'tax',
| 'shipping',
| 'city',
| 'state/region',
| 'country']);_gaq.push(['_addItem',
| 'transaction ID',
| 'SKU code',
| 'product name',
| 'product category/variation',
| 'product price',
| 'quantity purchased']);_gaq.push(['_trackTrans']);