Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • CMPv1 Implementation

    • Open index.html in your app directory

    • Add the following script to the <head> tag:

      Code Block
      languagehtml
      //Change 'xxxxxx' to your settingsID
      <script>
         window.usercentrics = {
          settingsId: 'xxxxxx'
        };
        window["usercentrics"] = {
          paths: {
            "bundle": "https://app.usercentrics.eu/latest/bundle.js",
          },
          settingsIds: 'xxxxxx',
          settingsVersionOverwrite: 'preview',
        };
      </script>
    • Then save and the localhost will reload and load into the page, the bundle.js.

  • CMPv2 Implementation

    • Open index.html in your app directory

    • Add the following script to the <head> tag:

      Code Block
      //Change 'xxxxxx' to your settingsID
      
      //Normal Bundle
      <script id="usercentrics-cmp" data-settings-id="XXXXXXXX" src="https://app.usercentrics.eu/browser-ui/latest/loader.js"  async></script>
    • Then save and the localhost will reload and load into the page, the bundle.js

Do you need further help?

How can I get help with technical questions?