Best Way To Mask CJ Affiliate Links?

Discussion in 'Commission Junction' started by bad_bob00, Oct 30, 2007.

  1. #1
    Hi there,

    When browsing some websites it appears that Commission Junction affiliate links are masked - and when you scroll over the link, the scroll bar displays the address as http://www.xyz.com - without the messy affiliate link showing at all.

    I was just wondering, how is this done? I'm sure that they aren't simply linking directly to the website because they would miss out on a lot of affiliate revenue...


    Thanks for any help.
     
    bad_bob00, Oct 30, 2007 IP
  2. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #2
    You can mask the links when creating the link code in CJ. It's just using mouseover code.
     
    dcristo, Oct 30, 2007 IP
    bad_bob00 likes this.
  3. Mmecca

    Mmecca Guest

    Messages:
    225
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Say you are linking them to a new book (harry potter for example)

    You can open your htaccess folder and on a new line put

    Redirect 301 /harry-potter-book http://www.your cj affiliate code here.

    so if your site was www.xyz.com and you posted a link www.xyz.com/harry-potter-book it would forward them to the affiliate page.
     
    Mmecca, Oct 30, 2007 IP
    bad_bob00 likes this.
  4. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #4
    How to mask url showing in status bar ?
     
    MeetHere, Oct 30, 2007 IP
  5. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #5
    bad_bob00, Oct 30, 2007 IP
  6. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Man, that's so simple. I usually do a mod_rewrite.. but that is perfect!

    hanji
     
    hanji, Oct 30, 2007 IP
  7. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Using javascript. Here is an example anchor tag...

    <a href="http://rover.ebay.com/yadda/yadda" onmouseover="window.status='http://www.ebay.com'; return true;">Your link text or image</a>
    Code (markup):
    hanji
     
    hanji, Oct 30, 2007 IP
    bad_bob00 likes this.
  8. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #8
    Where is the javascript here Hanji ? Is this the only code needed ?
     
    MeetHere, Oct 30, 2007 IP
  9. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yep, the onmouseover event is handling the window.status() which is the status bar.

    hanji
     
    hanji, Oct 30, 2007 IP
  10. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #10
    Thanks a lot hanji, this is great.

    I think this is what the other sites must have been doing, stupidly I forgot to have a look at their code.

    Can I still add the rel="nofollow" command after the <a href="http://xyz.com" ?

    Thanks
     
    bad_bob00, Oct 30, 2007 IP
  11. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Yep!

    hanji
     
    hanji, Oct 30, 2007 IP
  12. louislim2

    louislim2 Banned

    Messages:
    888
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Izzit ok if i mask the link like this: http://yousite.com/go/product1 instead of using cj code?
     
    louislim2, Oct 30, 2007 IP
  13. vinner

    vinner Peon

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    u can use tinyurl{dot} com .

    :)
     
    vinner, Oct 31, 2007 IP
  14. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #14
    Can I just ask quickly - does this only work when the page is online? When I preview in offline mode the URL isn't actually masked...
     
    bad_bob00, Nov 1, 2007 IP
  15. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
    #15
    I find this working in IE browser only, not in Firefox (in Firefox it doesn't show anything). But I think it's fine, as most potential customers are using IE.
     
    andrej, Nov 1, 2007 IP
  16. DigitalPoint-Newbie

    DigitalPoint-Newbie Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    New to forum and to this subbject.

    We have an affiliate program and would like to provide our affiliates the ability to mask their affiliate referral id that link to us.

    Example:

    Source (affiliate's site): http://www.MyDomain.com/ProductID.html
    Target (our site) http://www.MyDomain.com/ProductID.html/?&AFFIL=123456

    Basically add "/?&AFFIL=" to the end of any link that links our site.

    Thanks, Jerry
     
    DigitalPoint-Newbie, Nov 5, 2007 IP
  17. whob

    whob Peon

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Just mod_rewrite this stuff. It's much more convenient if you have many affiliate programs you promote.
     
    whob, Nov 5, 2007 IP
  18. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #18
    that's a pain in the ass, I personally wouldn't want to 301 like 200 URLs!!
     
    Pixelrage, Nov 5, 2007 IP
  19. lkj

    lkj Peon

    Messages:
    729
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Why not..... takes time but it's the best method ;)
     
    lkj, Nov 7, 2007 IP