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]
phpmysqlcoderAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

j-b-tCommented:
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)
0
j-b-tCommented:
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......?
0
phpmysqlcoderAuthor Commented:
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>


0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

gwkgCommented:
When you visit your page in a browser and 'view source' can you find/see your GA tracking code?
0
phpmysqlcoderAuthor Commented:
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.
0
gwkgCommented:
According to Google

"Check Status is not completely compatible with all websites, but rest assured that the status does not affect data collection and we are still gathering data for your account."

Source: http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=72717

Also, make sure under  Analytics Settings > Profile Settings > Edit Profile Information > Website URL:

that you included the http://
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
phpmysqlcoderAuthor Commented:
redirect issue is not fully addressed
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.