I have a multi-domain Drupal 8 website, with a shared database, in which I manage different contents for different domains with Domain module. I installed and configured this module, but obviously, there's a single Privacy Policy Code and siteID for all n domains. It would be great to manage different configurations for each website.

Comments

fadeslayer created an issue. See original summary.

fadeslayer’s picture

An update, after some tries I implemented custom, translatable values for siteId and cookiePolicyId for each subdomain. I had trouble to get translated IDs set on drupalSettings object, it did not work OOB, so I implemented hook_iubenda_integration_alter and I forced langcode and correct translated values.

Now the banner comes out in the right language, drupalSettings.iubendaIntegration.iubendaCookiePolicy contains the right IDs, but I have a new problem:
- the main site works flawlessly, cookies (GA only) are blocked until I give consent (if I deny consent after allowing cookies, they are not deleted automatically, though)
- the other 3 domains do not work, Iubenda code is embedded in page but GA cookies are set before, as if Iubenda script "comes late".

fadeslayer’s picture

Priority: Normal » Major
robertoperuzzo’s picture

Version: 3.1.0 » 4.x-dev

I moved this issue to version 4.x because 3.x is no more supported.

robertoperuzzo’s picture

@fadeslayer if I have correctly understand there are 2 issue here:

  1. if I deny consent after allowing cookies, they are not deleted automatically, though
  2. Iubenda code is embedded in page but GA cookies are set before, as if Iubenda script "comes late"

I think they are two behaviours you should better explain in two separated issue using the "issue template" that propose the following paragraphs

Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

robertoperuzzo’s picture

Status: Active » Postponed (maintainer needs more info)