The Hidden Layer Tips for web analytics, tag management, and other items in the hidden layer of the web.

How to Dissect a Vendor Script

This post is for the many of you that deal with the middle layer of the web (analytics, marketing, so forth) but have little to no experience with javascript. When you contact a vendor to implement their stuff on your pages, typically they'll send you some instructions along with a script to go on one or more pages across your site. These may be something to just add on every page regardless of what the page is, of may require to be placed on specific pages.

In many cases, the vendor's script may not have a whole lot of information broken out so you may need to dissect the script. This may be especially true if you are porting the snippet into a tag management system such as Adobe DTM or Tealium. In one of these cases, you may not need the whole script, only a couple minor pieces--so it is important to know how to dissect a basic script.