PDA

View Full Version : JS: alternative to '_gaq.push' for 'ga'



PHP6
05-09-2014, 03:36 PM
I know it's more google analytics question but I am sure I can get answer here. What's the alternative for this:


_gaq.push(['_addIgnoredOrganic', 'www.mydomainname.com']);

In ga syntax? (since I have ga('create', 'UA-XXXXXX-1', 'www.mydomainname.com');) Should I use:


pageTracker._addIgnoredOrganic("www.mydomainname.com");

or should I use:


ga('set', '_addIgnoredOrganic', 'www.mydomainname.com');

Thanks in advance

p.s. I spent couple of hours searching google but without much success