-
AuthorPosts
-
June 13, 2015 at 8:37 pm #458827
Hello
How can I tracking my contact forms (submit action) with GA? I read this topics too:
https://kriesi.at/support/topic/tracking-code-on-specific-button/#post-335355
https://kriesi.at/support/topic/please-clear-this-up-for-em-ga-tracking-2/I added Google Analytics Tracking Code to Enfold child theme options.
I use contact form on every page, I would like to tracking each contact form separately.
This code should I use? Should I add this code to functions.php or style.css?
And should I add Custom Css Class ‘SidepanelForm’, ‘ConactForm’ etc(function($){ $(window).load(function() { $('.SidepanelForm input[type="submit"]').on('click', function() { ga('send’, 'event', 'Contact', 'Support Request', 'Contact form'); }); $('.ContactForm input[type="submit"]').on('click', function() { ga('send’, 'event', 'Contact', 'Support Request', 'Contact form'); }); $('.FooterForm input[type="submit"]').on('click', function() { ga('send’, 'event', 'Contact', 'Support Request', 'Contact form'); }); }); })(jQuery);
Thank you
June 13, 2015 at 8:47 pm #458831This reply has been marked as private.June 13, 2015 at 9:23 pm #458839This reply has been marked as private.June 15, 2015 at 8:45 am #459163June 17, 2015 at 4:20 pm #460860Hello,
I would like to add this line of code : on_sent_ok: “__gaTracker(‘send’, ‘event’, ‘Formulaire’, ‘Submit’);”
to the submit button of the contact form. Where can I insert this line?
I’ve looked into the file contact.php (Enfold/config-templatebuilder/avia-shortcodes/) but can’t seem
to know where to put the line.Thank you.
June 18, 2015 at 12:28 pm #461224Hey!
You can try the solution provided here: https://kriesi.at/support/topic/google-analytics-and-yandex-metrika-goals-for-tracking-contact-form-in-child-the/#post-455332
Regards,
IsmaelJune 21, 2015 at 7:05 pm #462385This reply has been marked as private.June 22, 2015 at 11:51 am #462610Hey!
There’s a missing parenthesis “)” symbol somewhere. Please check the error. It will tell you from which line of code the error is being generated.
Best regards,
IsmaelJune 22, 2015 at 5:56 pm #462960This reply has been marked as private.June 23, 2015 at 9:19 am #463188Hi!
Where did you add the code? Please place the code in the Google Analytics field:
<script> (function($){ $(window).load(function() { $('.NyomtatoForm input[type="submit"]').on('click', function() { ga('send’, 'event', 'input', 'click', 'Nyomtato Urlap'); }); }); }); </script>
Where did you get the class selector “NyomtatoForm”? Refer to this link for more info: https://developers.google.com/analytics/devguides/collection/analyticsjs/events
Regards,
IsmaelSeptember 17, 2015 at 5:35 pm #505031Hello!
So… no… it’s impossible :)
I do another website with official Google Universal Analytics wordpress plugin and I use avia contact form on each page.
I would like to tracking each submit button. How can I do this?Thank you
Best regards,
PeterSeptember 18, 2015 at 3:58 am #505204Hey!
What is impossible? It’s been almost two months since your last reply that I’m not sure where we left off. If you want to add tracking events on the theme’s contact form, you can follow the solution provided here: https://kriesi.at/support/topic/add-5-different-google-track-codes-on-button-submission/#post-497826
Best regards,
IsmaelSeptember 30, 2015 at 10:49 am #511307Thank you! Yes, it’s work! :)
-
AuthorPosts
- The topic ‘Contact form type:submit tracking with GA’ is closed to new replies.