Generate Embed Tokens
settings you need to generate a token. The payload of the token should contain the permissions, filters, settings (which we had already generated above), and
expired time, which specifies a time to expire your issued token.
Note that: permissions, filters and settings must be in JSON type.
We use JWT (JSON Web Token) as a mechanism to authenticate the code.
You can get the
secret_key of the embed link by opening Embedded Analytics Sandbox and looking for
secret_key in the
Embed code section
Generate Embed URL and integrate into your application
Next, render an iframe pointing to the embed link, with the token baked into it. Holistics then use this token to authenticate and figure out which Customer is logging in, and display your dashboard with only that customer’s data.
Generate embed URL with
token (we had already generated
You can get
embed_code in Embed code section in Embedded Analytics Sandbox.
Finally, simply include an iframe with that URL in your application: