• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 542
  • Last Modified:

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]
0
phpmysqlcoder
Asked:
phpmysqlcoder
  • 3
  • 2
  • 2
1 Solution
 
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
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
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
 
phpmysqlcoderAuthor Commented:
redirect issue is not fully addressed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now