Implementation steps Last modified
OXID eSales Shop v4.x TRADETRACKER CONVERSION IMPLEMENTATION

You can use the filter options above to select your shop system, the version of your shop.
The Version info selection is a short description of the implementation method we created for the shop you selected.

After setting up the redirect for your campaign, like discussed in SETTING UP THE REDIRECT.

ADD THE TRADETRACKER CONVERSION SCRIPT TO THE THANKYOU.TPL FILE OF YOUR THEME
Our conversion trackingcode must be added to the thankyou.tpl file that is part of the actual theme you are using for your shop.

To identify the theme your are using, login to the administration section of your shop and go to: Home --> Extensions --> Themes

The theme you are using is indicated by a green square in the Active column. After identifying the theme:

navigate to the thankyou.tpl file in the following path on your FTP:

/application/views/YOURTHEME/tpl/page/checkout/thankyou.tpl

Download, open and edit the file or open and edit the file from your FTP directly, whatever you prefer.

Locate {assign var="basket" value=$oView->getBasket()} in the thankyou.tpl file.

Place the following script directly below that:

<script type="text/javascript">
var ttConversionOptions = ttConversionOptions || [];
ttConversionOptions.push({
type: 'sales',
campaignID: '[marker]CAMPAIGN_ID[/marker]',
productID: '[marker]PRODUCT_ID[/marker]',
transactionID: '[{ $order->oxorder__oxordernr->value }]',
transactionAmount: '[{ $order->getTotalOrderSum() }]',
quantity: '1',
descrMerchant: '[{ $oxcmp_user->oxuser__oxcustnr->value }]',
descrAffiliate: '',
currency: '[{ $order->oxorder__oxcurrency->value }]'
});
</script>
<noscript>
<img src="//ts.tradetracker.net/?cid=[marker]CAMPAIGN_ID[/marker]&amp;pid=[marker]PRODUCT_ID[/marker]&amp;tid=[{$order->oxorder__oxordernr->value }]&amp;tam=[{ $order->getTotalOrderSum() }]&amp;data=&amp;qty=1&amp;descrMerchant=[{ $oxcmp_user->oxuser__oxcustnr->value }]&amp;descrAffiliate=&amp;event=sales&amp;currency=[{ $order->oxorder__oxcurrency->value }]" alt="" />
</noscript>
<script type="text/javascript">
(function(ttConversionOptions) {
var campaignID = 'campaignID' in ttConversionOptions ? ttConversionOptions.campaignID : ('length' in ttConversionOptions && ttConversionOptions.length ? ttConversionOptions[0].campaignID : null);
var tt = document.createElement('script'); tt.type = 'text/javascript'; tt.async = true; tt.src = '//tm.tradetracker.net/conversion?s=' + encodeURIComponent(campaignID) + '&t=m';
var s = document.getElementsByTagName('script'); s = s[s.length - 1]; s.parentNode.insertBefore(tt, s);
})(ttConversionOptions);
</script>

If your campaign ID and product ID provided by TradeTracker is not already part of the example above it should be added manually.

After placing the conversion script, save the file to you FTP and the configuration can be tested by using the tracking test url and placing an order in your shop after clicking the test link.

Finished! Ready for testing
Shortlink to this article: https://sc.tradetracker.net/implementation/overview?f[id]=6
14-Mar-2019 15:52:28