• Resolved wardojo

    (@wardojo)


    Hi, I was wondering if there’s any support for cross-subdomain consent?

    • This topic was modified 2 months ago by wardojo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pressidium

    (@pressidium)

    Hey, @wardojo!

    Hi, I was wondering if there’s any support for cross-subdomain consent?

    Yes, you can share consent across subdomains.

    In order to to do this:

    • Set your “Cookie Domain” to your main domain
    • Ensure both your main domain and subdomain(s) share the same configuration

    For instance, if your setup looks like this:

    • example.com
    • foo.example.com

    Confirm the “Cookie Domain” is set to example.com

    1. Navigate to wp-admin → Cookie Consent → General
    2. In the “Configuration” section, set the “Cookie Domain” option to example.com
    3. Scroll down and click “Save”

    Ensure the same configuration is used across all WordPress installations:

    1. Configure the plugin on your main domain
    2. In wp-admin → Cookie Consent, scroll down, click “Save,” then “Export Settings” to save a JSON file
    3. For your subdomains, log in, go to wp-admin → Cookie Consent, scroll down, click “Import Settings,” and choose the previously saved JSON file
    Thread Starter wardojo

    (@wardojo)

    Thanks for the instructions! This was actually one of the first things I tried before asking here, but I couldn’t get it to work. Do you think it has anything to do with caching? All I’m running is Cloudfare’s caching.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.