Set up Daisycon tracking in your online store
How to implement Daisycon conversion tracking in your Shoporama store with the correct Smarty code, so each order is only counted once.
If you use Daisycon for affiliate marketing, you need to add a tracking pixel to your order confirmation page. This guide shows you how to adapt Daisycon's conversion tracking code to Shoporama.
Implementation
The code must be added to thanks.html in your theme. You will need a developer to do this.
Daisycon gives you code with placeholders such as [amount], [transaction_id], and so on. Replace them with Smarty variables:
| Daisycon variable | Shoporama Smarty code |
|---|---|
| [amount] | <{math equation=x*0.8 x=$order->getPrice()}> |
| [transaction_id] | <{$order->getWebshopOrderId()}> |
| [revenue] | <{math equation=x*0.8 x=$order->getPrice()}> |
| [description] | <{$order->getWebshopOrderId()}> |
The finished code (wrapped in a Smarty if block so it only fires on a purchase, and only once per order):
<{if $order && !$order->getTrackingCalled()}>
<{math assign="daisycon_amount" equation=x*0.8 x=$order->getPrice()}>
<img src="https://jdt8.net/t/?ci=YOUR_CAMPAIGN_ID&a=<{$daisycon_amount}>&ti=<{$order->getWebshopOrderId()}>&r=<{$daisycon_amount}>&pn=<{$order->getWebshopOrderId()}>"
style="border:0; height:1px; width:1px;" alt="" />
<{/if}>
Note
Replace YOUR_CAMPAIGN_ID with your Daisycon campaign ID. The factor 0.8 in the calculation removes VAT, because getPrice() returns the price of the products incl. VAT but without shipping. Adjust as needed.
Only one conversion per order
The check !$order->getTrackingCalled() makes sure the pixel only fires once per order. If the customer reloads the receipt page, the conversion is not sent to Daisycon again. Without the check, you risk the same order being registered several times in Daisycon.
The flag is set by the theme's built-in tracking code once it has sent its own purchase events. If your theme does not use Shoporama's built-in tracking code, you must mark the order yourself by adding <{$order->setTrackingCalled()}> as the last line just before <{/if}>. Otherwise the check has no effect.
Need help? Contact us at support@shoporama.dk.
Related articles
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...
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...
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.
Related features
Affiliate marketing
Affiliate marketing is a performance-based model where you pay commission on sales from partners. Learn about networks, pros, and how to use it in...
Server-side tracking: more accurate data for your ads
Server-side tracking for Google, Meta, Pinterest, TikTok, and Snapchat. Less affected by ad blockers. Available as an add-on on Pro and Flex.