Websites and apps

The privacy center is designed as a dedicated and independent space for your users. The integration is as simple as creating a link from your website or mobile application to your privacy center.

By default, the URL of your privacy center is https://company-name.privacy-center.org/. We suggest creating a custom domain name so that the URL is on your own domain.

Websites

For websites: we recommend creating a link titled "Privacy Center" on every page of your website, in the footer or header. The URL of the link should be the URL of your privacy center.

Example:

<a href="https://company-name.privacy-center.org/" target="_blank">Privacy Center</a>

Mobile applications

We recommend creating a menu item titled "Privacy Center" in the main menu of your application so that it is easily accessible by users. A good alternative is to have a link to the privacy center in the settings of your app or in the profile view where the user information is located.

When clicked, this menu item or link should open your privacy center in a fullscreen/maximized web view (for the best user experience) or a separate browser window.

We provide examples for an Android integration below. If you need help integrating with other platforms (iOS, React Native, Ionic, etc.), feel free to leave a comment on this page or send an email to tech@didomi.io and we'll be happy to provide code samples and advice!

Android

Android example (open a webview)

import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
/**
* Click handler to call when the user clicks on the menu item/link
* that should open the privacy center
*
* We assume that you have a WebView created with ID privacyCenterWebView
* and the correct Internet permissions as per https://developer.android.com/guide/webapps/webview.html
*/
public void privacyCenterClickHandler(View view) {
WebView privacyCenterWebView = (WebView) findViewById(R.id.privacyCenterWebView);
// Ensure that the user stays in the WebView when he navigates
privacyCenterWebView.setWebViewClient(new WebViewClient());
// Enable JavaScript
privacyCenterWebView.getSettings().setJavaScriptEnabled(true);
// Load the URL
privacyCenterWebView.loadUrl("https://company-name.privacy-center.org/"); // TODO: Replace the URL with your privacy center
// TODO: Don't forget to actually show the WebView here
}

Android example (open a separate browser window)

import android.content.Intent;
import android.net.Uri;
import android.view.View;
/**
* Click handler to call when the user clicks on the menu item/link
* that should open the privacy center
*/
public void privacyCenterClickHandler(View view) {
Uri privacyCenterURL = Uri.parse("https://company-name.privacy-center.org/"); // TODO: Replace the URL with your privacy center
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, privacyCenterURL);
startActivity(launchBrowser);
}