How to change Affiliate link dynamically

by preets
4 replies
Is there any plugin or script available to change the affiliate ID on a sales page dynamically.


Thanks
#affiliate #change #dynamically #link
  • Profile picture of the author Brandon Tanner
    Anything on a page can be changed dynamically, but I would need to know more details to tell you what to do. For example... how is the link originally generated/displayed? And what do you want to change it to? etc etc.
    Signature

    {{ DiscussionBoard.errors[8548170].message }}
  • Profile picture of the author preets
    Here is what I want :

    Example : http://mysite.com/salespage/?id=myaffiliateid

    At this page my affiliate link is like : http://xyz.com/join.php ?id=myaffiliateid

    When I replaced id with " anything" in my site url : http://mysite.com/salespage/?id=anything

    Then affiliate id change to : http://xyz.com/join.php ?id=anything

    Thanks
    Signature
    BUY HIGH QUALITY BACKLINKS | Party Supplies Singapore | Affordable SEO Services
    Wordpress Developer | Sales Page Designing | Affiliate Site Development | HTML Website |
    {{ DiscussionBoard.errors[8548209].message }}
    • Profile picture of the author Brandon Tanner
      Whatever happens when you visit the xyz.com/join.php page would depend on the source code in that page. If that site is not controlled by you, then there's nothing you can do to change it. If that site is controlled by you, on the other hand, then I would need to seen the source code from the join.php page to tell you how to do what you want.
      Signature

      {{ DiscussionBoard.errors[8548355].message }}
  • Profile picture of the author LarryKeenan
    This is in http://mysite.com/salespage/index.php
    Code:
    <?php
    if($_GET['id']){
    $affiliate="?id=".$_GET['id'];
    $url = "http://xyz.com/join.php".$affiliate;
    $next = trim($url);   
    }
    else {
    $next = "http://xyz.com/join.php?id=myaffiliateid"
    }
    ?>
    
    <a href="<?=$next?>">Join Now</a>
    Have Fun
    Larry Keenan
    {{ DiscussionBoard.errors[8553869].message }}

Trending Topics