Created
August 11, 2012 18:13
-
-
Save robertjmoore/3326098 to your computer and use it in GitHub Desktop.
Pushing custom variables to GA to store the created month and year of a website visitor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_gaq.push(['_setCustomVar', 1, 'Join month', <%= "'#{cohort_month}'" %>, 1]); | |
_gaq.push(['_setCustomVar', 2, 'Join year', <%= "'#{cohort_year}'" %>, 1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment