Implementation steps Last modified
PLENTYMARKETS 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.

STEP 1 - Download and upload the index.php redirect file to your PlentyMarkets FTP account

Seeing as PlenyMarkets is PHP capable you can download the redirect file here download index.php please add your domainName to line 6 like after downloading the index redirect file, like:

$domainName = 'yourdomainWithoutWWW.com';
After adding your domain to the index file, it should be uploaded to your PlentyMarkets FTP account.

Log in to the FTP account for your PlentyMarkets shop and locate the folder that looks like: /layout_some-name.plentymarket.net/

In this folder create a new folder and name it something that best represents your shop's content.

If you add the folder /layout_some-name.plentymarket.net/clothing/ for example, the link you should give to your account manager is:

http://www.yourplentyshopstore.net/layout/clothing/

This is the location from within a browser and this redirect location should be communicated to your account manager to set it in our system accordingly.


STEP 2 - Adding our conversion script to your PlentyMarket's order confirmation page

Log in to the Plentymarkets administration and go to Layout --> Layout-Generator --> Bestellbestätigung --> Tracking




The conversion script below must be added to the Body section of the tracking part.

In order to not mess up the code, you should select "Text field" from the dropdown on the right (as in the screenshot above).

Paste the following code within the body input field and press the Save icon.

TradeTracker TRACKING CODE to paste in the body section of Tracking

<script type="text/javascript">
var ttConversionOptions = ttConversionOptions || [];
ttConversionOptions.push({
type: 'sales', // 'sales' or 'lead'.
campaignID: '[marker]CAMPAIGN_ID[/marker]', // The campaignID as provided by TradeTracker.
productID: '[marker]PRODUCT_ID[/marker]', // The productID as provided by TradeTracker.
transactionID: '[OrderID]', // Your internal and unique order identifier.
transactionAmount: '[ItemAmountNetDot]', // Format: 123.45. Set to zero in case of 'lead' event.
quantity: '1',
descrMerchant: '[CustomerID]-[ItemIDListPipe]', // Detailed description of the order. Optional.
descrAffiliate: '', // Description of the order. Optional.
currency: '[Currency]' // Use the ISO 4217 standard, e.g. EUR, USD, GBP, PLN etc. Optional. Defaults to company currency if left empty.
});
</script>
<noscript>
<img src="//ts.tradetracker.net/?cid=[marker]CAMPAIGN_ID[/marker]&amp;pid=[marker]PRODUCT_ID[/marker]&amp;tid=[OrderID]&amp;tam=[ItemAmountNetDot]&amp;data=&amp;qty=1&amp;descrMerchant=[CustomerID]-[ItemIDListPipe]&amp;event=sales&amp;currency=[Currency]" 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>

The campaign may now be tested.

MULTI COUNTRY CAMPAIGN CONVERSION CODE EXAMPLE FOR IN Layout --> Layout-Generator --> Bestellbestätigung --> Tracking --> Body

If you know what this is and if you have a tracking group ID, you can use this code, if you don't know what it is and do not have tracking group id, use the other code.

<script type="text/javascript">
var ttConversionOptions = ttConversionOptions || [];
ttConversionOptions.push({
type: 'sales', // 'sales' or 'lead'.
campaignID: '[marker]CAMPAIGN_ID[/marker]', // The campaignID as provided by TradeTracker.
productID: '[marker]PRODUCT_ID[/marker]', // The productID as provided by TradeTracker.
transactionID: '[OrderID]', // Your internal and unique order identifier.
transactionAmount: '[ItemAmountNetDot]', // Format: 123.45. Set to zero in case of 'lead' event.
quantity: '1',
descrMerchant: '[CustomerID]-[ItemIDListPipe]', // Detailed description of the order. Optional.
descrAffiliate: '', // Description of the order. Optional.
currency: '[Currency]', // Use the ISO 4217 standard, e.g. EUR, USD, GBP, PLN etc. Optional. Defaults to company currency if left empty.
trackingGroupID: '[marker][/marker]' // Only use in case it is set up by TradeTracker. Leave blank by default.
});
</script>
<noscript>
<img src="//ts.tradetracker.net/?tgi=[marker][/marker]&amp;pid=[marker]PRODUCT_ID[/marker]&amp;tid=[OrderID]&amp;tam=[ItemAmountNetDot]&amp;data=&amp;qty=1&amp;descrMerchant=[CustomerID]-[ItemIDListPipe]&amp;event=sales&amp;currency=[Currency]" 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>

REDIRECT FOLDER NAMING CONSIDERATIONS
When creating the redirect folder keep the following things in mind. The index file functions as a "ghost" site that is visited (unseen by the visitor) to register the click from the affiliate to your site. This is also referred to as the redirect file/folder. The name of the redirect folder should represent the topic of your website as best way possible in one word or phrase.

DO NOT USE a name that resembles any connection or relation to tracking, TradeTracker, tt like:

www.yourwebsite.com/tt/
www.yourwebsite.com/tracking/
www.yourwebsite.com/tradetracker/
www.yourwebsite.com/redirect/

or anything similar because that can have an negative effect on the performance of the campaign you are about to set up, so just don't do it.

The name of the redirect folder should represent the contents of your website. If your site is selling fashion items or clothing for instance, you could NAME THE REDIRECT FOLDER something like:

www.yourwebsite.com/fashion/
or
www.yourwebsite.com/clothing/

or anything that best represents the content of your website.

Please keep in mind that although we do our very best to cover a wide variety of different implementations and web shop systems, programming languages and conversion registration methods for different situations, we want to state here that they are all merely examples and are not guaranteed to work for your specific situation or specific conversion or tracking needs. The reason for this is that the implementation descriptions provided are based on default system configurations and do not take system configuration settings, customisations and usage of plug-ins into account. Besides that there are also a lot of other variables that can have impact on the correct working of our tracking and conversion registration which we just can't know upfront. In case you do encounter or experience issues when implementing our tracking, please report this to your account manager and describe (in detail) the steps you took and if it's possible, provide the code and/or files you are using for your implementation to the account manager.
Shortlink to this article: https://sc.tradetracker.net/implementation/overview?f[id]=5
14-Mar-2019 15:47:08