Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #745471

    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…

    • This topic was modified 7 years, 9 months ago by NikoArq.
    #745479

    .

    • This reply was modified 7 years, 9 months ago by NikoArq.
    #747313

    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

    #750927

    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

    • This reply was modified 7 years, 9 months ago by NikoArq.
    #750946

    .

    • This reply was modified 7 years, 9 months ago by NikoArq.
    #752896

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.