Link to home
Start Free TrialLog in
Avatar of phpmysqlcoder
phpmysqlcoderFlag for Denmark

asked on

redirect and google analytics

Google Analytics keep showing --> "Tracking Not Installed" and I am wondering if my setup is correct:

my root ==> /var/data/public
Joomla  ==> /var/data/public/home


/var/data/public/index.php
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://myweb.org/home" );
die();
?>

I added Google Analytics Javascript code to ==> /var/data/public/home/templates/ja_purity/index.php

My .htaccess:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^myweb\.org$ [NC]
RewriteRule ^(.*)$ http://myweb/$1 [R=301,L]

RewriteEngine On
RewriteCond %{HTTP_HOST} ^myweb.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.myweb.org$
RewriteRule ^mail$ "http\:\/\/mail\.google\.com\/a\/myweb\.org" [R=301,L]
Avatar of j-b-t
j-b-t
Flag of Australia image

where did you add the google analytics code? Is it within the body tag of var/data/public/home/templates/ja_purity/index.php
(and I am assumign you are usign the ja_purity template)
Also - it can take a day or so  for tracking to show up - so Tracking Not Installed" can show up ahsortly after installation - also show us teh tracking code......?
Avatar of phpmysqlcoder

ASKER

Yes, I am using ja_purity template. Its been more than 3 days since I installed GA

/var/data/public/home/templates/ja_purity/index.php

<!-- END: FOOTER -->
 

 

 
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-00000-0");
pageTracker._trackPageview();
} catch(err) {}</script>


When you visit your page in a browser and 'view source' can you find/see your GA tracking code?
I do, I also see some statistics from GA, however, it still shows "Tracking Not Installed". I am wondering if it has something to do with the redirect.
ASKER CERTIFIED SOLUTION
Avatar of gwkg
gwkg
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
redirect issue is not fully addressed