0

I have put the tracking code of Google analytics in my website example.com

So the tracking code was ga('create', 'UA-xxxxxxxxx', 'example.com');

After that I redirect my website as home.com

So I have to change my tracking code as ga('create', 'UA-xxxxxxxxx', 'home.com');

My Google analytics account refers as ga('create', 'UA-xxxxxxxxx', 'auto');

what should i put?

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
anastasia
  • 11
  • 6
  • possible duplicate of [Analytics.js: What does 'auto' argument do on tracking object creation?](http://stackoverflow.com/questions/21066477/analytics-js-what-does-auto-argument-do-on-tracking-object-creation) – Eike Pierstorff Nov 13 '14 at 09:02
  • So should I put ga('create', 'UA-xxxxxxxxx', 'auto'); will it work or not? – anastasia Nov 13 '14 at 09:24
  • "Auto" will set the cookie domain to the current domain where the code is placed, so that is a safe option. – Eike Pierstorff Nov 13 '14 at 10:09

0 Answers0