Integrate UsercentricsEdit on GitHub
You can configure the data processing services and the visual representation of the cookie consent dialogs for your store in the Usercentrics Admin Interface. For details, see the Usercentrics knowledge base.
Before you can integrate Usercentrics, make sure that your project is ACP-enabled. See App Composition Platform installation for details.
The UserCentrics app requires the following Spryker modules:
To integrate Usercentics, follow these steps:
- In your store’s Back Office, go to Apps > Catalog.
- Click Usercentrics. This takes you to the Usercentrics app details page.
- In the top right corner of the Usercentrics app details page, click Connect app. This displays a message about the successful integration of the app. The Usercentrics app’s status changes to Connection pending.
That’s it. You have integrated the Usercentrics app into your store. Now, you need to configure it. See Configure Usercentrics for details on how to do that.
There are three ways to integrate Usecentrics: by direct integration, by the Usercentrics Smart Data Protector, and integration with Google Tag Manager. In the Spryker Back Office, you can select either Smart Data Protector or Google Tag Manager. At the same time, the Smart Data Protector is the preferred and default setting. If you are not using a third-party tracking management tool like Google Tag Manager and want a code-free integration, we recommend integrating Usercentrics via Smart Data Protector.
All of the three approaches require you to get the setting ID for your store in the Usercentrics Admin Interface and configure the data processing services on page Service Settings > Data Processing Services.
The direct integration requires quite a bit of manual work by developers.
The direct integration is the most basic and, at the same time, the most cumbersome way of integrating Usercentrics. We do not support the direct integration approach in the ACP, so if you choose it, you should not use the Spryker Usercentrics integration.
The direct integration presupposes that you inject the Usercentrics JavaScrip tag into your site with the setting ID.
Example script tag for the direct integration:
<script id="usercentrics-cmp" data-settings-id="apXtrZ9ec" src="https://app.usercentrics.eu/browser-ui/latest/bundle.js" defer></script>
apXtrZ9ec is the setting ID that identifies configuration of the data processing services for your store in the Usercentrics Admin Interface.
For more details about the Usercetrics direct integration, see the Usercentrics documentation.
Smart Data Protector
The Smart Data Protector blocks the data processing services you added to your store and activates them only for customers that gave their consent to do so. The Smart Data Protector is the preferred and default setting to configure Usercentrics using Spryker.
Every data processing service not supported by Usercentrics by default requires a custom manual configuration in the Usercentrics Admin Interface and corresponding adaption as for the Direct Integration case. For more information about the custom services, see Usercentrics documentation on custom data processing services.
Google Tag Manager
If you already have the Google Tag Manager integrated into your store, to use the technology legally, you need the cookie consent dialog to appear in your stores. You can achieve that by using the Google Tag Manager with Usercentrics.
To use Usercentrics with the Google Tag Manager, make sure the following applies:
The Usersentrics data processing services match the tracking tools in the Google Tag Manager. To do that, in the Usercentrics Admin Interface, go to Service Settings > Data Processing Services and define the same data processing services that you have in the Google Tag Manager.
In the Google Tag Manager UI, configure the variables and triggers to work with Usercentrics. For details about how to do that, see Google Tag Manager Configuration.
Configure the Usercentrics app for your store.
For submitting the form