Is it possible to pass an object to the .track()
method of analytics.js
?
analytics.track('button clicked', {
prop1: 'val1',
// object e.g. {prop2: 'val2', prop3: 'val3'}
});
I looked through their documentations and source code, but couldn't find an answer. I would greatly appreciate your help if you've had experience with this and have an answer.