Dual GA Tracking

40 views
Skip to first unread message

Steve Barnes

unread,
May 15, 2018, 9:03:12 AM5/15/18
to Cookie Control Support
Hi guys

We track our websites using 2 x Analytics. 

1 x for just the website itself
1 x for our entire network

Onrevoke function I need to block both if the user does not want them.. how do i implement both together? Please be gentle.. not a coder :D

Would it be like below?

            onRevoke: function(){
                // Disable Google Analytics
                window['ga-disable-UA-0000000-1'] = true;
                window['ga-disable-UA-0000000-2'] = true;
                // End Google Analytics
            }

Gerasimos Tzoganis

unread,
May 15, 2018, 9:06:34 AM5/15/18
to Cookie Control Support
Hi Steve,

Yes, that should work fine and disable tracking for both accounts. 

Regards,
Gerasimos

Steve Barnes

unread,
May 15, 2018, 9:57:05 AM5/15/18
to Cookie Control Support
Thanks
Reply all
Reply to author
Forward
0 new messages