Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pacotole

    (@pacotole)

    Hi, you can view it in FAQs

    Add in your footer.php before </body> tag a script to trigger your conversion when user opens WhatsApp:

    <script>jQuery(function($){
      $(document).on('joinchat:open', function(){ gtag_report_conversion(); });
    });</script>
    Thread Starter fabioantonucci

    (@fabioantonucci)

    Hello Friend. Thanks for the feedback.

    When I enter your code, the button link does whatever it takes to work. Please, can you help me?

    Plugin Author Creame

    (@creapuntome)

    I don’t understand you, can you explain in more detail?

    Thread Starter fabioantonucci

    (@fabioantonucci)

    I meant after inserting the code sent the button link stopped working.

    Plugin Author Creame

    (@creapuntome)

    Have you previously added the Google Ads conversion code? Something like this:

    <script>
    function gtag_report_conversion(url) {
      var callback = function () {
        if (typeof(url) != 'undefined') {
          window.location = url;
        }
      };
      gtag('event', 'conversion', {
          'send_to': 'AW-CONVERSION_ID/CONVERSION_LABEL',
          'value': 1.0,
          'currency': 'USD',
          'event_callback': callback
      });
    return false;
    }
    </script>

    With @pacotole’s code, if gtag_report_conversion() function doesn’t exist, a javascript error occurs and doesn’t open WhatsApp.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tag ADS’ is closed to new replies.