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
1.4K members online now
1.4K 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

What to set cid (client ID) to for a desktop program?

Follower ✭ ✭ ✭
# 1
Follower ✭ ✭ ✭

I am updating 16 desktop programs to send analytics data to GA.

 

I'm planning to set :

 

uid=GUID()    // I generate a random GUID via a Windows api call

an=  $ShortNameOfProgram /// an is app name

cid=$ShortNameofProgram +GUID()   

 

It's a little redundant but seems like the best way to "mimic" the format GA is using (where a Client would, I assume, be a web browser)

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author MrAnalogy
April 2016

Re: What to set cid (client ID) to for a desktop program?

Top Contributor
# 2
Top Contributor
Hi,

you can use whatever string you want as long as it does not pass any PII / Private data. Google suggests using UUID v4 but this is not required. https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid

Kind regards,
Zorin
Web analyst @ escapestudio.net

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author MrAnalogy
April 2016

Re: What to set cid (client ID) to for a desktop program?

Top Contributor
# 2
Top Contributor
Hi,

you can use whatever string you want as long as it does not pass any PII / Private data. Google suggests using UUID v4 but this is not required. https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid

Kind regards,
Zorin
Web analyst @ escapestudio.net