Hi,
All parameters can be changed through the javascript trigger joinchat:event
except the Event Category which is hardcoded. e.g.:
jQuery(document).on('joinchat:event', function(e, params){
params.event_label = 'My custom label'; // by default is out url
});
In the ‘joinchat:event’ also you can return false to stop sending default events (GA, GTM, Facebook) and send your custom event. e.g.
jQuery(document).on('joinchat:event', function(e, params){
gtag('event', 'your_event_name', {
'event_category' : 'whatsapp_contact',
'event_label' : params.chat_id, // phone number
});
return false; // Stop Joinchat events
});
We had never been asked for it but we could include in the next version the parameter "event_category"
to be able to modify it as well.
Can you give us an example of the event you need to check if it’s possible with our plugin?
-
This reply was modified 2 years, 10 months ago by
Creame.