The Most Active and Friendliest
Affiliate Marketing Community Online!

“AdsEmpire”/  Direct Affiliate

How to create own Affiliate link

sl8741

New Member
affiliate
Hello!

I have a product and a webpage and want to promote this product with the help of a certain affiliate marketer. That means that only he should receive the link to receive his commission. How to create such a link?
Thank you!
 
Hello!

I have a product and a webpage and want to promote this product with the help of a certain affiliate marketer. That means that only he should receive the link to receive his commission. How to create such a link?
Thank you!

You need a developer to do this for you. Ultimately you need to track a GET['id'], store that get ID as a cookie, and upon customer purchase check for the cookie and if it exists store that cookie id in your database along with the commission your affiliate earned.

// landing page https://your_unique_website.com/?id=2
Code:
<?php
  if (isset($_GET['id'])) {
    $refid = strip_tags($_GET['id']);
    setcookie("refferal_id", $refid, time()+(86400 * 30)); // store cookie for 30 days
  }

// after sale landing page
Code:
<?php
  if (isset($_COOKIE['refferal_id'])) {
    $refid = strip_tags($_COOKIE['refferal_id']);
      // store $refid and commission in database
  }
 
Last edited:
MI
Back