Forums / Search Engines / Analytics js tag

Analytics js tag

Views: 83

Results 1 to 4 of 4
13 Jul 2023, 1:31 PM
#1
jpvv avatar

jpvv

New Zenner

Join Date:
Feb 2023
Location:
Spain
Posts:
28
Plugin Contributions:
0

Analytics js tag

Hello:

I followed the instructions to add the google analytics property tag as a js.:cool:

All pages show it (as a call to a script, NOT as a script exposed on the page).

15 Days later Analytics says not found. And that if 48 hours have passed and it hasn't found it, check if it's installed correctly.:shocking:

In their help they say that must be inmediatly after the HEAD tag. ( And it isn't there, is in the middle of HEAD section ) But I guess that shouldn't matter much.

Has this happened to anyone? Anyone know what might be happening ? Thank you very much.

Site: tecnikit.com

18 Jul 2023, 5:14 PM
#2
idaho_eagle avatar

idaho_eagle

New Zenner

Join Date:
Jul 2023
Location:
Idaho
Posts:
7
Plugin Contributions:
0

Re: Analytics js tag

Ever get an answer to your question? I am having the same issue.

18 Jul 2023, 5:44 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,865
Plugin Contributions:
18

Re: Analytics js tag

Generally, when they ask for > immediately after the <head> tag or > just before the </body> tagthey mean exactly that.

In 1.5.8a, right after the head would be around line 55 of includes/templates/YOUR_TEMPLATE/common/html_header.php.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

28 Jul 2023, 4:21 AM
#4
jpvv avatar

jpvv

New Zenner

Join Date:
Feb 2023
Location:
Spain
Posts:
28
Plugin Contributions:
0

Re: Analytics js tag

Editing the includes/templates/YOUR_TEMPLATE/common/html_header.php file....

I copied and pasted the goggle analytics script just below the <head> tag.

2 minutes later, Analytics found the property on its own and triggered data collection.

Remember to remove the analytics js file from the /html/xxxxx/includes/templates/YOUR_TEMPLATE/jscript directory if you use this system.

Thank you !!