Improved performance after customization of Usercentrics service

The Usercentrics consent management platform is fundamentally a very good solution, which we, as a Usercentrics partner, regularly use for our customers. However, a part of the platform, the Smart Data Protector (SDP), caused us some headaches and Usercentrics was initially unable to help here.

The Smart Data Protector (SDP) is a feature that automatically blocks third-party integrations. This prevents user data from being transferred to third parties without the user's consent. In addition, an information window shows which services are integrated.

Actually a good thing, but I was not completely satisfied with this solution. You can now find out why and how I replaced the Usercentrics feature with our own development.

Poor loading times & missing services

There were two main reasons for replacing the Smart Data Protector: slower loading speeds of the Netresearch website and the selection of third-party providers that had to be blocked.

Behind the Usercentrics feature is a large JavaScript library (~1.2 MB), which is loaded every time the website is opened. Since the library is loaded from Usercentrics and is not available locally on our own web server, this causes longer loading times, among other things.

In addition, not all third-party services are automatically blocked. We have currently integrated Hubspot's appointment booking tool, which, for example, is not taken into account by the SDP. So I decided to adapt the SDP tool to be more performant and cover all our third party services.


Technical solution

Usercentrics itself offers an API to communicate with the Usercentrics Consent Manager. Thanks to this, I was able to implement a solution based on JavaScript..

Searching for an already existing suitable solution I came across this lightweight library (~4 KB). I have expanded this for our purposes, e.g. with a customized output or a user dialog in English.

We have already made this customization available to our community on Github.


This is how we use our tool in the TYPO3 CMS

I have provided my own content element in TYPO3 so that our editors can use the new solution more easily. With this, all options can be selected or entered quickly and easily:

In addition to the type (iFrame or JavaScript), the editors must also store the source URL. In addition, the respective third-party service stored in Usercentrics must be selected via a drop-down menu.


Extra work after implementation

Unfortunately, the third-party services are no longer automatically blocked with this solution.

Therefore the integration needs to be adjusted slightly. In the case of scripts, for example, the addition “type="text/plain" data-usercentrics="Name of the third-party provider in Usercentrics" must be added. It is important that the provider name is written exactly as it is stored in your own Usercentrics account. With the new content element in TYPO3, however, this is done quickly and easily.


Faster loading times & reliable blocking of all third-party services

Since replacing the Smart Data Protector with our solution, we have been able to increase our Google PageSpeed ​​performance by around 20 points, even in the mobile view. Loading times have noticeably improved as a result. Furthermore, all third-party services that were previously ignored by the Usercentrics tool are now blocked.



Adjusting the external integrations and replacing them with the new TYPO3 content element is a bit time-consuming. But for us, this investment was definitely worth it. We are very satisfied with this solution, which is why we have already implemented it for the first customers.


Contact us

Full service from a single sourceUse your time wisely

  • Applications
  • Web shops
  • Software integration
  • Tech support
  • Lifetime updates
  • Multistore solutions
  • Online platforms
  • Websites
  • Monitoring & hosting
  • Support & maintenance

Many times, software is only delivered individually. The system or software needs to be carefully selected and configured, which is labour-intensive.

Netresearch not only delivers the software itself, but also the associated components like web server, database server, caching server, PHP server, or libraries. This eliminates a lot of effort, coordination and unforeseen problems when installing the software or adapting the target system and installing libraries and tools for the software.

We offer the full service package from a single source. Contact us and find out which solution is right for you.

Share article:

New Blogposts

By Caroline Kuhn

Website launch of the dialogue platform for MDF AG

With the launch of the dialogue platform, a community solution for direct…

Read more
By Christoph Aßmann
Deutsche Post & DHL Shipping Magento 2 Extension Update - part 1

In the last quarter of 2021, Netresearch published two notable releases of the Deutsche Post & DHL…

Read more
By Christoph Aßmann
Deutsche Post & DHL Shipping Magento 2 Extension Update - part 2

Following version 2.4.0 in the beginning of the year, Netresearch published another feature-rich…

Read more
By Sebastian Koschel
Improved performance after customization of Usercentrics service

After customizing Usercentrics' Smart Data Protector with our own development, we were able to…

Read more