Google Analytics problem in my WordPress based Website


I am trying to create a Google Analytics for this website

and this is the index.php for that site.

The text in italics is what I added to the code
<?php
include (“analyticsTracking.php”);
define(‘WP_USE_THEMES’, true);
/** Loads the WordPress Environment and Template */
require(‘./wp-blog-header.php’);
$my_string = “<font color=\”red\”> <a href=\”http://dr-lokku.com/docblog/wp-admin\”> Login </a> </font> “;
echo $my_string;
?>

And the include file code  is :

<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.&#8221; : “http://dr-lokku.com/docblog/&#8221;);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
var pageTracker = _gat._getTracker(“UA-XXXXXX-X”);
pageTracker._trackPageview();
</script> <?php
// End Analytics tracking code
?>

and I am getting this status on my Google analytics page..the status means the analytics is not receiving the Tracking DATA

WTF

EDIT : The code which I entered was correct and the issue got resolved automatically after a day 🙂 and the data is getting tracked now.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s