WebSite X5Help Center

 
Vedat G.
Vedat G.
User

Tracking Id for Google Analytics Questions  en

Autor: Vedat G.
Visitado 2795, Seguidores 3, Compartilhado 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

Publicado em
9 RESPOSTAS - 2 ÚTEIS
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

Ler mais
Publicado em de 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.

Ler mais
Publicado em de 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

Ler mais
Publicado em de Paul M.
David Wilson
David Wilson
User

Thankyou paul

I stand corrected

Ler mais
Publicado em de David Wilson
Der Zwoemti
Der Zwoemti
Moderator

Yes only the ID

UA-xxxxxx-1

Ler mais
Publicado em de 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

Ler mais
Publicado em de 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

Ler mais
Publicado em de Paul M.