Tagged: contact form tracking
-
AuthorPosts
-
September 25, 2014 at 9:48 pm #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,
AndySeptember 25, 2014 at 10:39 pm #325305Hi 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,
JosueSeptember 26, 2014 at 6:54 pm #325729Hi, 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!
September 27, 2014 at 2:19 am #325834Hey 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,
JosueSeptember 27, 2014 at 8:56 am #325903Thanks,
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!
September 27, 2014 at 9:21 am #325907As 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
September 27, 2014 at 9:33 am #325910SO, 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!
September 29, 2014 at 6:22 am #326321Hi!
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#SettingUpEventTrackingCheers!
IsmaelSeptember 29, 2014 at 10:30 pm #326839Hi,
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
October 2, 2014 at 9:10 am #328744Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.