Cheapest on PriceSpy

Instructions on how to user the Cheapest on PriceSpy badge

Prisjakt avatar
Written by Prisjakt
Updated over a week ago

As we all know, being cheapest on the market leads to a boost in sales. Let your shoppers know about what products you are discounting by adding this widget to your shop’s product card or listing. This is also a dynamic widget and gets updated in real time.

small1

small2

small3

small4

medium1

medium2

Instruktioner

Add the following script to the website:

<script
defer
src="https://cdn.pji.nu/b2b/widgets/cheapest/index.js"
></script>

Then add the following tag where you want the badge:

<div
class="prisjakt_cheapest"
data-shop="[your shopid]"
data-product="[your productid]"
data-market="GB"
data-format="medium1"
></div>

The following options can be added to the div:

data-market="[marknad]" // Set your desired market. Default is SE
data-format="[format]" //Choose format e.g small1
data-utm-campaign={{string}} // Optional utm tag

Example:

<div
class="prisjakt_cheapest"
data-shop="429"
data-product="6273689"
data-market="SE"
data-format="small2"
data-utm-campaign="SOTY"
></div>

The badge can be reloaded from the javascript function

prisjakt_cheapest.reload();

If for example the product page is dynamically updated

Did this answer your question?