Below is an explanation, translated from German.
Step 3: Adapt existing scripts
After the Usercentrics script has been integrated into your website, all existing scripts must be adapted by the above-mentioned services that you use in your website. This step is necessary so that scripts are only executed with the explicit consent of your visitors.
In order to adapt your scripts, two small adjustments are necessary.
Change script type - "text / javascript" becomes "text / plain"
The first adjustment relates to the script type. Change the type="text / javascript" to type="text / plain" in your scripts. This initially prevents the JavaScript code from being executed.
If your script has not explicitly specified the type="text / javascript", you still have to adjust it to type="text / plain", since the browser interprets and executes it as standard JavaScript without being mentioned.
Assign data attributes
In order to establish the connection to the UserCentrics Consent Management Platform and to be able to query the consent status on a script basis, your scripts require a user-defined data attribute.
This data attribute is structured according to the principle data-usercentrics="Consentname", whereby "Consentname" corresponds to the exact name of the service, as you can find it in the selection list in the generator.