Hello,
I want to track how many of the people visiting my site, clicks on the “Send” button on my contact form. How do I do that? Usually you just put a html code google hands you out, and insert it on the page where you want the button to be tracked. But this is not possible on Enfold?
Please help, there must be a way to do it…
.
Hi,
Glad you figured it out! and thank you for sharing the solution here. Yes adwords docs have most of the answers https://support.google.com/adwords/ :)
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Vinay
Vinay,
I did not provide a solution to myself. My question was: How do I insert the code to a specific enfold page so I can track the button click conversion?
Regards,
Nikolai
.
Hi,
Please refer to this post – http://kriesi.at/documentation/enfold/add-onclick-event-to-the-contact-form-submit-button/
To track forms on certain pages, please use the code as following
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){
if(is_page(59)){
$att = "onclick=\"_gaq.push(['_trackPageview', '/VP/XXX/XXX']);\"";
}
return $att;
}
and replace page ID (59) with your page’s ID
Best regards,
Yigit