HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Google Analytics

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#99880 (In Topic #19613)
Avatar

Fan in action

Not picking up tracking data

I have an account for Google Analytics and applied my Acct ID in the settings/configuration and currently being told by Google that the code in HTML_HEAD.TPL is the issue.

Not sure what or how to fix this if it is the issue...

Some help would be appreciated.

Rat :ninja:
Back to the top
 
Posted
Rating:
#99881
Avatar

Well-settled

Try to add the tracking code in GLOBAL_HTML_WRAP.tpl, just after {$EXTRA_FOOT} section. I put there and works fine.

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#99882
Avatar

Fan in action

Trying that now... Thanks.
Back to the top
 
Posted
Rating:
#99903
Avatar

Fan in action

OK I tried the above suggestion and yet it seems as tho I am only getting partial results. I see hits when "I" visit but outsiders are being left out? My Robots text is not active and OCP is not blocking bots.

NOTE: I left the HEAD TPL alone didn't delete anything.

Added your suggestion to GLOBAL_HTML_WRAP.tpl

So in essence I am still seeing results not showing. My Webalizer logs produce better reports should I want to use them....

Rat
Back to the top
 
Posted
Rating:
#99905
Avatar

Community saint

Webalizer will track virtually everything that hits your web site by grabbing the raw data directly from the web server log file, so that will give you more detailed and accurate information if you want to see everything that is hitting your web site (including bots, search engines, and real people). Google Analytics is a bit more limited in what it counts and will typically only count human traffic (unless they have javascript disabled in their browser). Web bots don't usually do javascript so Google Analytics won't count those, and ocPortal built-in stats will filter out the more common search engine bots. Smaller web sites (unlike Yahoo!, Google, Microsoft, etc) on the Internet will get way more hits from bots than actual real people, so if you want to know how many real people are using your site, then Google Analytics is the way to go. Webalizer stats is useful for tracking down bots that are unnecessarily hammering your site with traffic or that aren't obeying the robots.txt file and you can use the data there to block their range of IP addresses in the .htaccess file if you feel they need to be blocked from accessing your site.

Back to the top
 
Posted
Rating:
#99906
Avatar

Fan in action

Thanks Jason!

A better description is always helpful. Yea I am getting a lot of Yanex and China all over my site causing a lot of bad lag and traffic so I am actively killing them off by server bans.

Thanks again for the info.

Rat
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: