Welcome to, an ancient place of power birthed from the remains of an abandoned roman internet super highway. A site so antique, it's everything and nothing at once. Once in a blue moon I might update a thing.

HomeUniversal Analytics Tokens

[ Filed under:  ]

Representing the last module I wrote while I worked for Symmetri Marketing; and a collaborative module between the development team and the SEM team, this module attempts to provide a site-wide solution to a problem that arose after Google Analytics switched to Universal Analytics: How to capture campaign parameters and save it with webform submissions.

It's a bit too complicated to explain here, but in short: Before Universal Analytics, google's cookies could be read, broken into bits, and the bits transmitted in form information. That became impossible with UA; and a few drupal modules that saved administrators time and scripting in doing this automatically stopped working. This module essentially works by capturing the URL of visiting users and keeping a cookie up-to-date of that URL. The URL is parsed and its information made available as tokens to be used in the site - primarily for webforms.