Support » Plugin: Popup4Phone » Google conversion (remarketing) code

  • Resolved kn784

    (@kn784)


    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/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author ivanweb

    (@ivanweb)

    Hello!

    Thank for your message.

    OK, I will add support for Google conversion tag.

    Hello,
    Thank you for your reply!
    Do you have any idea when it will implemented?
    Thank you very much.

    Plugin Author ivanweb

    (@ivanweb)

    I am planning new release on this week.

    Plugin Author ivanweb

    (@ivanweb)

    Hello,

    Google conversion tag settings worked in the development version, you can download it here:
    https://github.com/ivanwebpro/popup4phone

    Version on wordpress.org will be updated soon (after final tests)

    Plugin Author ivanweb

    (@ivanweb)

    Hello,

    New version with support for Google conversion tag is loaded to wordpress.org

    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

    (@ivanweb)

    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

    Hello,
    I have inserted this code in this field but I get the same error..

    Plugin Author ivanweb

    (@ivanweb)

    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.

    Yes I have deleted the code from this field before. The url is viagas.gr

    Plugin Author ivanweb

    (@ivanweb)

    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.

    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

    (@ivanweb)

    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

    Currently this field on your site contains only default value:
    <!– <img src=’http://a.com/tracking-pixel.gif’ /> –>

    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/ 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.