Hey,
I already discovered this and tried it that way: https://kriesi.at/documentation/enfold/contact-form/#add-on-click-event-to-the-contact-form-submit-button-
I tried it with the following Code:
add_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
function avia_add_submit_attributes_to_cf($att, $formID, $form_params)
{
$att = “onclick=”fbq(‘track’, ‘Contact’);””;
return $att;
}
I get this error: syntax error, unexpected ‘fbq’ (T_STRING)
Do you have any idea where the problem is and may be able to update your documentation?
Thanks in advance!
Hey PhilCzer,
Where did you get the “fbq” from? Which tracking are you trying to add?
Best regards,
Victoria
It’s a tracking short code of Facebook that works fine for me on other pages.
Check out view-source:http://betriebsfeier.wieneralm.at/ and search for fbq, it’s also part of the Facebook tracking code in the header.
Hi PhilCzer,
Do you have pixel configured?
https://developers.facebook.com/docs/facebook-pixel/implementation/
Best regards,
Victoria
Take a look again, please?
