Skip to main content

Setting Up Webhooks

  1. In the Nemu panel, go to Settings > Webhooks.
  2. Search for WBuy and click on Connect.
  1. Define a name for your webhook and click on Connect.
  1. Click the button to copy the webhook URL generated by Nemu and click on Finish.
Keep this URL copied, as we will need it for the next steps.
  1. In the WBuy admin panel, in the left sidebar, navigate to General > Platform and click on API and webhooks.
  2. Click on the New webhook button.
  1. You need to create 2 webhooks pointing to the same URL you copied earlier in Nemu:
It is necessary to create two different webhooks to capture both order creation and order updates.
  • First webhook: notification type Orders (order) | POST
  • Second webhook: notification type Order status (order_status) | PUT
After configuring the webhooks, Nemu will start receiving sales from WBuy in your dashboard.

Installing Nemu Pixel on WBuy

  1. In the WBuy admin panel, in the left sidebar, navigate to Your Store > Settings > Scripts per page.
  2. Click on New script.
  1. Paste the Nemu pixel script copied earlier. This script must be in the <head> tag and set on all pages.

UTM Passing Script

  1. In the WBuy admin panel, in the left sidebar, navigate to Your Store > Settings > Scripts per page.
  2. Click on New script.
  1. Paste the UTM passing script below. This script must be in the <head> tag and added only on the cart page.
The UTM passing script is essential to ensure that campaign parameters are transferred correctly during the checkout flow.
UTM Passing Script
<script>
   var timer = setInterval(function () {
      const location =
         window.trackingNemu?.nemuUtms ||
         new URL(document.location.href)?.searchParams;
      const fields = [
         "src",
         "sck",
         "utm_source",
         "utm_medium",
         "utm_campaign",
         "utm_content",
         "utm_term",
         "nemu_source",
         "nemu_medium",
         "nemu_campaign",
         "nemu_content",
         "nemu_adset",
         "nemu_term"
      ];
      var links = document.getElementsByTagName("a");

      for (var i = 0, n = links.length; i < n; i++) {
         if (links[i].href.includes("#")) continue;
         if (links[i].href) {
            let link = new URL(links[i].href);
            fields.forEach((field) => {
               if (location.get(field))
                  link.searchParams.set(field, location.get(field));
            });
            let href = link.href;
            links[i].href = href;
         }
      }
   }, 500);
</script>