Commission Junction Direct Links

六眼飞鱼酱① 提交于 2019-12-05 21:32:56

Old thread but figured it needs an answer. Solution is quite simple.

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 on this thread 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.
  3. Take note of your Publisher PID
  4. URL-encode the actual destination you want to link to

Nick, I am not entirely sure what exactly you are asking for...

A CJ html link generally appears as such :

<a href="http://www.tkqlhce.com/click-2343223-123123" target="_top">acme.com</a><img src="http://www.awltovhc.com/image-123123-123123" width="1" height="1" border="0"/>

You can track links by using server side coding such as PHP to add, in the case of CJ an SID which can be unique as the case as a username, product code/name on your website. So the resulting link will now appear as :

<a href="http://www.anrdoezrs.net/click-2343223-123123?sid=userid_here" target="_top">acme.com</a><img src="http://www.ftjcfx.com/image-123123-123123" width="1" height="1" border="0"/>

You should be alright to strip the URL further, although if you remove the img src, CJ won't be able to support you with impression data, only clickthroughs.

<a href="http://www.anrdoezrs.net/click-2343223-123123?sid=$userid">

I am not familar with all the CJ api's however I assume when you refer to feeds you are downloading something from the Product Search Service API or something similar in which case you will need to run a script to go through each url to search for '?' where you can add in the sid parameter, as a simple example:

    <?php
$url = 'http://www.jdoqocy.com/click-12312312-12312321?url=http%3A%2F%2Fwww.borders.com%2Fonline%2Fstore%2FTitleDetail%3Fsku%3D0470029412&amp;cjsku=12312321123';
 $track_url = str_replace("?", "?sid=123book", "$url");
 echo $track_url;
?>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!