Internet Marketing and Web Development Resources
Home Site Map About Contact

CJ Advanced Links Tutorial and URL Encoding


CJ Advanced Links Tutorial and URL Encoding

Return to Network Specific Implementation Guides and Documentations or Affiliate Marketing Resources Home

Not all types of Commission Junction (CJ) links allow redirects to other pages and that is what you need, because you don't want to end up hand-coding or building hundreds or even thousands (depending on how many products your site offers ) of tracking links.

If you have only a CJ Access account (that is, the account is self-managed) and not the luxury of a CJ Vantage account with a support team that takes care of things for you? or if you did not pay for any of the "extras" that Commission Junction offers (for a hefty fee) to help your affiliates promote your services? then a lot of basic services are limited or not available to you.

You can set up 20 banner links, 20 text links, 20 advanced links, 10 content links and one keyword link. You cannot set up a Smart Link, Product Catalog or Smartzone.

I believe that the product catalog links allow redirects, but you don't want to pay the outrageous $750 fee to get it enabled (it should be free, as it is at ShareASale).

At a certain point, I said to myself, I'll just built an affiliate Intranet for the BevMo affiliates where we provided all kinds of feeds and also got, as a bonus, a "link builder" tool out of it -- at virtually no extra cost for additional development.

The logic was simple: if you can redirect to a product page or category, you can redirect to any page of your site. Why not give that ability to your affiliates? You will be surprised by what page links your affiliates will create.

- top -

Step-by-Step Guide

Return to Network Specific Implementation Guides and Documentations or Affiliate Marketing Resources Home

1. Log into the CJ Advertiser Interface and create a new "Advanced Link."
2. Name it "Any Link Template" or something similar.
3. Add a description such as:

"Do not use this HTML code as it is. This link is only a template to allow the creation of links to products and other pages at yourwebsite.com."

4. Default URL: http://www.yourwebsite.com/
5. Link HTML:
<form action=" http://www.yourwebsite.com/" method="get" target="_blank">
<input name="dummy" value="">
</form>

- top -

Wrapping it Up

The rest of the settings are easy!

Return to Network Specific Implementation Guides and Documentations or Affiliate Marketing Resources Home

1. Save it and write down the link ID (an eight-digit number).
2. Now you can build links using this new link ID and use the links for whatever you want.

The "free" link has following structure:

Base URL: http://www.qksrv.net/interactive

(CJ has secured a lot of domains as affiliate links. Qksrv.net was the only domain for a long time and some software like Norton (anti-spyware/adware) deletes cookies from that domain.)

URL Parameters


aid=LinkID (the ID of the advanced link you just created)
pid=AffiliatePID (PID or website ID of the affiliate)
url=encodedTargetURL (full URL of the page to which you want to link)

Example
aid=12345678
pid=7654321 (pid of SuperAffiliate.com hehe)
url=http%3A%2F%2Fwww%2Eyourwebsite%2Ecom (your homepage)

Full URL


http://www.qksrv.net/interactive?aid=12345678&pid=7654321&url=http%3A%2F%2Fwww%2Eyourwebsite%2Ecom

Note: CJ reporting cannot break down for you the results for every URL to which you redirect. If you want to find out how successful the product links or other links you build are, then you must program tracking on your end.


- top -

URL Encoding


Return to Network Specific Implementation Guides and Documentations or Affiliate Marketing Resources Home

Replace characters that are not letters or numbers (a-z,A-Z,0-9) with "%" + Hex value of ASCII character.
Here is an ASCII Table where you can see all characters.

Note: Unix/Linux does not have any character beyond ASCII 128 (7bit). 129-255 are Windows-specific (8bit) and should not be in the URL.

Common characters to replace


: = %3A (colon)/ = %2F (forward slash)\ = %5C (back slash)
. = %2E (dot)SP = %20 (space or blank)? = %3F (question mark)
= = %3D (equal sign)- = %2D (dash or hyphen)_ = %5F (under score or line)
+ = %2B (plus sign)% = %25 (percent)& = %26 (ampersand or "and" symbol)
( = %28 (opening bracket)) = %29 (closing bracket) 


- top -

URL encodeing/decoding via SCRIPT


Return to Network Specific Implementation Guides and Documentations or Affiliate Marketing Resources Home

ASP
EncodedSourceString = Server.URLEncode(SourceString)
No decoding function; you must write your own or find one on the Internet.

PHP
$EncodedSourceString = urlencode($SourceString)
$SourceString = urldecode($EncodedSourceString)

Perl
use URI::Escape;

uri_escape($SourceString)
uri_unescape($SourceString)

JavaScript
EncodedSourceString = escape(SourceString);
SourceString = unescape(EncodedSourceString);

VB, C++, C# don't have an encode/decode function as far as I know, but writing a function yourself to do that is very simple.

And those are the basics!



- top -

Other Data Feed Guides, Articles and Resources for Affiliates and Advertisers


Cumbrowski.com Sponsors

See the Advertiser Kit to learn more about sponsorship opportunities at Cumbrowski.com. Press? Download my Media Kit.

Email Alert & Newsletter (privacy) My Blog Posts and Newsletter (read)


Enter your email address:

or ReveNews - Carsten Cumbrowski - Feed