Title: Google conversion (remarketing) code
Last modified: August 31, 2016

---

# Google conversion (remarketing) code

 *  Resolved [kn784](https://wordpress.org/support/users/kn784/)
 * (@kn784)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/)
 * Hello,
    I am trying to add a conversion tag of google inside the field with the
   title: JavaScript code for execution after the form submission. the code is ok
   but when I check this on google it says 1) that the code is outside body tag,
   2) missing closing script tag. Can you please help me with this? Thank you!
 * [https://wordpress.org/plugins/popup4phone/](https://wordpress.org/plugins/popup4phone/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192487)
 * Hello!
 * Thank for your message.
 * OK, I will add support for Google conversion tag.
 *  Thread Starter [kn784](https://wordpress.org/support/users/kn784/)
 * (@kn784)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192499)
 * Hello,
    Thank you for your reply! Do you have any idea when it will implemented?
   Thank you very much.
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192500)
 * I am planning new release on this week.
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192526)
 * Hello,
 * Google conversion tag settings worked in the development version, you can download
   it here:
    [https://github.com/ivanwebpro/popup4phone](https://github.com/ivanwebpro/popup4phone)
 * Version on wordpress.org will be updated soon (after final tests)
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192559)
 * Hello,
 * New version with support for Google conversion tag is loaded to wordpress.org
 *  Thread Starter [kn784](https://wordpress.org/support/users/kn784/)
 * (@kn784)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192563)
 * Hello,
    Thank you for your help. I tried with the new version but I get the same
   error. Can you please explain how to implement the code? My code is:
 *     ```
       <script type="text/javascript">
         /* <![CDATA[ */
         goog_snippet_vars = function() {
           var w = window;
           w.google_conversion_id = 123456testid;
           w.google_conversion_label = "test_label";
           w.google_remarketing_only = false;
         }
         // DO NOT CHANGE THE CODE BELOW.
         goog_report_conversion = function(url) {
           goog_snippet_vars();
           window.google_conversion_format = "3";
           var opt = new Object();
           opt.onload_callback = function() {
           if (typeof(url) != 'undefined') {
             window.location = url;
           }
         }
         var conv_handler = window['google_trackConversion'];
         if (typeof(conv_handler) == 'function') {
           conv_handler(opt);
         }
       }
       /* ]]> */
       </script>
       <script type="text/javascript"
         src="//www.googleadservices.com/pagead/conversion_async.js">
       </script>
       ```
   
 * Where I have to put this? Is this code ok for the form?
    Thank you
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192564)
 * Hello,
 * This code should be inserted in the field “Tag on submit” in the tab “Google 
   Analytics / Tracking”.
 * Screenshot: [http://popup4phone.com/docs/tag-on-submit.jpg](http://popup4phone.com/docs/tag-on-submit.jpg)
 *  Thread Starter [kn784](https://wordpress.org/support/users/kn784/)
 * (@kn784)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192565)
 * Hello,
    I have inserted this code in this field but I get the same error..
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192566)
 * Could you please provide URL of your site?
 * Also if you have inserted this code before in the field “JavaScript code for 
   execution after the form submission” – code should be removed from this field.
 *  Thread Starter [kn784](https://wordpress.org/support/users/kn784/)
 * (@kn784)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192567)
 * Yes I have deleted the code from this field before. The url is viagas.gr
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192568)
 * I just tested it and didn’t see any errors.
 * Perhaps you can fix this problem by cleaning of browser cache.
    Or may be you
   not reloaded page since changes.
 *  Thread Starter [kn784](https://wordpress.org/support/users/kn784/)
 * (@kn784)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192571)
 * Hello Ivan,
    I tested the plugin and the conversion tag code is still not working.
   The plugin sends the form ok but the submit is not being tracked by google. Can
   you please check the code above if it is ok? Can you please tell me how it is
   being tracked? onsubmit or with a button? Also please inform me if you send any
   test on the form because the site is live and another person is receiving the
   form.
 *  Plugin Author [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * (@ivanweb)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192572)
 * Hello,
 * > I tested the plugin and the conversion tag code is still not working. The plugin
   sends the form ok but the submit is not being tracked by google.
 * I looked your page and I see that you didn’t specified tag in
    the “Tag on submit”
   field: [http://popup4phone.com/docs/tag-on-submit.jpg](http://popup4phone.com/docs/tag-on-submit.jpg)
 * Currently this field on your site contains only default value:
    <!– <img src=’
   [http://a.com/tracking-pixel.gif&#8217](http://a.com/tracking-pixel.gif&#8217);/
   > –>
 * If you want to use Google conversion tag, you should paste your code for Google
   conversion tag in the field “Tag on submit”.
 * > Can you please check the code above if it is ok? Can you please tell me how
   it is being tracked? onsubmit or with a button?
 * “Tag on submit” executes only after successful submit.
 * For example, Premium version [http://popup4phone.com/premium/](http://popup4phone.com/premium/)
   has spam-protection. So if submitted data will be considered as spam user will
   see error message and this submit will not be tracked as successful.
 * > Also please inform me if you send any test on the form because the site is 
   live and another person is receiving the form.
 * Yes, I have sent tests.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Google conversion (remarketing) code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popup4phone_fcfcfc.svg)
 * [Popup4Phone](https://wordpress.org/plugins/popup4phone/)
 * [Support Threads](https://wordpress.org/support/plugin/popup4phone/)
 * [Active Topics](https://wordpress.org/support/plugin/popup4phone/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup4phone/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup4phone/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [ivanweb](https://wordpress.org/support/users/ivanweb/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/google-conversion-remarketing-code/#post-7192572)
 * Status: resolved