Search code examples
commission-junction

Generate Commission Junction URLs for all retailer products?


How can I generate links that will provide me with Commission Junction payouts without grabbing the links from them directly?

I have the URL from the retailer - can I just plop something on the end to get the referrer? Or perhaps add some HTML header?


Solution

  • The trick is to wrap that URL in the url= parameter on any CJ redirect domain along with your publisher id (PID) and any valid link ID for that advertiser.

    What you need to construct is a URL that like this:

    http://<cj-root-domain>/click-<your-pid>-<advertiser-link-id>?url=<url-encoded-redirect-link>
    

    E.g.:

    http://www.jdoqocy.com/click-1245-10888587?url=http%3A%2F%2Fwww.jewelry.com%2Fdaily-deal.shtml
    

    So...

    1. Pick a CJ root domain to link on. www.anrdoezrs.net, www.tkqlhce.com or any others you've seen in links from advertisers will work.
    2. Find any generic link ID for the advertiser by logging into CJ and viewing the Links tab. A good link to use will be something that's not likely to be deleted, like their brand logo or product catalog.
    3. Take note of your Publisher PID
    4. URL-encode the actual destination you want to link to