Data feed file integration price comparison shopping script

Documentation Wiki - - Online merchant datafeed integration for affiliates : MerchantTargetURL

HomePage | Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Home Affiliate FAQ Merchant FAQ Examples Merchants Networks & Programs Forum Blog Wiki Knowledge Base Login

How to create Target URL trackable via Affiliate Network

How to create correct Target URL?

First you need to know which Affiliate Network the merchant you are trying to create the URL for is using at DFF. Since DFF supports a merchant to exists in multiple affiliate network, you must decide which network you are creating target URL for.

Once you know which affiliate network, you need to familiarize yourself with the syntax (format) of the affiliate network's trackable / tracking URL. A good clue of what this tracking URL looks like may be found in the merchant's product data under the Product URL / Target URL column.

We are going to list the most common type of tracking URL for each affiliate network below. Keep in mind that all affiliate network have different systems and formats, which may differ from the example we are showing below:

Note: ~~~name~~~ is a place holder. Place holder is a fake value place for visual purposes and meant to be replace with a real value.

Linkshare (LS)

there is no definitive way to generate a custom Linkshare target URL. Because the placeholder merchantid can sometime be used for merchantid or certain offer. Linkshare does support Custom Link or URL format, however we have been warned that NOT all merchant support Custom Linking since this is a feature merchant have to pay for. A sure way to make sure your Linkshare target URL will work is to obtain the URL from your merchandiser generated by Linkshare Merchandiser department or by creating a text/graphic link from your Merchant Administration panel.

Commission Junction (CJ)
Commission Junction uses different domain names for their tracking URL. Here are a list of 5 we have recorded so far (there may be more):
Commission Junction tracking URL domains:

Commission Junction tracking URL format:

CJ is tracking URL need to have an AdvertisementID (AID) and URL. The Advertisement ID can be obtained from the merchant's data feed in the product URL column. The URL is the actual destination URL at the merchant's web site where the destination web page should be.

ShareASale (SAS)
ShareASale use very simple single letter query string variables to control their tracking link. The SAS format is:

Link Connector (LC)
Link Connector tracking URL is complicated because they tried to use a combined value for the affiliate ID + link type + merchant ID.
Here is the syntax for Link Connector click-through link:

lc=8 digits total = (first 6 is affiliateID) (2nd 6 is type usually 000003) (3rd 6 is merchant_id)

atid= is the sub id for affiliate sub id tracking
pid= is the merchant sku / product id
mtid= is the mid / merchant id
url= is the merchant web site target URL

Google Affiliate Network / Performics
The best way to generate PF tracking link is to use the merchant's data feed product URL column values because it is very complicated.
The basic syntax is:

lid= link ID obtained from merchant's product data feed product URL column
pid= product ID / merchant SKU obtained from merchant's product data feed product URL column
pubid = publisher's ID / affiliate ID given from performics (should be 17 digits starting with 2100...)

Other Affiliate Network
There are many affiliate networks DFF supports and several independent ones. If you need more information or have a suggestion please contact DFF using this contact form:

If you are interested, you may read the paragraphs below to learn more about why DFF need merchant target URL.


DFF provides data or web services for affiliates who will use these data on their own website. When a shopper clicks to buy a product, the link should redirect them to the Merchant's website via DFF -> Affiliate Network -> Merchant Website (we call this the click-through). A click-through must follow that some sequence of events because DFF and the affiliate network must record and redirect the traffic to the appropriate merchant.

Sequence of Event during a Click-through

When a shopper click on a link which should take that shopper to a merchant website, the following sequence of events takes place:
  1. The click-through link on the affiliate website should go to DFF's web server first and the URL should look like this: At DFF web server we record the click-through information which includes referrer IP, date + time and which DFF Affiliate ID. Then DFF decide what target URL the traffic should be redirected to next according to the Shared Commission rotating counter. The next target URL will be the Affiliate Network.
  2. After DFF web server redirect, the traffic will then land at the Affiliate Network's web server where the Affiliate Network will record the IP, date + time, Affiliate Site ID / Publisher ID and check for trackable link validity. Most affiliate network may also place cookies on the shopper's browser to tag the referral traffic for conversion matching when there is a sale.
  3. After the Affiliate Network recorded and validated the traffic, the shopper will finally be redirected for the final time to the merchant web site. Where the shopper shops and hopefully converts a sale.

Why we need a trackable URL at DFF

All products and deals advertised at DFF must have a trackable affiliate network URL because all click-through must be able to be recorded by the affiliate network for possible sale conversion. If DFF advertises a link which is not trackable, the shopper click-through will go directly to the merchant site without being tracked by the affiliate network and no one will be given commission if there is a sale conversion.

There are no comments on this page. [Add comment]

Integrate price comparison shopping data feed file from thousands of online merchant product data feeds | Valid CSS

Page was generated in 0.0164 seconds