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

Analytics
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
star_border
Reply

Using a different GA account based on query string parameter

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

In my web application, clients are provided with unique URLs using a query string parameter:

 

http://www.mywebapp.com/   <--- Default demo

http://www.mywebapp.com/?appId=aR3allyL0ngValu3G03sH3r3 <--- client A

http://www.mywebapp.com/?appId=s0m3th1ng3ls3g03sh3r3 <--- client B

http://www.mywebapp.com/?appId=3737d737d73hdu37838du <--- 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')

 

Thanks!

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