Set up Daisycon tracking on your webshop
Guide to implementing Daisycon conversion tracking on your Shoporama webshop with correct Smarty code.
If you use Daisycon affiliate marketing, you need to implement a tracking pixel on your order confirmation page. Here's a guide to customizing Daisycon's code for Shoporama.
Implementation
The code should be inserted in thanks.html in your theme. You will need a developer to do this.
Daisycon gives you a code with placeholders like [amount], [transaction_id] etc. These should be replaced 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 appears on purchase):
<{if $order}> <{math assign="daisycon_amount" equation=x*0.8 x=$order->getPrice()}> <img src="https://jdt8.net/t/?ci=DIN_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 subtracts VAT - adjust as needed.
Do you need help? Contact us at support@shoporama.dk.
Related articles
Implement Pricerunner tracking
Guide to implementing Pricerunner conversion tracking on your Shoporama online shop with proper Smarty code.
Implement tracking in a Shoporama theme
Developer guide to implement tracking code in a Shoporama theme with Google Tag Manager and data layers.
Google Analytics tracking of your online store
Guide to setting up Google Analytics 4 (GA4) with e-commerce tracking via Google Tag Manager on your Shoporama webshop.