Home Forums Plugins CURCY – WooCommerce Multi Currency Googlebot Receiving Conflicting Currency Cookies

Googlebot Receiving Conflicting Currency Cookies

  • Author
    Posts
  • #258320

    Maxweb Solutions
    Participant

    Hi,

    I was wondering if you could help us with an issue.

    We’re trying to get the website to set the currency based on the translated version being served. We’re using TranslatePress, and in most cases everything works as expected.

    However, Google seems to be getting a different result. It’s not picking up the correct currency, which means we’ve had to rely on currency URL parameters as a workaround.

    When we test a page like this:
    https://nadplusathome.com/ar/product/liposomal-nad-capsules/

    and simulate a Googlebot crawl, we can see the following in the response headers:

    Set-Cookie: wmc_current_currency=SAR; path=/; Secure
    Set-Cookie: wmc_current_currency_old=SAR; path=/; Secure
    Set-Cookie: _wp_first_time=1; path=/; Secure
    Set-Cookie: wmc_current_currency=GBP; path=/; Secure
    Set-Cookie: wmc_current_currency_old=GBP; path=/; Secure

    So it looks like the currency is being set twice with conflicting values (SAR and GBP).

    What’s strange is that these duplicate cookies don’t appear when loading the same URL in a normal browser session. The issue only seems to happen when replicating a Googlebot crawl, which we tested here:
    https://tamethebots.com/tools/fetch-render

    We’ve tried adjusting various plugin settings but haven’t been able to resolve it.

    Do you have any idea why this might be happening, or how we can ensure the correct currency is consistently applied for crawlers as well?

You must be logged in to see replies to this topic. Click here to login or register