Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #325281

    Hi there,

    I have implemented the following:

    http://kriesi.at/documentation/enfold/add-onclick-event-to-the-contact-form-submit-button/

    onto my website: http://www.whitestagweddings.com/contact

    Now I still don’t know how to successfully track contact forms via analytics. How would I finish this setup?
    Alternatively, is there any other successfully proven way of doing this? I don’t want to use Contact Form7 etc.

    Many thanks,
    Andy

    #325305

    Hi Andy!

    I’m not seeing the code being applied to your contact form button, remember that you need to change the /VP/XXX/XXX by your tracking 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=\"_gaq.push(['_trackPageview', '/VP/XXX/XXX']);\"";
    return $att;
    }

    Best regards,
    Josue

    #325729

    Hi, thanks for getting back to me. I have added the code to:

    /wp-content/themes/enfold/functions-enfold.php

    and did replace the code with my tracking code.

    If you could run me through the correct procedure about where to add it, that would be much appreciated, I am not a big whizz on editing code :)

    Thanks!

    #325834

    Hey Andy!

    You need to put it in /wp-content/themes/enfold/functions.php, at the very end.

    If it still doesn’t work please create me an admin account so i can look into it.

    Regards,
    Josue

    #325903

    Thanks,

    I have added the code to functions.php – I still can’t see any goals being picked up by analytics..have I set up the goal wrong?

    I have also tried replacing the onclick=\”_gaq.push([‘_trackPageview’, ‘/VP/XXX/XXX’]);\” with my tracking code (not ID):
    <script>
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

    ga(‘create’, ‘xx-xxxxx-x’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    I clearly need help :P

    Thanks!

    #325907

    As a side note, I have also added:

    https://kriesi.at/support/topic/syntax-error-when-adding-tracking-code-to-form-submit-button/

    these snippets of code and whilst the website still works analytics doesn;t track my goal. DOes the problem lie with GA and not with the code?

    Thanks

    #325910

    SO, just to add more spanners to the works, I have obviously sent quite a few test contact forms to see if GA tracks them…only 2 out of about 10 actually were sent to my email? I don’t have any spam filters etc but this is worrying!

    #326321

    Hi!

    Where is the actual contact form? I checked the page http://www.whitestagweddings.com/contact/ but I don’t see any contact form. Make sure that you use your own tracking code and the correct tracking id. Please refer to these links for more info:

    http://kriesi.at/documentation/enfold/add-onclick-event-to-the-contact-form-submit-button/
    https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#SettingUpEventTracking

    Cheers!
    Ismael

    #326839

    Hi,
    I had to remove the contact form as I did not receive emails of every submitted form! Is it possible to track clicks on email links?

    Also, is there a known issue with the contact form not functioning properly?

    thanks

    #328744

    Hey!

    I’m sorry but you didn’t receive reports, maybe because you’re not using the correct tracking code. Please refer to the event tracking guide we posted above. Yes, there are certain issues on the contact form but it only occurs on servers with different configurations and limitations. Users managed to get them fixed after trying a few solutions either from here or any other support forums. Note that it takes time before trackers pick up results. You might need to wait a few hours.

    Best regards,
    Ismael

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