analytics tracking code not appearing
Permalink
Ok I am not sure if anyone has had this problem but I haven't found anything that relates in the forums.
I host a domain, but the domain name is with another company and they point to my server.
just recently inserted google analytics tracking code. When I go to the full domain namehttp://www.domainname.co.za and then view the source code. I CAN see the analytics in the header....
BUT
when I go tohttp://domainname.co.za and then view the source code the analytics is no where to be seen.
HELP please
Thanks
Maria
I host a domain, but the domain name is with another company and they point to my server.
just recently inserted google analytics tracking code. When I go to the full domain namehttp://www.domainname.co.za and then view the source code. I CAN see the analytics in the header....
BUT
when I go tohttp://domainname.co.za and then view the source code the analytics is no where to be seen.
HELP please
Thanks
Maria
It would seem your .htaccess file in your directory has not been set up to recourse yourhttp://mysite.com tohttp://www.mysite.com, so in effect it is as if you had two similar sites online instead of one.
Can you copy the file (its in the top of the root folder on your server that holds your c5 installation) and post it for us to see what the settings are you have in it?
(By the way, I don't believe .htaccess behaves properly unless its in the public folder with your c5 files)
Adrian
edit: the following is what I copied from the top of one of my sites .htaccess to resolve the site to www. even if not typed in. I'm sure there are many variations but this one is working for me.
RewriteEngine On
Options +FollowSymLinks
# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.(.*)
RewriteRule (.*)http://www.%{HTTP_HOST}/$1 [R=301,L]
Can you copy the file (its in the top of the root folder on your server that holds your c5 installation) and post it for us to see what the settings are you have in it?
(By the way, I don't believe .htaccess behaves properly unless its in the public folder with your c5 files)
Adrian
edit: the following is what I copied from the top of one of my sites .htaccess to resolve the site to www. even if not typed in. I'm sure there are many variations but this one is working for me.
RewriteEngine On
Options +FollowSymLinks
# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.(.*)
RewriteRule (.*)http://www.%{HTTP_HOST}/$1 [R=301,L]
Hey it appears that there is nothing in my .htaccess file
i downloaded it and opened it with text edit and there is nothing!
no too clued up about htaccess - need to get up to scratch with these things....
ill paste in what you mention is in your doc, if it works for you then I am sure it will work for me.
i downloaded it and opened it with text edit and there is nothing!
no too clued up about htaccess - need to get up to scratch with these things....
ill paste in what you mention is in your doc, if it works for you then I am sure it will work for me.
Cool... should do the trick.
Also, to be thorough, you may want to turn off your caching and then Clear caching for both variations (then turn back on)to assure all edits done before changing your .htaccess were being shown.
Also, to be thorough, you may want to turn off your caching and then Clear caching for both variations (then turn back on)to assure all edits done before changing your .htaccess were being shown.
www.www.domainname.co.za/index.php/login... - the analytics appear in the system settings
but
if I log in with the url without a www in front the code i inserted is not in the system settings.
why would this be happening on concrete?