Documentation

Migration Guide

This part of the documentation will guide you through the steps of migrating from old Ingrid Tracking Widget into new Ingrid Delivery Tracking Widget. All the steps from this guide you need to do on frontend of your application.

Changing URL that points to Tracking Widget

Find in your code script that loads Tracking Widget and change its source to:

@@ -1 +1 @@
-<script src="https://cdn.ingrid.com/tracking-widget/bootstrap.js"></script>
+<script src="https://cdn.ingrid.com/delivery-tracking/bootstrap.js"></script>

Change the integration

In the part of your application where you initialize Tracking Widget change it to either search mode or private mode:

@@ -1,8 +1,5 @@
-window.IngridTrackingWidget.config({
- elementId: string,
- trackingNumber: string,
- externalId: string,
- siteId: string,
+window.IngridDeliveryTrackingWidgetApi.renderSearchMode({
+ containerId: string,
locale: string,
- authToken: string,
+ siteId: string,
});

Please see IngridDeliveryTrackingWidget API section of your docs to know more which mode you should render.

New integration doesn't require you to pass authToken anymore.

Last updated: Fri, Feb 09, 06:15 AM