gaAddons - Google Analytics Addons by Stéphane Hamel
Create a new session custom variable with the current weekday. This is particularly useful for segmentation.
Since this call sets a custom variable, it should be put before your _trackPageView call, otherwise the data will not be collected.
_setDayOfWeek is initialized only on the 1st page view of the visit - therefore, if you want to use this feature, make sure it is included on every pages of your site.
The number of custom variables slots is limited to five. Be careful if you use this feature alongside other gaAddons features also making use of custom variables (namely, _4Q, _setDayOfWeek).
_gaq.push(['_setDayOfWeek']);
_gaq.push(['_setDayOfWeek', {
index: 1, // optional [1-5]
name: 'DayOfWeek', // optional string
value: null, // optional string
scope: _GA_SCOPE_SESSION, // optional _GA_SCOPE_PAGE|_GA_SCOPE_SESSION|_GA_SCOPE_VISITOR or use 3,2,1 respectively
days: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] // optional array of strings
}]);