Google analytics tracking code is wrong?
-
Dear all,
I see a dip in direct traffic which is quite significant and I wonder if my google analytics tracking code is wrong.
Which code should I use?:
A:
B:
or

-
I would go for A or C, but as their is a difference between them you have to choose yourself. C will enable remarketing via Google Analytics remarketing lists as A will just use the default tracking code. I won't use B as this is using the CDATA tags and is also using the setDomainName variable from an older version.
Btw, the downside of using C however is that a certain percentage of visitors will block this Doubleclick JS which is used in the tracking code due to browser plugins for adblocking.
-
Hi!
Go with option A.
B contains deprecated elements, and C would track everything as the same page in addition to containing errors.
hope this helps

-
Hi there,
As was already mentioned here, the first one (A) should work ok (that's the updated code given to track a domain and their subdomains). What type of domain structure are you looking to track?
Thanks!