Map tenant IDs to names, plans, and other identifiers using metadata
b3ce717c-9ee3-4c80-a3d1-de42f3563496
with the company name Apple, Inc
and Stripe Customer ID cus_P5iEJpWPKP3xXI
.
tenantMetadata
option in the widget. When any widget function is called with a tenantMetadata
option object, the tenant ID will be associated with your chosen metadata. This is supported in the Javascript widget (hotglue.com/widgetv2.js
) or in React versions ≥ 1.4.9.
For example, you can add tenant metadata using the javascript HotGlue.link
function as below:
🚧 Note: tenantMetadata overwrites existing metadata fields When you pass tenantMetadata to the widget, hotglue overwrites your metadata object with whatever is passed to the widget. If you do not pass all metadata values to the widget, this becomes a destructive action.
/metadata
endpoint. Learn more about tenant metadata APIs here.
+
to add your new metadata fieldProperties | Tenant Config | Tenant Metadata |
---|---|---|
Supports nested objects | ✅ | ❌ |
Can be managed via the admin panel or API | ✅ | ✅ |
Can be managed via widget embed code | ❌ | ✅ |
Sent in job lifecycle webhooks | ❌ | ✅ |