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 needs to 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 need to 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.