Analytics Pros

.
Home Blog Google Analytics Un-obfuscating the GA.JS file

Un-obfuscating the GA.JS file

Quick post!

Need to read the Google Analytics GA.JS script easily?

If you've done much Google Analytics technical work you'll know that figuring out the Google Analytics ga.js script is really hard thanks to the obfuscation/optimization it has been run through.   This trick won't completely un-obfuscate the script, but it will make it a heck of a lot easier to read.

So, to see a readable version of the ga.js script, simply copy the script (click here, the select all, copy), and go to the JavaScript Beautifier, paste the script in, and voila.  Now you can much more easily track down a method definition to, say, figure out why cookies aren't being set in your custom implementation the way you want them to be set.

Enjoy!

Thanks to Fuor Digital (Chicago-based Digital Media Specialists) via Twitter (@fuordigital) for the Tweet passing on a link for 28 really useful web development tools that included a link to an online JavaScript "beautifier".

UPDATE:  Found some additional JavaScript testing, validation, fomat checking, compacting, and compression!


Comments(0)



Be the first to add a comment
Add Comment
 
Follow analyticspros on Twitter

Bookmark and Share

Subscribe in a reader

Enter your email address:

Delivered by FeedBurner

Ask Any Question

 
 
 
 

Members Login


Google Analytics Authorized Consultant seal
Analytics Pros is an Urchin Software Authorized Consultant

Google Analytics Training in Toronto: April 6 - 7

ems_tor_hmsm_125

Use code "CALEB15" for a 15% discount at eMetrics Toronto!

Customer Reviews

Read customer reviews of Analytics Pros at the Google Solutions Marketplace.

The Name Says It All 'Analytics Pros'

SF Search Marketing

Hire Analytics Pros - You'll be glad you did!

Lisa Thayer

Analytics Pros Are My Go To Guys

Jonah Stein

Product Highlight

Measure the complete picture of website activity with APE, the Analytics Pros Engine. APE extends Google Analytics tracking to include page-level interactions including outbound links, file downloads, email address clicks, forms, buttons, scripts, and more.  Learn more about APE today!


Feedback Form