Skip to main content
All CollectionsSettings & How Tos
Show Product Sales on Product Page with Shopify
Show Product Sales on Product Page with Shopify

Learn how to show a specific product recent purchases on the product page to increase the customer's FOMO for the product

Natan Abramov avatar
Written by Natan Abramov
Updated over 2 weeks ago

If you'd like to show the product's sales on the product's page, e.g. on the product page "black shoes" we will only show recent sales of that shoe, here's what you should do:

In Shopify Store Admin go to

Online Store -> Themes -> Actions -> Edit Code -> Product.liquid

And add this code in the beginning of the file:

<script type="text/javascript">  
window.dq=[{ n:"Notification Name", g: {{ product.id }} }];
</script>

Don't forget to change "Notification Name" to the name of the notification in your dashboard.

Dynamic Message Template: when setting up a Shopify product page notification, keep in mind you can use variables to customize your message:

Here is a list of available variables:

  • {{name}}

  • {{product.name}}

  • {{product.link}} (use markdown for linking)

  • {{location.country}}

  • {{location.countryCode}}

  • {{location.city}}

  • {{location.state}} (if available)

  • {{location.stateCode}} (if available)

Did this answer your question?