A while ago I posted a solution that used JS functions to override JS events to post an event to an Analytics package. Recently, I found out there is a more solid out-of-box solution available for GA Universal package to efficiently ensure that events are being tracked properly – even on links/actions that redirect you […]
googleanalytics
Campaign parameters/tracking with Google Analytics (Universal) in a Facebook App Page
This is a follow-up post where I was explaining how to set/override GA campaign variables programmatically with JS. The unique element of this problem is that all query string parameters are not passed along to your application’s iframe, so by default, we cannot use UTM campaign parameters. Otherwise stated: when GA campaign parameters are passed […]
Using Event Tracking with links or actions involving Page loads (sending a user off the page without opening a new window) with Google Analytics and JS
Update – April 16th, 2014: a new article on how to achieve this more efficiently specifically with GA Universal Code was posted. The below idea is still valid in some cases. Is it possible to use Event tracking with links/forms that redirect to pages in the same browser window? I used to think that this […]
How to create a Rollup property with Google Analytics Universal tracking code – (General and Event Tracking)
A client requested a Rollup account to aggregate all the stats into one property from multiple sites. The general context was that each region (e.g. UK, Spain, France, Australia, South Africa, Canada, US etc) were given a regionalized page (each with a unique property ID in GA) and all general metrics as well as Custom […]
Parameter Passing and Redirect Craziness: 301 redirects, Fragment Identifiers (Hash – #), Query String Variables
Some key points/themes: in 301 redirects, parameters often do not get passed on as either the server config (server-side script, .htaccess, mod_rewrite or server/CMS config) is not set up to do so. Ensure to consult relevant parties (e.g. IT, web devs etc) when unsure. See below for tips. the fragment (hash – #) are not […]
How to set/override Campaign variables in Google Analytics (Universal) with JS
Campaign variables are key for tracking referral data and the best part is that they come “free” out-of-box in Google Analytics (GA). All you need to do is tack on the Urchin Traffic Monitor (UTM) parameters to your URL and you’re set. What if you needed to change these variables in JS? This is easy […]