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.
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 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
- Place a test order in your store and go to the order confirmation page.
- Open your browser's developer tools (F12) and look under the Network tab.
- Find the request to pricerunner.dk/track/pixel/... and check that OrderTotalInclVat matches the total amount incl. shipping.
- 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.
Related articles
Implement ecommerce tracking in a Shoporama theme
Developer guide to ecommerce tracking in a Shoporama theme: the data layer, Google Tag Manager, custom events, and correct product IDs with...
Set up ecommerce tracking in your Shoporama store
Enable Shoporama's built-in tracking and send accurate tracking data to Facebook, Google Ads, GA4, TikTok, and more. Server-side, GDPR-ready, and...
Shoporama tracking engine: server-side tracking for all major platforms
Shoporama's tracking engine, developed with the agency 1260 A/S, sends data from your store directly to Facebook, Google Ads, GA4, Pinterest,...
Server-side tracking in Shoporama: GA4, Meta, and Google Ads
A complete guide to server-side tracking in Shoporama. Better data quality, fewer conversions lost to ad blockers, and product IDs that match your...
Google Analytics 4 (GA4) in your Shoporama store
How to set up Google Analytics 4 in your Shoporama store. Built-in GA4 integration with ecommerce events, server-side tracking, and Consent Mode v2.
Facebook Conversions API: setup and catalog matching
How to set up the Facebook (Meta) Conversions API in Shoporama with your Pixel ID and access token, how purchases are deduplicated automatically,...