Privacy Transparency Widget
The Privacy Widget allows any website using Brivacia to display a live privacy dialog.
Unlike a traditional privacy policy, the dialog is generated directly by your Brivacia instance. It always reflects your current settings and the information actually available about the current visitor.
The goal is simple: show visitors exactly what your website knows about them.
Features
- Displays information directly from your Brivacia instance.
- Automatically reflects your current Brivacia settings and database.
- Supports all Brivacia translations.
- Automatically matches the active Brivacia light or dark theme.
- Fully responsive.
- Creates no cookies or permanent visitor identifiers.
- Opens in a modal dialog without leaving the current page.
- Visitors can close it by:
- pressing <kbd>Esc</kbd>;
- clicking outside the dialog.
Installation
Simply include the widget script:
<script src="https://your-brivacia.example/api/privacy.php"></script>
A "Your data" button is automatically inserted immediately after the <script> tag.
Clicking the button opens the privacy dialog.
Styling
The generated button uses the following CSS class:
.brivacia-privacy-button
You are free to style the button to match your website.
Example:
.brivacia-privacy-button {
background: #2d6cdf;
color: white;
border-radius: .5rem;
padding: .6rem 1rem;
}
The embedding website can freely style the launch button. The privacy dialog itself is displayed inside a Brivacia iframe and always uses the active Brivacia theme, translations, and configuration.
Why use it?
Most privacy pages simply explain what a website claims to collect.
Brivacia's Privacy Widget instead shows what your website actually knows about the current visitor.
Because the dialog is generated directly by Brivacia, it always reflects the real settings and database of the hosting instance rather than a manually written privacy notice.
Visitors can therefore verify, in real time, what information is available about them.
This provides a transparent and trustworthy way to explain analytics.
Do you find this project useful? You can support its development using the buttons in the page footer.
breat.fr