Question

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?

Was it helpful?

Solution

No you can't send any Personally identifiable information to Google Analytics.

From the TOS:

7 . PRIVACY . You will not (and will not allow any third party to) use the Service to track or collect personally identifiable information of Internet users, nor will You (or will You allow any third party to) associate any data gathered from Your website(s) (or such third parties' website(s)) with any personally identifying information from any source as part of Your use (or such third parties' use) of the Service. You will have and abide by an appropriate privacy policy and will comply with all applicable laws relating to the collection of information from visitors to Your websites. You must post a privacy policy and that policy must provide notice of your use of a cookie that collects anonymous traffic data.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top