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

  • 10 {{ upvoteCount | shortNum }} 5

    Hello, I have a client who wants me to help manage his social media (fb, youtube, instagram and website) . I am looking to contract this work out but would like to get some ideas and understand the scope of what is required. The client current runs a nightlife club tour and is currently on the common tour booking platforms such as tripadvisor, viator, touristy, vivaster. He wants to increase sales using his social media channels, which currently is not being managed at all. What are some of the social media strategies should be taken to bring in more more sales. I am looking for an aggressive timeline of 2 months, ifpossible. Any advice is appreciated.

  • 1 {{ upvoteCount | shortNum }} 5

    I have added SSL to my website and redirected whole site from http to https. For now all the pages are indexed without https, when it get indexed, Is it boost my ranking. I have read an article which says that after switching to HTTPS you will get more priority which will boost you ranking. Am I right?

  • 1 {{ upvoteCount | shortNum }} 5

    Hi All, Recently i have got an issue with my website. Whenever i am trying to open my website it is redirecting to different website. Even i have tried it to open from different different way and country too but it is redirecting. My website based on news and it is redirecting to women dresses site. I don't know how to resolve this issue. Anyone here who have been through this or experienced this type of issue please please give me solution asap.

  • 7 {{ upvoteCount | shortNum }} 5

    The debate never seems to end in my circle of professional acquaintances. Would you rather be paid for projects based on an hourly or fixed rate?Argue as we may, we never do seem to come to a conclusion. I myself am of the opinion that there is no “right” or “wrong” answer necessarily. That being said, I have met many freelancers that are very passionate about one side or the other.