In Progress

Adding affiliate tracking script - To be done now

We are putting an script for affiliate tracking on our "Thanks for your order" page.

The script sets witch affiliate network got the last cookie, to win.

We added different scripts in the right way in this code

<script type="text/javascript">

// Tracking pixel switch

$fromNetwork = $_COOKIE['network'];

$pixels = array(

'xmart' => '<img src="[url removed, login to view][%sum_excl:priceformat(2)%]&order_id=[%sys_id%]&type=sale" width="1" height="1" />',

'tradetracker' => '<img src="[url removed, login to view]{conversionType}&https={https}&transactionID=[%sys_id%]&transactionAmount=[%sum_excl:priceformat(2)%]&email={email}&descrMerchant={descrMerchant}&descrAffiliate={descrAffiliate}" width="1" height="1" border="0" alt="" />',

'tradedoubler' => '<IMG SRC="[url removed, login to view][%sys_id%]&orderValue=[%sum_excl:priceformat(2)%]&currency=SEK" width=1 height=1 />',

'zanox' => '<img width="1" height="1" src="[url removed, login to view][[0]]&OrderID=[%sys_id%]&CurrencySymbol=[[SEK]]&TotalPrice=[%sum_excl:priceformat(2)%] /">',

'affilired' => '< **affilireds script to be put in here in the right way />',

'adtraction' => '<img width="1" height="1" src="[url removed, login to view][%sum_excl:priceformat(2)%]&c=SEK&ti=[%sys_id%]&tp=95346540&trt=4&ap=95346531" />'

);

if (isset($pixels[$fromNetwork]))

{

echo $pixels[$fromNetwork];

}

else

{

// In case the cookie is deleted, display all pixels

foreach ($pixels as $pixel)

{

echo $pixel . "\n";

}

}

</script>

But, we need help to add this code in the right way in the script above,

Affilired to add correct above:

<script type="text/javascript">

var adJsHost = (("https:" == [url removed, login to view]) ? "https://" : "http://");

[url removed, login to view](unescape("%3Cscript src='" + adJsHost + "[url removed, login to view]'type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

var orderRef = '[%sys_id%] PRODUCT_NAME'; /* You MUST keep the blank space */

var payoutCodes = '';

var offlineCode = '';

var uid = '';

var htname = '';

var merchantID = 3916;

var pixel = 0;

var orderValue = [%sum_excl:priceformat(2)%];

var checkOutDate = '';

var currencyCode ='SEK';

</script>

<script type="text/javascript" src="[url removed, login to view]">

</script>

<script type="text/javascript">

recV3 (orderValue , orderRef, merchantID, uid , htname, pixel, payoutCodes, offlineCode,checkOutDate,currencyCode)

</script>

<script type="text/javascript">

var campaignId ="180784";

var scriptId ="1314346283759";

</script>

File added in the project

Skills: Javascript

See more: descrmerchant tradetracker, tt, tracking cookie, location tracking, email tracking, affiliate tracking, tracking php code, script event, currency javascript, switch order, script src, javascript tracker, javascript tracking, javascript write display, uid email, write script file, php file write array, javascript tracking script, script height, php script echo, tradedoubler pixel, sale affiliate, affiliate php script cookie, tracking php, echo script php

About the Employer:
( 125 reviews ) Karlshamn, Sweden

Project ID: #2533631

Awarded to:

mukesh06ni

i can add this JavaScript in correct way .check your PMB.

$30 USD in 0 days
(3 Reviews)
2.2

2 freelancers are bidding on average $65 for this job

bakasa

I am well versed in the required technology as well also having done a few similar projects like the one you require before. Total customer satisfaction is guaranteed. See http://linkedin.com/in/bakasa and http://ba More

$100 USD in 3 days
(0 Reviews)
0.0