Setting up Automatic Notification To Show Latest Shopify Conversions


If you have a Shopify store and you want to show the latest conversions or the conversions count of certain products that you are selling on your Shopify store, then this is the guide for you.


Connecting Shopify with Benifit is a straightforward process but can be quite confusing for someone who never used Webhooks previously.


1. What we want to happen:


Let's understand the workflow first. Here is what is going to happen in order to make this work:


  • A Shopify order is completed/paid for.
  • Shopify sends a “message” to Benifit with the details of the order.
  • Benifit receives, parses and stores the “message” from Shopify.
  • Now the Notification created with Benifit will show the latest conversion that happened on Shopify.


Here is how it would look like:


2. Now let's start to set it up:


Like it is mentioned above, we are starting from the point where you already have Benifit installed, a campaign ready, and the pixel code installed.


For this tutorial, we are using the Benifit.app website and a test Shopify store.


3. Create the notification in Benifit

  • Go to the campaign that you have ready.
  • Click the Create Notification button.
  • Fill out the name of your new notification and select the type as either “Latest Conversion” or “Conversions Counter” and submit.
  • Make sure that the notification is Enabled!
  • Now from this new 'Notification' which you have created in Benifit, Copy the 'Webhook Trigger' URL from the 'Data' tab we will use this in the next step while setting up the Shopify webhook.



4. Configure Shopify.

  • Make sure that you are logged into your Shopify account.
  • From the Shopify admin page, go to Settings -> Notifications.


  • Scroll down to the Webhooks section and then, click the Create a webhook button.




  • You can now select the Event of the Webhook. More exactly, when should Shopify trigger the execution of the webhook.
  • In this case,  We selected “Order payment” because we want to track the latest order payments.
  • Make sure to select the Format to JSON and click Save webhook.
  • Copy and paste the Webhook URL which we created on step 3 to the provided field.
  • Select the Webhook API version as 2021-07 (this is the latest at the time of writing this article)
  • Click on the 'Save' Button.


Once the setup is completed it should look like this:



5. Testing the Shopify Webhook.

  • In order to test and confirm if the newly created webhook is working fine as expected.
  • Scroll to the right-hand side to find the 'Send Test Notification' button.




  • Now open the Data Section of your Notification in Benifit.
  • You can see that the test webhook conversion entries are featuring on your  
  • Click on the Webhook entry to see the contents of the data.
  • You can then use these webhook variables on your notification settings.



6. Using the Webhook variables on the notification.

  • For this example, we will use the billing address country code. 
  • Copy the webhook variable billing_address.country_code 



  • Enter it on the Notification settings within a curly brackets { }  example {billing_address.country_code}


  • Here is how the notification appears on your website.



Note:This is a one-time setup, and for all-new conversations from now onwards from Shopify Cart will push the data into Benifit via the webhook. also, the notification displayed on your website will also change dynamically based on the latest conversion or sales.