Ways of reading settings from config.ini.php for javascript?

For a custom plugin I am want to look into how to get values from config.ini.php into javascript, are there any standard ways of doing this?

Like
[MySetting]
foo = bar.

And get the value of foo.

Seems that I read th documentation badly :slight_smile:
https://developer.matomo.org/guides/piwiks-ini-configuration#accessing-configurations-in-javascript

Problem is solved I guess :slight_smile:

1 Like

Alternativly you could look at something like this:

Even better! Thanks Lukas.