Mobile app version of vmapp.org
Login or Join
Hamaas447

: Can I use an IP Address when signing up for google analytics? I have a CMS built with angular that allows users to create a basic website and then register an available domain to use. For

@Hamaas447

Posted in: #GoogleAnalytics

I have a CMS built with angular that allows users to create a basic website and then register an available domain to use. For example, if I register example.com, when a user goes to example.com, it pulls data down and renders content for that site. example2.com can also be created and if that is accessed, it pulls content for that site.

The problem I have is when signing up for Google analytics, it asks for a website URL, but in my case it varies, so can I use an IP address? or is there another option as well?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelley277

Unless you want to limit your tracking code to just one domain it should be fine to use it in a different domain. Just make sure you use auto as a parameter:

ga('create', 'UA-XXXXX-Y', 'auto');


Specifying auto enables automatic cookie domain configuration, which tells analytics.js to automatically determine the best cookie domain to use.

Reference

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme