I’ve integrated Piwik PRO into our customer’s site. I’m running into issues with compliance settings.
If I request compliance settings via JavaScript, the browser returns undefined
:
ppms.cm.api('getComplianceSettings', (e)=>{console.log(e)}, ()=>{});
Even if I try and set compliance settings before:
ppms.cm.api('setComplianceSettings', {consents: {analytics: {status:1}}}, () => {}, () => {});
The result stays the same: undefined
. What am I doing wrong?