Views on the HyperTrack dashboard can be embedded as iframe widgets. Use this guide to set these widgets up.
You need to pass a token in the query param
key in the widget url.
For widgets that have no restrictions, you can use the account secret key to authenticate the widget. E.g.
Widgets can have access control with the group entity. In this case, pass the group's token as the
keyquery param. These tokens are prefixed with
gk_and can be retrieved with the group. E.g.
- Widget url which is used in iframe. E.g.
<iframe src="https://dashboard.hypertrack.com/widget/map/users?key=sk_xxxxxxxxxxxxxxxxxx"></iframe>, here
https://dashboard.hypertrack.com/widget/map/users?key=sk_xxxxxxxxxxxxxxxxxxis the widget url.
https://dashboard.hypertrack.com/widget/actions;lookup_id=<LOOKUP_ID>?key=sk_xxxxxxxxxxxxxx: Actions lookup view, where
<LOOKUP_ID>is the lookup_id of the actions.
https://dashboard.hypertrack.com/widget/users/<USER_ID>/timeline;date=<YYYY-MM-DD>?key=sk_xxxxxxxxxxxxxx: Timeline of a user, where
<USER_ID>is id of the user,
<YYYY-MM-DD>is the date of the timeline e.g.
https://dashboard.hypertrack.com/widget/actions/<ACTION_ID>?key=sk_xxxxxxxxxxxxxx: Action view, where
<ACTION_ID>is the id of the actions.
Any link in the dashboard can be converted into embeddable widget by appending
https://dashboard.hypertrack.com/map/users?ordering=-num_tripscan be embedded using the link
https://dashboard.hypertrack.com/widget/map/users?ordering=-num_trips&key=sk_xxxxxxxxxxxxxxxxxxxxx, where sk_xxxxxxxxxxxxxx is secret key.
Add an iframe in the html page where embedded view is to be shown with the
srcattribute of iframe as the widget url. Also set height and width of the iframe.