Better Tracking Widget
The Better Tracking Widget allows you to embed the bettermile tracking experience into your website for tours driven with Better Route.
The Widget can be integrated in one of two ways. Via an iframe integration or using an js-Library.
Iframe:
<iframe width="400" height="800" src="/widget.html?disable5StarRating=1#/DE/de/534340433"></iframe>
js-Library:
<html>
<head>
<link href="https://gls-rtt.com/css/widget.css" rel="preload" as="style" />
<link href="https://gls-rtt.com/widget.js" rel="preload" as="script" />
<link href="https://gls-rtt.com/css/widget.css" rel="stylesheet" />
</head>
<body>
<div id="app"></div>
<script src="https://gls-rtt.com/widget.js?autoRender=true&containerId=app&disable5StarRating=1#/DE/de/534340433"></script>
</body>
</html>
Options
Query Params
Name | Type* | Default | Description |
---|---|---|---|
autoRender | boolean | true | defines if the vue application should be rendered on startup |
containerId | string | app | defines in which element the vue application should be rendered into |
disable5StarRating | boolean | false | defines if the rating component should be shown |
postCodeTextInput | boolean | false | defines if the postcode can contain alphanumerical characters |
disableDepositPermission | boolean | false | do not render deposit permission button / dialog |
disableDeliverToNeighbour | boolean | false | do not render "deliver to neighbour" button / dialog |
disableFromAddress | boolean | false | do not render fromAddress |
disableToAddress | boolean | false | do not render toAddress |
All params are optional
Hash Structure
Uses the url structure of the gls rtt page: /{country}/{language}/{parcelNumber|trackingId|internalId}[/{postcode}] The postcode is optional