Does anybody know if there is a way to get direct links to advertisers on Commission Junction with tracking? We don't want to rely on the links sent down in the feed because a lot of them are junk.
What I'd like is a link that just goes to the advertiser's homepage and still allows us to receive commissions. Something like: http://www.newegg.com?pid=123123&aid=321123
If it has to run through CJ's tracking URL's that's fine too, but I just want the user on the homepage.
Thanks
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...
- Pick a CJ root domain to link on. www.anrdoezrs.net, www.tkqlhce.com or any others on this thread will work.
- 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.
- Take note of your Publisher PID
- 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&cjsku=12312321123';
$track_url = str_replace("?", "?sid=123book", "$url");
echo $track_url;
?>
来源:https://stackoverflow.com/questions/4452943/commission-junction-direct-links