openeuropa / oe_webtools

Drupal module providing integration with several Webtools services
European Union Public License 1.2
6 stars 12 forks source link

oe_webtools_analytics: The config doesn't change on the console after update #239

Open jvalleva opened 4 months ago

jvalleva commented 4 months ago

We are using the module oe_webtools_analytics and we have detected that after changing the configuration, although it is saved correctly, by inspecting the browser console we can see that the variables do not change the value assigned in the configuration (even after clearing the drupal cache). Attachment screenshot. Do you know what could be causing this malfunction? Thanks a lot! imagen

catalinvlad-tremend commented 4 months ago

Hi @jvalleva

Maybe the configuration of the module is overridden in settings.php. Usually oe_webtools_analytics is configured by using environment variables & and used in settings.php

$config['oe_webtools_analytics.settings']['instance'] = getenv('DRUPAL_WEBTOOLS_ANALYTICS_SITE_INSTANCE');

imanoleguskiza commented 1 month ago

Dear @catalinvlad-tremend, we checked and this is not the case. Indeed if you check the resulting embedded json object the values are correctly added, but as stated if you check it via JS it is not correctly set...