How long the affiliate cookie is alive for each reference?

Hi
when someone clicks on an affiliate link goes into my store but what if he doesn't buy anything and comes back another day and buys something... how would i know about who referred this client to me? how can i set the time that the cookie on the clients computer?

  • calvinrogercanas

    Hey there @Ronali De Silva,

    Hope you're well!

    The default duration of affiliate cookie on a client is 30 days and you can change it by adding this code in your wp-config.php: define('AFFILIATE_COOKIE_DAYS',45); ( This is based on the info from the plugin's usage guide )

    Each of your affiliates got unique cookie so when a client click their affiliate link. A cookie will be injected on the client's computer and if the specific "action" like signing-up / buying happen our plugin will process it out then render an output ( the awesome graph / charts ) to see who got a conversion.

    Let me know if it helps!

    Best Regards,
    Calvin