Any Script to redirect links based on affiliate program

by chladmin 2 replies
Is there any script that detects the link posted & attaches the corresponding affiliate program`s codes (along with utm tags at end) & opens it ?

The scenario is like this
1) A visitor posts a link of a product on a forum.Lets say it as http://www.xyz.com
2) The link is displayed as http://www.xyz.com on the screen
3) On clicking the above link, it communicates to www.mywebsite.com/link?http://www.xyz.com & attaches the affiliate codes for www.xyz.com & opens it.

Similarly, when another product from a diffrnt site is posted, it attaches a diffrnt code & opens that website.

Many coupon sharing/deal sharing websites are doing this by creating a centralized database of affiliate links & based on the posted URL, the affiliate codes are attached when someone clicks on that link.

Is there any script to incorporate this OR how do i make one?
#programming #affiliate #based #links #program #redirect #script
Avatar of Unregistered
  • Profile picture of the author Michael71
    So you just want to append e.g. ?affid=xxx to the URL?

    Google for php append value to url

    or jquery append value to url

    or append value to url
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7753334].message }}
    • Profile picture of the author chladmin
      Originally Posted by Michael71 View Post

      So you just want to append e.g. ?affid=xxx to the URL?

      Google for php append value to url

      or jquery append value to url

      or append value to url
      Thanks michael for replying.

      not only appending values to the URL but also appending values to the entire url itself.

      For eg: see this website, http://www.bankjobsqa.com/74/books-for-sbi-po-exam

      in the answer part, although the page displays only flipkart.com when hovered o the URL, it redirects to linksredirect.com then to affiliates.tyroo.com (where the codes are prefixed & utm tags are suffixed) & then finally opens the product website

      The website uses some kind of javaascript to do such a redirection. Hw to do this for 3 or 4 different product websites?
      {{ DiscussionBoard.errors[7753411].message }}
Avatar of Unregistered

Trending Topics

  • 8 {{ upvoteCount | shortNum }}

    Free software that can record more that 10 minutes ?

    spartan14 in Internet Marketing

    Hy all i am more a youtube guy and i plan to make a course for my subscribers with some video series and i need to record videos longer that ... [read more]

  • 6 {{ upvoteCount | shortNum }}

    What's the deal with Stop words?

    mikehende in SEO

    Hey guys, I setup Yoast SEO plugin on a site and filling in the page title and focus keyword fields I am seeing this: Stop words (a, the, of, for) ... [read more]

  • 1 {{ upvoteCount | shortNum }}

    May be a silly question, but I'm asking here.

    GordonJ in Offline Marketing

    I have an opinion. But I want some real people to shed their light on it. My opinion, vast majority of would be Internet Marketers spend way too much time, ... [read more]

  • 3 {{ upvoteCount | shortNum }}

    How Do Highly Successful People Stay Positive?

    Hi Gang, I just stumbled upon this great article and wanted to share! 6 Ways Highly Successful People Stay Positive So the question begs, how do YOU stay positive? What ... [read more]

  • 1 {{ upvoteCount | shortNum }}

    what's best for seo, have my shopify site on its own domain or on a subdomain?

    bleu in SEO

    is it better to have a shopify store be on its own domain or is it better/the same to put it on a sub domain of an existing site? thanks!