gaAddonsgaAddons - Google Analytics Addons by Stéphane Hamel

Documentation: Calls Reference

_4Q

Easily integrates 4Q by iPerceptions with Google Analytics. This replaces the default 4Q integration script and automatically add the advanced 4Q + GA integration. By default, this feature will overwrite the _setAllowLinker and _setDomainName values to allow tracking across multiple domains (your domain and 4q.iperceptions.com).

Mandatory

"account" is the sdfc code provided by 4Q.

Caveat: custom variables constraint

4Q integration uses several custom variables slots, be careful if you use this feature alongside other gaAddons features also making use of custom variables (namely, _setDayOfWeek). In this case, only the last value being set during the session will be recorded. The 4Q custom variables being used are:

  1. Survey ID (4QSurveyID) - mandatory - session scope
  2. Unique ID (4QUID) - mandatory - session scope
  3. Overall satisfaction (4QSAT) - optional - session scope
  4. Purpose of visit (4QPoV) - optional - session scope
  5. Task completion (4QTask) - optional - session scope

_gaq.push(['_4Q', {
	account: '', // mandatory string
	loc: '4Q-WEB2', // optional string
	lID: 1, // optional integer
	src: 'http://4qinvite.4q.iperceptions.com/1.aspx', // optional url
	allowLinker: true, // optional boolean
	domainName: 'none' // optional string
	}]);
      

Parameters

account
The 4Q account id.
loc '4Q-WEB2'|string
The 'loc' parameter as provided by 4Q..
lID integer
The lID parameter as provided by 4Q..
src 'http://4qinvite.4q.iperceptions.com/1.aspx'|url
The URL location of the 4Q invitation script, as provided by 4Q.
allowLinker true|false
Allow tracking across domains (yours and 4Q.iperceptions.com). The default value for this parameter is true.
domainName 'none':domain
The domain name to allow cross-linking. Setting 'none' will allow any domain to be tracked.