I am trying to track logged in customer’s email address through google analytics custom variable. But, it’s not being tracked by google analytics.
For testing purpose, I created another custom variable to track page title and it is working fine.
Here is my code:-
Tracking Email (Not Working)
_gaq.push(['_setCustomVar',
1, // Slot Number
'Email',
'test@example.com', // Sample Email Address
3 // Page Level Scope
]);
Tracking Page Title (Working)
_gaq.push(['_setCustomVar',
2, // Slot Number
'Page',
'Homepage', // Sample Page Title
3 // Page Level Scope
]);
Doesn’t Google Analytics Track Emails?
No you can’t send any Personally identifiable information to Google Analytics.
From the TOS: