0
votes

I'm trying to setup analytics for localhost and for some reason it doesn't work, I saw in console that something is sent to google but when I open analytics page there is nothing. Also, I have tried to replace tracing id with tracking id for production and still nothing.

Also, what can be interesting, what I currently have on analytics is wordpress pages and now I'm trying to put analytics in angular app which is running from wordpress. Any suggestions? Thanks.

1
There is no difference in setting up analytics for an "in production" site and setting it up for a localhost, just create a tracking ID and embed the JavaScript. Why are you thinking it doesn't work? - Adam
Because nothing is refreshed on analytics. Maybe they need some time to refresh data. :/ - Grissom
It does take time, check the "real time" data, it may take a minute, but if you have an active session it will show up. - Adam

1 Answers

0
votes

Set Cookiedomain to "none" (as per GA documentation).

ga('create', 'UA-XXXX-Y', {
  'cookieDomain': 'none'
});