N
N
ninJo2015-12-29 23:15:14
Google Analytics
ninJo, 2015-12-29 23:15:14

Google Analytics on a subdomain?

In general, the task is super simple and used to take 5 minutes. Now it's the second day in a dead end.
There is a static subdomain. For him I want a separate tracking.
I paste the code - it doesn't work... I tried a variety of options, finally created an empty subdomain with a page where there is nothing but Google Analytics. The real time of users shows, but the status is still - Not Installed
Here is the actual 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-МОЙ-НОМЕР', 'auto');
  ga('send', 'pageview');

</script>

It does not work, I tried all sorts of different options, even beat your head against the wall.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
ninJo, 2015-12-30
@ninJo

Answered now on google forums, they said that it could take time. I'll wait a couple of days :)

M
maaGames, 2015-12-30
@maaGames

It took me three days to update. Or even four. But I was also nervous there and pressed the "update data" button, so maybe everything would have passed faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question