AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

3.8K members online now
3.8K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Using a different GA account based on query string parameter

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭


In my web application, clients are provided with unique URLs using a query string parameter:   <--- Default demo <--- client A <--- client B <--- client C



Each client will provide their own Google Analytics tracking ID.


  • The "Default URL" in the Property Settings does not allow query parameters.  Will this cause issues since clients are differentiated based on a query parameter?  My default demo ID won't match the client's ID.
  • When I create a tracker, should I naming it?  ga('create', 'UA-XXXXX-Y', 'auto', 'clientA')



1 Expert replyverified_user

Re: Using a different GA account based on query string parameter

Top Contributor
# 2
Top Contributor
Hi James L,

The "Default URL" value does not impact the visitor's experience on your site. I believe it's related more to reporting an other things that aren't part of data collection itself.

Regarding the named tracker, you would only need to do this if you have multiple tracking objects on the page (ie. say you were were collecting data into two or more different GA properties). That's really the only use for naming trackers.
Nicky Yuen, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.
Find me on: Google+ | LinkedIn