I’m trying to enable the cookie consent banner using the API ( Update Cookie Banner Settings | API Reference )
I wrote a small app to do this.
The app works on a test site (a premium studio-based site provided for app development), but the same app fails on my live site (with error code 400 and no details).
I also tried to enable the banner using the REST API, with the same results - the test site worked, the live site failed (I think this time I got code 410 or something like that).
I believe this is preventing me from enabling analytics. How do I fix this? I do not want to use the horrid-looking free UserCentrics app, nor to pay for the less horrid-looking premium version of it.
FWIW I do not think the difference is that the test site uses studio and the live site uses the editor - I tried to use the REST API on a non-test studio site and it still didn’t work.