Guest User

Untitled

a guest
Jun 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. function eventTracking(category, action, label, that) {
  2.  
  3. if(!category) {
  4. category = 'undefined';
  5. }
  6. if(!action || action == '') {
  7. action = '';
  8. }
  9. if(!label || label == '') {
  10. label = location.href;
  11. }
  12.  
  13. _gaq.push(['_trackEvent',category, action, label]);
  14. //_gat._getTrackerByName()._trackEvent(category, action);
  15.  
  16. if(that) {
  17. setTimeout("window.location.href='" + that.href + "'",100);
  18. }
  19. }
Add Comment
Please, Sign In to add comment