Skip to main content
As a security firm, you can show your Trustblock profile metrics on your own site with the security firm widget. It is added with a script and a div, and reads the metrics computed from the audits published on your profile.

Setup

1

Add the script

Import the script to your website entry HTML file as follows:
2

Add the div

Add the widget div anywhere you want on your website:
Parameters
  • data-tb-auditor-widget is a required parameter that allows the widget to be initialized.
  • data-tb-auditor-slug is a required parameter that specifies the slug of the security firm you want to display the metrics for.
  • data-tb-text-color is an optional parameter that specifies the color of the text in the widget and accepts a hex color code.
  • data-tb-bg-color is an optional parameter that specifies the background color of the widget and accepts a hex color code.
  • data-tb-accent-color is an optional parameter that specifies the accent color of the widget and accepts a hex color code.

Give it a try on our playground