Any Script to redirect links based on affiliate program

by 2 comments
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
2) The link is displayed as on the screen
3) On clicking the above link, it communicates to & attaches the affiliate codes for & 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
  • 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
    • 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,

      in the answer part, although the page displays only when hovered o the URL, it redirects to then to (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?

Next Topics on Trending Feed

  • 1 {{ upvoteCount | shortNum }} 5

    In the beginning all the advertising I did was a single post in a subreddit which was relevant to my product. For the first 3 days the orders started coming in. I got excited and spent hours perfecting and setting up Facebook ads, I also put together a highly targeted Google Adwords campaign, I also made a highly targeted Reddit campaign. 4 days after launch my sales went to zero! My traffic has increased drastically by word of mouth, people sharing my site on FB and from Google Adwords and Reddit paid advertising. I have tried everything and I can't wrap my head around why the sales dropped 3 days ago for no reason! To improve sales I made some tweaks to my site,I made the header more professional, made the check out process easier and faster, optimized the whole site so it loads faster. It doesn't matter what I do no one is buying! I launched about 6-7 days ago is this normal for a new online business to have a bunch of orders in the first couple days and the rest of the week have none? How long does it take to have the orders come in more regular? Even though no sales are coming in on PPC ads how long should I give them? Any suggestions?