WebSite X5Help Center

 
Vedat G.
Vedat G.
User

Tracking Id for Google Analytics Questions  en

Autor: Vedat G.
Visited 2800, Followers 3, Udostępniony 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

http://www.gurtan.com

Posted on the
9 ODPOWIEDZI - 2 USEFUL
Paul M.
Paul M.
Moderator

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

Czytaj więcej
Posted on the from Paul M.
David Wilson
David Wilson
User

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.

Czytaj więcej
Posted on the from David Wilson
Paul M.
Paul M.
Moderator

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

Czytaj więcej
Posted on the from Paul M.
David Wilson
David Wilson
User

Thankyou paul

I stand corrected

Czytaj więcej
Posted on the from David Wilson
Der Zwoemti
Der Zwoemti
Moderator

Yes only the ID

UA-xxxxxx-1

Czytaj więcej
Posted on the from Der Zwoemti
Vedat G.
Vedat G.
User
Autor

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

Czytaj więcej
Posted on the from Vedat G.
Paul M.
Paul M.
Moderator

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

Czytaj więcej
Posted on the from Paul M.