• Resolved varoon

    (@varoon)


    Hi,

    My client is creating an advertising campaign with some third-party.

    The script they gave is,
    <script>(function(){var VendorPixelURL = 'https://sample.com/event/tracking.php?VendorpixelId=1234&_w=1&rd='+new Date().getTime();(new Image()).src = VendorPixelURL;})();</script><noscript><img height='1' width='1' style='display:none' src='https://sample.com/event/tracking.php?VendorpixelId=1234&_w=1'/></noscript>

    Where to add this to “track the click” events?

    Any help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter varoon

    (@varoon)

    Hi Support,

    We wanted to “track count” whoever clicks on the WhatsApp “send” button.

    can you tell me where to paste the script to call the action?

    Regards,

    Varun J

    Plugin Author Pacotole

    (@pacotole)

    I don’t know if need some other code, but you can try with this:

    <script>
    jQuery(document).ready(function($){
      // Event when Join.chat open WhatsApp
      $(document).on('joinchat:open', function (event, args, settings) {
        // Your staff
        var VendorPixelURL = 'https://sample.com/event/tracking.php?VendorpixelId=1234&_w=1&rd='+new Date().getTime();
        (new Image()).src = VendorPixelURL;
      });
    });
    </script>
    Thread Starter varoon

    (@varoon)

    Hi,

    Ok, I will add the script to the Footer area.

    Thanks for the JS code 🙂

    Plugin Contributor davidlillo

    (@davidlillo)

    The ticket is considered closed. A greeting.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Click track event on custom script’ is closed to new replies.