WebSite X5Help Center

 
Mandar V.
Mandar V.
User

Where to add code of Google Analytics?  en

Автор: Mandar V.
Просмотрено 1642, Подписчики 1, Размещенный 0  

Client has send me below code to include it in a page.

Where shall I add it? Do I need to add it to home page only or all pages?

--------------

Code is :

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174945109-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-174945109-1');
</script>

------------

Please guide. Thanks in advance. 

Размещено
7 Ответы - 1 Полезно
Mandar V.
Mandar V.
User
Автор

Thanks Klaus S.

Client has send this code to me and want to observe Google analytics at his own. What to do in this case?

Thanks with regards

Mandar

Читать больше
Размещено От Mandar V.
Andy A.
Andy A.
User

if you go to step 1 in the program, and put the UA******  tracking code from there, then click on advanced, and insert global tracking code in there, that should be it added to ALL pages within website automatically.

If client wants to observe tracking details, you will have to add him within your User panel on Google analytics.  You can set up a monthly email to send to his email so he doenst have to access google on the web..

Hope this helps..  see attache pic..

Читать больше
Размещено От Andy A.
Mandar V.
Mandar V.
User
Автор

Thanks Andy A.

Will try it as you suggested. 

Regards

Mandar

Читать больше
Размещено От Mandar V.
Mandar V.
Mandar V.
User
Автор

Dear friend Andy A.,

I tried to do it as you suggested, but this section already contains some code. Screenshot attached here with. 

Please guide me what to do ?

Thanks in advance

Mandar

Читать больше
Размещено От Mandar V.
Andy A.
Andy A.
User

Mandar,  just paste the google code below the style code. (where it says <style>)

It will put it in the correct place. as long as its in the "head" section of page it should be all good.. 

Читать больше
Размещено От Andy A.
Mandar V.
Mandar V.
User
Автор

Thanks Andy A.

Did it as per yout suggestion. 

Regards

Mandar

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