Is it possible to have a generic eventParameters output

22 views
Skip to first unread message

Greg Robertson

unread,
Apr 3, 2020, 2:14:34 PM4/3/20
to divolte-collector
I'm relatively new to Divolte and looking at it as part of a web application analytics ... It looks like perhaps you have to use a custom event for each event you have - which could be a bit cumbersome for what I'm dealing with

The ideas I've had thus far (but no luck yet)

1) Before calling signal from anywhere dump all the params as String into a special entry then include that one big blob as the param in the signal. This of course would require custom code on the JS side and probably makes it harder to detect the actual params when querying the data later on
2) In the mapping file - somehow or other iterate through all of the possible values in the params and cast to String as necessary then dump that whole piece to an array of string in the JSON schema.  

Is there a way to easily debug a mappings file? I've tried using a println (from groovy in it) but the println statements are not showing up in the logs anywhere


Friso van Vollenhoven

unread,
Apr 10, 2020, 2:34:19 AM4/10/20
to divolte-...@googlegroups.com
Hi Greg,

1) Before calling signal from anywhere dump all the params as String into a special entry then include that one big blob as the param in the signal. This of course would require custom code on the JS side and probably makes it harder to detect the actual params when querying the data later on

2) In the mapping file - somehow or other iterate through all of the possible values in the params and cast to String as necessary then dump that whole piece to an array of string in the JSON schema.  

Indeed working with strings would to an extent defeat the purpose of having a schema. Having a schema has many benefit, but it must indeed be updated every time you want to make a change to your data collection setup.

 

Is there a way to easily debug a mappings file? I've tried using a println (from groovy in it) but the println statements are not showing up in the logs anywhere
Testability of the mappings is unfortunately an under-developed aspect of Divolte. People are using different end-to-end testing options involving Kafka for this, but there's nothing out of the box.


Cheers,
Friso
 
Reply all
Reply to author
Forward
0 new messages