WebSite X5Help Center

 
Vedat G.
Vedat G.
User

Tracking Id for Google Analytics Questions  en

Автор: Vedat G.
Просмотрено 2684, Подписчики 3, Размещенный 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

Размещено
9 Ответы - 2 Полезно
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

Читать больше
Размещено От 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.

Читать больше
Размещено От 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

Читать больше
Размещено От Paul M.
David Wilson
David Wilson
User

Thankyou paul

I stand corrected

Читать больше
Размещено От David Wilson
Vedat G.
Vedat G.
User
Автор

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

Читать больше
Размещено От Vedat G.
Der Zwoemti
Der Zwoemti
Moderator

Yes only the ID

UA-xxxxxx-1

Читать больше
Размещено От Der Zwoemti
Vedat G.
Vedat G.
User
Автор

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

Читать больше
Размещено От 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

Читать больше
Размещено От Paul M.