Comments

How to implement an Advertiser pixel

How to implement an Advertiser pixel

This article explains how to implement an Advertiser pixel for Client to Server Tracking and Server to Server Tracking.


C2S, Client to Server Tracking

To set up the correct tracking pixel, there is one element to consider:

1. Do you prefer to use iFrame or img src? Choose the correct code for this.

For using our tracking system, copy one of the following codes in your page: 

The following links are just examples, you will receive similar ones from the Account Manager. For C2S pixels, you need one per campaign, instead of globally.

[alert style=”info”]

  • Img

<!– Begin Addiliate Tracking code with image–>
<img src=”//www.addiliate.com/report.html?cp=BN5K5L32&rid=%rid%&orderid=%orderid%&amount=%amount%” width=”1″ height=”1″ alt=”” />
<!– End Addiliate Tracking code with image–>

  • iFrame

<!– Begin Addiliate Tracking code with iframe–>
<iframe src=”//www.addiliate.com/report.html?cp=BN5K5L32&rid=%rid%&orderid=%orderid%&amount=%amount%” width=”1″ height=”1″ frameBorder=”0″></iframe>
<!– End Addiliate Tracking code with iframe–>

Variables:

cp” – This variable is an unique code of 8 characters which represent campaign reference.

rid” – Parameter used in lead conversions. You have 3 options for complete this parameter value:
1. random number
2. time stamp including the millisecond
3. combination of the above

orderid” – Parameter used in order conversions. You have 2 options for complete this parameter value:
1. Id of the order
2. Order reference – a unique combination that its associated with the order

amount” – Parameter used in order conversions. This must be complete with transaction value. For example if you have 20 euro transaction value than you must replace [] from amount with 20 like
amount=20[/alert]


S2S, Server to Server Tracking

[alert style=”info”]Default S2S Pixel: 

for HTTP

<!– Addiliate S2S Tracking code –>

http://www.addiliate.com/report.html?clickid=%clickid%&rid=%rid%&orderid=%orderid%&amount=%amount%

for HTTPS

<!– Addiliate S2S Tracking code with secure page –>

https://www.addiliate.com/report.html?clickid=%clickid%&rid=%rid%&orderid=%orderid%&amount=%amount%[/alert]

For the tracking to work, a parameter (clickid) has to be appended in tracking link, which needs to be returned with the pixel within the parameter clickid.

Tracking link: www.trackinglink.com&clickid=%clickid%
Pixel: http://www.addiliate.com/report.html?clickid=%clickid%&rid=%rid%&orderid=%orderid%&amount=%amount%

The rest of the parameters are optional, but can be used to receive a unique orderID or transactionID or amount.

You can also add additional parameters in the URL if you want to receive the following information

– PublisherID = %placementref%

– Timestamp = %timestamp%

Example of S2S tracking:

Tracking link: 
http://xxxx.com/serve?action=click&publisher_id=32006&site_id=22896&offer_id=282358&
ref_id=%placementref%&tracking_id=V0gEwWXU8dTjmjcAYcVAMcsE7KhLiDIizbEc16lIOdQ5mBytRqflrCFIddGA

Pixel:
http://www.addiliate.com/report.html?click_id=V0gEwWXU8dTjmjcAYcVAMcsE7KhLiDIizbEc16lIOdQ5mBytRqflrCFIddGA&rId=%rid%&orderId=%orderid%

In this example you can see that the parameter name for clickid is tracking_id. Depending on your system, this parameter name might differ, but the setup will always be the same.

div#stuning-header .dfd-stuning-header-bg-container {background-color: #164194;background-size: initial;background-position: center top;background-attachment: scroll;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 300px;}