Hi,
I struggle understanding how to track multiple fields on a single event.
I have a chat and want to send an event when a new message is sent, each event should log several values (chat_id, stream_id, is_new_chat, and other fields)
These value come from the client state, but for an event the number of fields are limited to 3 I think
Is there a way to logs all these fields in a single event on a button click ?
However you can use JSON stringify to encapsulate multiple fields into a single string parameter. That way you can have multiple values within an event value.
A example test page that would achieve this is below.
This would track an event as:
Hi @JoeSlain
You can also use custom action dimensions to track additional data within your event.
But if you want to analyze events with these custom dimensions, you’ll have to use the Custom Reports premium plugin, or analyse directly in the MySQL database.