Closed nikolenko-dmitriy closed 3 years ago
Hi @nikolenko-dmitriy,
Very nice suggestion, thank you.
I've made a first version in a separated branch. It would be used in a Twig template as follows:
{{ fbEvent('Purchase', {
'email': 'jack@mail.com',
'first_name': 'Jack',
'last_name': 'Timberlake'
}, {
'currency': 'EUR',
'value': 20,
}) }}
Where the first parameter is the event name, second user data, and third custom data. Supporting all possibles keys.
Is this how you saw the implementation too?
Hi @Diewy,
Yes, this solution would help a lot. Thanks!
The Twig Function is now released. Also, documentation was added to explain how to use it.
Thanks again for the suggestion!
It would be very useful to be able to send any custom conversion event from anywhere in the
twig templates
using some kind of function.For example, I have to send an event about the
new lead
when the contact form was submitted and athank you message
was shown. Or probably send the conversion event when the user accesses some certain page on the website.