Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. _gaq.push(['_setCustomVar',
  2. 1, // This custom var is set to slot #1. Required parameter.
  3. 'User Type', // The name of the custom variable. Required parameter.
  4. 'Member', // Sets the value of "User Type" to "Member" or "Visitor" depending on status. Required parameter.
  5. 2 // Sets the scope to session-level. Optional parameter.
  6. ]);
  7.  
  8. ga('create', 'UA-XXXXX-Y', 'auto');
  9.  
  10. ga('set', {
  11. dimension1: __isUserLoggedIn__,
  12. });
  13.  
  14. ga('send', 'pageview');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement