2.4K members online now
2.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

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
Marked as Best Answer.
Accepted by topic author MrAnalogy
April 2016

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

Top Contributor
# 2
Top Contributor

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.

Kind regards,
Web analyst @