HI @mirackygmailcom
In general, it most likely would be possible to pass over custom fields data but not quite this way.
Let’s ay that your “acf_tour_name” is “Prague” and “value” is “100”. If you pass it over like
'event_label': 'acf_tour_name','value': 'acf_tour_value'
in the code the result will be that in your GA/FBP you’ll see
adv_tour_name
and
acf_tour_value
strings literally, not actual values of them.
To overcome this you’d need to “print out” values of these fields with PHP and use some ACF-core function to fetch field value so do something like that:
'event_label': '<?php echo get_field( 'acf_tour_name' ); ?>','value': '<?php echo get_field( 'acf_tour_value' ); ?>'
Please note: I didn’t test above code and it’s more of a general advice on what direction to follow rather than a solution. On our snippet end, the way is to print out field value with PHP but then how to get that variable it a different thing and might depend on ACF too so you might want to check ACF docs to find out more about that.
It’s a customization that goes a bit out of the scope of our support but hoepfully this will give you some kickstart.
Best regards,
Adam