Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

i am using Google Analytics tracking code for tracking site views but it shows

Status: Tracking Not Installed

here is my tracking code .

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-0000000-0', 'droidapp.me');
  ga('send', 'pageview');

</script>

i put this code in header of my site.

basically when any one browse this URL it redirects on the other one after delay of 10 seconds.

plz tell me where is the error . thanks in advance.

share

migration rejected from stackoverflow.com Aug 8 '13 at 11:54

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as unclear what you're asking by Stephen Ostermiller Aug 8 '13 at 11:54

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
The script needs to be at the end of the body, right before </body> –  Pekka 웃 Aug 3 '13 at 12:13
    
No, the asynchronous GA code (which is the standard now) goes in the <head> –  Tim Fountain Aug 3 '13 at 13:29
    
UA-0000000-0 is not a valid tracking code. Make sure you put your tracking code in its place. Also, if I visit droidapp.me, I get redirected to the Google Play site. Is that really your site, and is it set up correctly? –  Stephen Ostermiller Aug 6 '13 at 11:17

1 Answer 1

I would suggest you install this: https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk.

This way you can inspect your tags.

Also; you're Google Analytics code is normally on all your pages. Not just on one page.

And last; I guess you have some conflicting JavaScript. Check if there's no error in your JavaScript (in the debug console of your browser).

share
    
their is no other JavaScript code. –  haseeb Aug 3 '13 at 12:22
    
How do you do this then: "basically when any one browse this URL it redirects on the other one after delay of 10 seconds." –  user2626301 Aug 3 '13 at 12:26
    
with php header() and sleep() function –  haseeb Aug 3 '13 at 12:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.