Tracking Id for Google Analytics Questions
Author: Vedat G.
Visited 2807,
Followers 3,
Shared 0
Hi,
For version v11 Pro there is a new field in SEO section called Tracking ID for Google Universal Analytics.
First question: In this section do we only need to place the ID in UA-XXXXXXX-1 format, or in XXXXXX-1 format (without the UA at the beginning?)
Second Question: If any of the statement above is true, what happens to the full Google JS code that was already placed in all pages via the expert section? Do I delete it or do I keep it?
Best Regards,
Vedat
Posted on the
Hello Vedat,
You need to paste the entire tracking code from Google into the 'Tracking ID for Google Universal Analytics' field, not just the ID itself. In other words ALL the code similar to this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
[removed](unescape("[removed][removed]"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-110367-1");
pageTracker._trackPageview();
} catch(err) {}</script>
You can delete the JavaScript code in the Expert section... it would be inadvisable to have tracking code in more than one place on your web pages. Inserting the tracking code in Step 4 will ensure optimum results.
Kind regards,
Paul
Hi Vedat
As far as I know you use the UA, as it is part of the Tracking ID. and you can keep the code in place. The more ways you can verify google the happier google is. Hope this helped.
Just to clarify, David... verification performs a different function to tracking, which is what Vedat's enquiry was about.
In this instance it would definitely be a bad idea to have duplicate JavaScript code on the same page(s).
Thanks for your input though!
Kind regards,
Paul
Thankyou paul
I stand corrected
Author
Hi Guys,
Thanks for the information. On this thread here is what Claudio said.
The entire code is not possible to be pasted in the area provided, and only the ID part should be there.
http://answers.websitex5.com/post/103086
Best Regards,
Vedat
http://www.gurtan.com
Yes only the ID
UA-xxxxxx-1
See the official WebSite X5 help file:
http://help.websitex5.com/en/v11/evo/index.html?statistiche.htm
Author
Hi Guys,
Just to try it, I have placed the ID code only in the area provided. I have deleted the entire code I had in expert section before. It seems like it is working.
I am attaching the screen shot for real time.
Best Regards,
Vedat
http://www.gurtan.com
Thanks for the update, Vedat.
It appears that the wording of the X5 help file is a bit ambiguous.
Glad it all seems to be working fine!
Kind regards,
Paul