Skip to main content

Tracking Widgets

TrackMage allows to add tracking widgets on your own pages.

To make widget works you should add script tag before </body>:

<script type="text/javascript" src="https://s3.trackmage.com/trackmage-widgets/tracking-page-elements.js"></script>

Setup Widget

Is required. Should be added on each page where you want to use widgets.

  <trackmage-setup domain="DOMAIN_NAME" locale="LOCALE_CODE"></trackmage-setup>

Parameters:

domainRequired parameter. Subdomain of your existing tracking page.
localeOptional parameter. Locale two-letter code. If not set, default locale from your tracking page will be used. Allowed values: de, en, es, fr, gr, it, pt, ru.
note

Tracking Cards and Lookup widgets can work as separate widgets or in a pair.

note

If Lookup widget is used as a separate widget, search result will be opened in a new tab with full version of tracking page. If Tracking Cards widget also presents on the page, search result with be shown on the same page.

Tracking Cards Widget

  <trackmage-tracking-cards search="<TRACKING_NUMBER|ORDER_NUMBER>" bgcolor="BG_COLOR"></trackmage-tracking-cards>

Parameters:

searchOptional parameter. A Tracking Number or Order Number for which you want to show information.
bgcolorOptional parameter. Css background color for language menu. If not set 'transparent' background will be used. Example #000000.
note

search parameter should be set to display information if Tracking Cards widget is used without a Lookup widget

Lookup Widget

  <trackmage-order-lookup></trackmage-order-lookup>
  <trackmage-tracking-sidebar></trackmage-tracking-sidebar>
note

Sidebar widget can be used only in pair with Tracking Cards Widget

note

Sidebar widget should be enabled on the related tracking page.

Examples

WordPress Configuration

Troubleshooting

What to check if widgets don't work