i am trying wrap my head around how to track some custom user activity. Things like button clicked or any html element clicked. i need to send in a bunch of custom data along with it. I would also like all these events to have all the info about the client as possible… like user agent etc. The way I see it, there are 2 ways to do this.
1 - call the updatePageActivity manually and attach with it the business data as custom contexts. The client/useragent info should come with when i set the webpage:true in argmap during tracker initilization.
2 - call the trackSelfDescribingEvent with the business data.
Question re: solution 1 -
How can i send custom context data with updatePageActivity event? It doesn’t seem to be on the method definition
Question re: solution 2 -
Will trackSelfDescribingEvent bring with it client/useragent info if i set it in argmap during initializtion?
Can i also send custom contexts here if i want to reuse a subset schema across events?