Trackstar Link
Trackstar provides a component to allow your customers to easily and securely connect to any WMS. This component can be embedded into your application, or sent as a “Magic Link” to your customers.
Setting up Trackstar Link
There are two ways to set up Trackstar Link:
-
Embedding the component: You can embed the Trackstar Link component into your application. This is the recommended way to use Trackstar Link, as it provides a seamless experience for your customers.
-
Sending a Magic Link: You can send a Magic Link to your customers. This is useful if you don’t have a web application, or if you want to provide a quick way for your customers to connect to a WMS.
Embedding the Component
We have published an NPM package to make it easy to embed the Trackstar Link component into your application.
React
Angular
Once you have installed the package, you can use the TrackstarLink
component in your application. Here is an example of how to use the component in a React application:
Multiple Trackstar Buttons
Instead of using a single TrackstarConnectButton
that opens a modal with a list of integrations, you can use multiple TrackstarConnectButton
components to connect to specific integrations directly.
- Set the
integrationAllowList
prop to an array of a single integration ID. This will bypass the integration selection screen. - Set the
buttonId
prop to a unique ID. This is required if you have multiple Trackstar Connect buttons on the same page.
For example, the following code will create three buttons that connect to Shiphero, Shipbob, and Deposco respectively:
Available Props
A function that returns a link token. See Getting a Link Token for more information.
A function that is called when the customer successfully connects to a WMS. See Storing Tokens for more information.
A function that is called when the component is closed.
A function that is called when the component is loaded.
Set to true to include a “Sandbox” WMS in the list of integrations.
Only show the integrations in the list that have the given endpoints supported.
e.g. integrationsWithEndpoints={['get_returns', 'create_return']}
will only show the integrations that have the endpoints get_returns
and create_return
.
Only show the integrations in the list that are in the allow list.
e.g. integrationAllowList={['wms1', 'wms2']}
will only show the integrations that are in the allow list. If only one integration is in the allow list,
the integration selection screen will be bypassed.
Do not show the integrations in the list that are in the block list.
e.g. integrationBlockList={['wms1', 'wms2']}
will not show the integrations that are in the block list.
The URL of a custom logo to display in link modal.
The ID of the button. This is required if you have multiple Trackstar Connect buttons on the same page.
Custom CSS styles to apply to the button.
Note: integrationAllowList
, and integrationBlockList
are mutually exclusive.
If both props are given values, all integrations will be displayed. Integration IDs that can be used in these props can be found in the Integrations section.
Sending a Magic Link
Within the Trackstar Dashboard, you can send a Magic Link to your customers. Simply press the “Generate Magic Link” button to open the Magic Link modal. From here, you can configure the Magic Link, generate a url, and send it to your customer.
Once the customer successfully connects a WMS, the connection can be found in the Connections page of the Trackstar Dashboard. Press the Key icon of the associated row to retrieve the permanent access token for the connection.
Magic Link Configuration
- Link Duration: The duration that the Magic Link is valid for. After this time, the Magic Link will expire and the customer will need to request a new one.
- Customer ID (Optional): The ID of the customer that the Magic Link is for. This is useful for associating the connection with a customer in your system.
- Connection ID (Optional): The ID of the connection that the Magic Link is for. Only pass this in when you want to update the credentials of an existing connection.
- Endpoinst List (Optional): Only show integrations that have the selected endpoints supported.
- Integration Allow List (Optional): Only show the integrations that are in the allow list.
- Integration Block List (Optional): Do not show the integrations that are in the block list.
Custom Branding
You can customize the appearance of the Trackstar Link within the Trackstar Dashboard. Here you can set the following:
- Custom Logo: The logo that will be displayed in the Trackstar Link modal.
- Custom Color: The color of the Trackstar Link button.