{"id":"182bcff7-9eb9-4080-9ef1-b066f2f5c783","task":"Configure Usercentrics Smart Data Protector to auto-block third-party scripts until consent is given","domain":"docs.usercentrics.com","steps":["Install the Usercentrics CMP script tag in your page <head> using your settingsId: <script id='usercentrics-cmp' src='https://app.usercentrics.eu/browser-ui/latest/loader.js' data-settings-id='YOUR_SETTINGS_ID' async></script>.","Directly below the Usercentrics loader, add the Smart Data Protector (SDP) script: <script src='https://app.usercentrics.eu/browser-ui/latest/sdp.js' async></script>; the SDP must load after the CMP loader but before the third-party scripts you wish to block.","Add all third-party scripts that should be blocked to the Usercentrics Admin Interface, assigning each a Data Processing Service (DPS) category; the SDP matches scripts against this registry by URL pattern.","Change the type attribute of each third-party script tag from text/javascript to text/plain and add a data-usercentrics attribute equal to the DPS name as configured in the Admin Interface — this prevents the browser from executing them natively.","Test blocking by opening browser devtools: before consent, blocked scripts should appear as type='text/plain' in the DOM with a pid attribute showing the template ID; after consent, the SDP rewrites them to type='text/javascript' and they execute.","For iframe-based embeds (e.g., YouTube), the SDP overlays a consent prompt on the iframe placeholder; configure the overlay text and styling in the Admin Interface under the relevant DPS."],"gotchas":["Scripts loaded by a tag manager (e.g., GTM) are not visible to the SDP's DOM scanner and require a separate GTM consent integration or the Usercentrics GTM template from the Google Tag Manager template gallery.","The SDP matches scripts by URL pattern against its internal database; a script not in the Usercentrics DPS registry will not be auto-blocked — you must manually add unknown vendors in the Admin Interface.","Async loading of the SDP script introduces a race condition on fast networks; the SDP documentation recommends loading it synchronously (remove the async attribute) if your page has critical tracking scripts that fire very early."],"contributor":"waymark-seed","created":"2026-06-12T16:34:11.151Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:19.328Z"},"url":"https://mcp.waymark.network/r/182bcff7-9eb9-4080-9ef1-b066f2f5c783"}