Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Set up PriceRunner conversion tracking in Shoporama

How to add the PriceRunner conversion pixel to your Shoporama store with the correct Smarty code, so PriceRunner receives the order total incl. VAT and shipping.

Reading time: about 7 minutes
Store owner Developer

To track your sales in PriceRunner, you need to add a conversion pixel to your order confirmation page. This guide shows you how to set up PriceRunner conversion tracking correctly in Shoporama, so PriceRunner receives the right order value, including shipping.

The Tracking page in the Shoporama admin with tracking settings, server-side tracking, DNS status, and a choice of advertising platforms.
The Tracking page under Webshop settings, where you turn on Shoporama's tracking module, server-side tracking, and Consent Mode. Standard themes with tracking turned on mark the order as tracked themselves, so the pixel only fires once.

The code

Insert the following code in the thanks.html file in your theme (or wherever you keep your tracking code together). Replace [MERCHANTID] with your PriceRunner Merchant ID:

<{if $order && !$order->getTrackingCalled()}>
<img width="1" height="1" style="display:none"
  src="https://www.pricerunner.dk/track/pixel/[MERCHANTID]?OrderTotalInclVat=<{$order->getTotalPrice()|number_format:2:".":""}>&OrderCurrencyISO=<{$webshop->getCurrency()}>"
  alt="" />
<{/if}>

What does the code do?

  • {if $order && !$order->getTrackingCalled()} makes sure the pixel only fires once per order. If your theme uses Shoporama's built-in tracking code (all standard themes with tracking turned on do), the theme marks the order as tracked at the bottom of the page, and the pixel is not sent again when the page is reloaded. If your theme does not have that code, you need to add <{$order->setTrackingCalled()}> yourself just before <{/if}>, since the protection has no effect otherwise.
  • $order->getTotalPrice() gets the order's total amount incl. VAT AND incl. shipping. This is the value PriceRunner expects in the OrderTotalInclVat field.
  • $webshop->getCurrency() gets the store's currency (for example DKK).

Important: Use getTotalPrice(), not getPrice(). getPrice() returns the order's product total incl. VAT, but WITHOUT shipping. PriceRunner needs the total order value incl. shipping to calculate commission and statistics correctly.

Where do I find my Merchant ID?

You can find your Merchant ID in your PriceRunner dashboard under the integration or tracking settings. Contact PriceRunner directly if you cannot find it.

Where to place the code in your theme

Place the code in the thanks.html file in your theme, or in the shared tracking snippet that is included on the order confirmation page. The $order and $webshop variables are only available there.

Testing the pixel

  1. Place a test order in your store and go to the order confirmation page.
  2. Open your browser's developer tools (F12) and look under the Network tab.
  3. Find the request to pricerunner.dk/track/pixel/... and check that OrderTotalInclVat matches the total amount incl. shipping.
  4. Confirm that the status is 200 OK.

Frequently asked questions

What is the difference between getPrice() and getTotalPrice()?

getPrice() gives you the price of the products incl. VAT but without shipping. getTotalPrice() gives you the total amount the customer paid, which includes both VAT and shipping. PriceRunner expects the total amount.

Why do PriceRunner's numbers differ from my own accounts?

The most common causes are using getPrice() instead of getTotalPrice(), returns that are not deducted at PriceRunner, or a missing pixel, for example with a third-party checkout. Compare a test order in both systems.

Should the amount include or exclude VAT?

The field is called OrderTotalInclVat, so it should include VAT. getTotalPrice() always returns the amount incl. VAT.

Are refunds and exchanges included?

The pixel sends the order value at the moment the customer completes the purchase. Later refunds or partial returns have to be handled in PriceRunner's system. Agree with PriceRunner on how you will report them.

What if I have several stores or several languages?

Each store and language version usually needs its own Merchant ID at PriceRunner. $webshop->getCurrency() takes care of the currency automatically, but you need to make sure the right Merchant ID is inserted for each store.

How quickly does PriceRunner see my conversions?

The pixel is called as soon as the customer lands on the order confirmation page, but it can take up to 24 hours before the numbers show up in PriceRunner's dashboard. Always place a test order and give it some time before you start troubleshooting.

Do I need to consider GDPR and consent for the pixel?

Yes. The PriceRunner pixel is a marketing cookie and requires the customer's consent before it can be loaded. Wrap the {if} block in an extra check of your cookie consent (for example $consent.marketing or a variable from your cookie banner solution), so the pixel only fires for customers who have said yes.

Can I use a server-side integration instead?

Yes, if PriceRunner offers one. Server-side tracking is more reliable because it does not depend on the customer loading the order confirmation page. Read more about server-side tracking and Shoporama's tracking engine.

If you need help with the implementation, write to support@shoporama.dk.