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
- Navigate to wp-admin → Cookie Consent → General
- In the “Configuration” section, set the “Cookie Domain” option to
example.com
- Scroll down and click “Save”
Ensure the same configuration is used across all WordPress installations:
- Configure the plugin on your main domain
- In wp-admin → Cookie Consent, scroll down, click “Save,” then “Export Settings” to save a JSON file
- For your subdomains, log in, go to wp-admin → Cookie Consent, scroll down, click “Import Settings,” and choose the previously saved JSON file