• Resolved aid45

    (@aid45)


    Hi,

    We are trying to use AffiliateWP but Litespeed cacahe seems to stop tracking affiliate referrals.

    AffiliateWP says it does work with Litespeed.
    https://affiliatewp.com/docs/does-affiliatewp-work-with-caching/#:~:text=support%20here.-,LiteSpeed%20Cache,-To%20exclude%20cookies

    We have added the following URL excludes :
    /affiliate-area/
    /affiliate-login/
    /affiliate-terms-and-conditions/
    wp-.*\.php
    index\.php
    /become-an-affiliate*
    /affiliate-dashboard*
    /affiliate-area*
    /become-an-affiliate/
    /affiliate-dashboard/
    /lets-keep-in-touch/
    /login/
    /my-account/
    /registration/`

    And the following cookie excludes:
    affwp_ref
    affwp_ref_visit_id
    affwp_campaign
    wptouch_switch_toggle
    wp-affwp_ref_visit_id
    wp-affwp_ref
    wp-affwp_campaign`

    But the affiliate tracking only works after purging all or when cache is turned off.

    Any ideas on what might be stopping affiliatewp from working even with the items excluded from caching?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter aid45

    (@aid45)

    Hi report number is : Report number: CVIJXGUR

    Thanks

    Plugin Support qtwrk

    (@qtwrk)

    root@server100:~# curl -I -XGET --cookie "affwp_ref=123" https://myboatcard.com/
    HTTP/2 200
    content-type: text/html; charset=UTF-8
    x-powered-by: PHP/7.4.32
    x-dns-prefetch-control: on
    x-litespeed-tag: 94e_HTTP.200
    x-litespeed-cache-control: no-cache
    vary: Accept-Encoding
    date: Wed, 02 Nov 2022 01:58:41 GMT
    server: LiteSpeed
    x-qc-pop: EU-DE-FKB-67
    alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46"

    from what I see , with that cookie is set, it gives x-litespeed-cache-control: no-cache as page is not being cached

    what is the reponse header you see ?

    Thread Starter aid45

    (@aid45)

    I also tested changing the settings back to essentials preset and testing for the following affiliate link in fresh incognito browser:
    https://myboatcard.com/card/6/

    But it had the error – created the wpaffiliate cookie on the first page visit after fresh purge and no cookie after that with another fresh inncognito browser

    The wpaffiliate cookies seem to be getting cached even though they are listed in the cookie exclude

    Thanks

    Thread Starter aid45

    (@aid45)

    if you try it again – i might have had cache off when u tested last time

    below is my response header for https://myboatcard.com/card/6/ with fresh incognito

    content-type: text/html; charset=UTF-8
    date: Wed, 02 Nov 2022 02:10:45 GMT
    etag: "4442-1667354654;br"
    server: LiteSpeed
    vary: Accept-Encoding
    x-powered-by: PHP/7.4.32
    x-qc-cache: hit
    x-qc-pop: NA-CA-YVR-341
    Plugin Support qtwrk

    (@qtwrk)

    on which pages it creates the cookies ? does it create cookie on every page ?

    Thread Starter aid45

    (@aid45)

    I even have

    /card/*

    added to Do Not Cache URIs

    so I dont know why it is still cache the page?

    Is there some conflict that my URI and cookie excludes are not being read?

    Plugin Support qtwrk

    (@qtwrk)

    you used /card* , this won’t work , * is not supported , make it /card , purge all and check again.

    Thread Starter aid45

    (@aid45)

    when you visit from affiliate url (https://myboatcard.com/card/6/) it should create wpaffiliate cookies (wp-affwp_ref_visit_id and wp-affwp_ref) – these 2 cookies then stay with that user on all urls they visit

    it creates wp-affwp_ref_visit_id and wp-affwp_ref after purge all or when turned LS cache off

    Plugin Support qtwrk

    (@qtwrk)

    please read my above reply

    Thread Starter aid45

    (@aid45)

    that worked – but is not really a solution as all pages visited are now really slow and uncached

    is there a way to get it to work by just excluding the cookies?

    as I only added /card as a test – it de-caches all pages for that affiliate visitor

    Plugin Support qtwrk

    (@qtwrk)

    sadly no

    the option do not cache cookie means when certain cookie present , that page will not be cached

    either way , when that cookie is there , page is not longer cached already

    the best approach is to use ajax call , that will completely ignore the page cache status , but that has to be implemented from affiliate plugin

    Thread Starter aid45

    (@aid45)

    ok – thanks

    can you tell why we are having 5 second sever delay on none cacahed pages?

    Plugin Support qtwrk

    (@qtwrk)

    what do you mean by 5 second delay ?

    Thread Starter aid45

    (@aid45)

    5 second server response time on uncached pages

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Cookies not being excluded’ is closed to new replies.