I am working on a SaaS application, where I let user(s) to use their own google analytics account for tracking their site.
While tracking, I also wants to take benefit of custom dimensions. It is not possible to telling/educating each client(most of them are non-technical) about "how to create custom dimension/metric using Google Analytic Interface".
Is there any way, that I can create custom dimension using code. something like
ga('<command>','<dimension name>', '<index>', '<scope>')