
-
AuthorPosts
-
January 24, 2014 at 7:58 pm #214566
Hi there,
first thanks for the awesome work you did on that great template!
I would like to ad my google ADWORDS tracking code so it is called after someone filled out a specific contact form (my lead form)
how can I do that?
January 25, 2014 at 11:23 am #214770Hi toberho!
I’m not familiar with the google adwords tracking code but I guess this thread: https://kriesi.at/support/topic/syntax-error-when-adding-tracking-code-to-form-submit-button/ will help you.
Regards,
PeterJanuary 26, 2014 at 2:55 pm #215019I’m not that good in coding. But as I understood I need to put the Code from Google somewhere into a file. I did not really understood where to paste the code so that it is called after pressing the submit button. Do you have a hint for me where to paste it in which file?
The code looks like:
<!-- Google Code for website | Contact Form Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 12345678910; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "RLtFCOHMyQcQr7Op0QM"; var google_conversion_value = 0; var google_remarketing_only = false; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/975854099/?value=0&label=RLtFCOHMyQcQr7Op0QM&guid=ON&script=0"/> </div> </noscript>
January 26, 2014 at 4:18 pm #215024Hi!
No, unfortunately this code does not contain a function which can be triggered by an onclick event. Maybe this code helps you: http://stackoverflow.com/questions/2082129/how-to-track-a-google-adwords-conversion-onclick – you could add the js code snippet to header.php (insert it before the closing tag) and the
trackConv(12345678910,"RLtFCOHMyQcQr7Op0QM");
code must be part of the onclick event (see https://kriesi.at/support/topic/syntax-error-when-adding-tracking-code-to-form-submit-button/ which helps you to add it to the submit button). However I didn’t test it and I’m not sure if it works or not. If you really want to be on the safe side I suggest to hire someone who is familiar with the google adwords api.
Regards,
PeterJanuary 29, 2014 at 9:55 am #216273is it maybe possible to try another approach, after clicking the submit button simply forward to another page/html instead of showing the thank you message?
this would also be easier in terms of google analytics
January 29, 2014 at 10:08 am #216279Hi!
Yes but the default theme contact form does not support such a feature. You can use an advanced contact form plugin like http://wordpress.org/plugins/contact-form-7/ and follow the tutorial here: http://wordpress.org/support/topic/contact-form-7-adwords-conversion-tracking?replies=4 to implement the conversion tracking.
Cheers!
PeterJanuary 30, 2014 at 12:39 pm #216915thank you for the nice help! I am now using contact form 7 and adwords and analytics tracking is working perfect!
-
AuthorPosts
- The topic ‘Google AdWords Tracking after Form has been submitted’ is closed to new replies.