Any Magical Jiggery-Pokery That'll Do This For Clickbank Affiliate Traffic?

by Thomas
2 replies
Hello Warriors:

Is there an easy (or hard!) way to alter the content of a page according to whether a visitor comes from a Clickbank affiliate link, or via some other route?

I'm specifically thinking of a scenario where, if they come from a CB affiliate, they only see an order button for Clickbank, whereas, if they come from elsewhere, they see a different button (or set of buttons giving multiple order options). In other words, I need ALL visitors to see the same page, except for the order buttons.

To be honest, Clickbank is holding me back in some areas, but I'm still not willing to give up that affiliate traffic. I already have an alternative domain I could simply re-direct my CB affiliate traffic to, but I'd rather keep everything on the same page, if that's possible.

Does anyone know a solution (ready-made, jerry-rigged, or otherwise)?

Tommy.
#affiliate #clickbank #jiggerypokery #magical #thatll #traffic
  • Profile picture of the author Damien Roche
    Yeh, you can do this with php:

    <?php

    function getbuynow(){
    if(isset($_GET['clickbankidref')){
    include('button1.html');
    }else{
    include('button2.html');
    }
    }

    ?>

    Then, your 'clickbankidref' above is the part in bold below:

    http://somedomain.com?clickbankidref=132142

    So if that is set, they are sent via an affiliate and the first button is inserted into the page, else the second button is.

    Of course, you would have to include that code everywhere if you have multiple points in your page where the button is featured so I have wrapped it in a function.

    You now only have to do this anywhere in your page:

    <?php
    getbuynow();
    ?>

    Hope that helps.
    Signature
    >> Seasoned Web Developer (CSS, JavaScript, PHP, Ruby) <<
    Available for Fixed Fee Projects and Hourly ($40/hr)
    {{ DiscussionBoard.errors[1916372].message }}
  • Profile picture of the author Thomas
    Thanks for that, Damien! I thought PHP might be the way although, to be honest, my PHP abilities don't extend far beyond monkey-see-monkey-do mode!

    Should button1.html and button2.html actually be button1.jpg and button2.jpg? I assumed they would be but, if not, does the php code insert the html code of those files into the html of the main page, meaning you can use the code to insert alternate text, as well as graphics? And, if so, will that newly inserted html take heed of any css being applied to the main page?

    Also, how does the 'clickbankidref' work for the newer type Clickbank affiliate links, which look like this:

    Code:
    http://af2578ro8rbgh65bw0l.hop.clickbank.net/?tid=123ABC
    When clicked on, links like that resolve to something like:

    Code:
    http://www.mydomain.com/?hop=123456
    ...where 123456 is the affiliate CB nickname.

    Therefore, is clickbankidref simply the word "hop"? (It can't be that simple... can it? :confused

    Regards,
    Tommy.
    {{ DiscussionBoard.errors[1916526].message }}

Trending Topics