Skip to content

Instantly share code, notes, and snippets.

@caefer
Created November 24, 2011 05:56
Show Gist options
  • Save caefer/1390717 to your computer and use it in GitHub Desktop.
Save caefer/1390717 to your computer and use it in GitHub Desktop.
_gaq.push(['_setCustomVar',
1, // This custom var is set to slot #1. Required parameter.
'Items Removed', // The name acts as a kind of category for the user activity. Required parameter.
'Yes', // This value of the custom variable. Required parameter.
2 // Sets the scope to session-level. Optional parameter.
]);
_gaq.push(['_trackEvent',
'Shopping', // category of activity
'Item Removal', // Action
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment