Referrals getting attributed to ‘Direct’

We are using the Affiliates Pro on our portal
Recently we have migrated the portal on a new server. After migration, referrals are being attributed to ‘Direct’.
The date of migration is 5.1.2020.
Refer these screenshots for more details:

What can be the reason that is causing this?

10 Responses to Referrals getting attributed to ‘Direct’

  1. smartudyojak January 16, 2020 at 1:41 pm #

    Hey George, Thanks for the solution of excluding the cookies from varnish plugin. But, still the problem of visits is not yet solved. This issue also is arising after migration.

    Refer the screenshot :

    Please help out as the pay per click is also enabled on the portal.

    • Kento January 17, 2020 at 4:38 pm #

      Thanks for the screenshot! I would say that the results there are related to the caching – once you have excluded the parameters I mentioned in my previous reply, things should go back to normal.

  2. George January 16, 2020 at 12:05 pm #


    Thanks for providing access to your website.

    The issue is most probably related to Breeze cache plugin which utilizes Varnish cache and is known for dropping cookies including the cookie stored by Affiliates plugin. As a matter of fact when I follow one of your affiliates link, the cookie is not stored in my browser. In the screenshot here you can see that the affiliate cookie is missing.

    Regarding Varnish cache we keep instructions in our documentation on how you can adjust it and exclude Affiliates cookies from being removed. This operation might require you to also contact your hosting provider and mention this topic.
    Please try this and let me know if it works properly afterwards.

    Regarding your second question, I would say no because the cookie is stored on the user’s browser once the user visits an affiliate link. Therefore it is neither affected by the IP address nor can it change afterwards.

    Kind regards,

    • smartudyojak January 16, 2020 at 12:15 pm #

      Hey George,

      Thank you so much for your suggestion the same ahs been suggested by the hosting provider i.e. to exclude affiliate cookie from varnish setting. But to exclude the cookie, we need to specify its name there. Can you tell me the name, that is to be mentioned there?

      • Kento January 17, 2020 at 4:34 pm #


        There are two that should be excluded:

        – wp_affiliates
        – _h_affiliates

        Hope this helps you further 🙂


  3. George January 15, 2020 at 5:00 pm #


    Of course we can help!

    Does the same happen if you temp disable Affiliates Permanent? Which version of it is currently installed?
    It would also be handy if you can provide temp admin access to your site by sending the credentials to george at itthinx dot com and make sure that WP debugging is enabled. To enable debugging, edit your wp-config.php file and do the following:
    Replace this line: 

    define( ‘WP_DEBUG’, false );

    with these lines:

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    All log messages will be stored in wp-content/debug.log file.

    Kind regards,

    • smartudyojak January 16, 2020 at 5:41 am #

      Hello George,

      As you said, admin login credentials has been sent to you on email, you mentioned earlier. Please check the inbox and revert.

      • smartudyojak January 16, 2020 at 8:04 am #

        Hey George,

        After migration, IP address of the portal has changed. We have set referral timeout of 30 days. Hence, I would like to know whether the change in IP & referral timeout can cause such issues. Is there any provision to refresh the cookies of stored in the visitors device?

  4. smartudyojak January 15, 2020 at 11:52 am #

    Hello Goerge,

    We have renewed our licence and updated the plugins as well. But the issue is not resolved yet. We need the solution on this problem as soon as possible as this is causing the obstacle in our strategy implementation.

    Can you please help us out?

  5. George January 14, 2020 at 12:57 pm #


    Thanks for reaching support.

    There can be various reasons why this occurs ie the cookie failing to be stored on your browser, but in order to proceed you need to have the latest version of Affiliates Pro and Affiliates Permanent installed.
    In order to do so and since your license has expired, you should renew it by buying the plugins again and then proceed with updating through the Dashboard.
    FYI, access to updates and support for plugins bought from is valid for one year since the original purchase.

    Kind regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account