I want to programmatically update a custom field associated with a Google Analytics Client ID. The custom field I want to associate with each Client Id, will be called "Leads" and it's value can either be "Sold" or it can be empty.
I want to know how to update custom data by Client ID; either via PHP or JavaScript. Is this possible with analytics.js or possibly a REST api of some sort?
Thank you.