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:

Copy
Copied
<iframe width="400" height="800" src="/widget.html?disable5StarRating=1#/DE/de/534340433"></iframe>

js-Library:

Copy
Copied
<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

NameType*DefaultDescription
autoRenderbooleantruedefines if the vue application should be rendered on startup
containerIdstringappdefines in which element the vue application should be rendered into
disable5StarRatingbooleanfalsedefines if the rating component should be shown
postCodeTextInputbooleanfalsedefines if the postcode can contain alphanumerical characters
disableDepositPermissionbooleanfalsedo not render deposit permission button / dialog
disableDeliverToNeighbourbooleanfalsedo not render "deliver to neighbour" button / dialog
disableFromAddressbooleanfalsedo not render fromAddress
disableToAddressbooleanfalsedo 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