Single number link mode

Add a link to your tracking number on your website, when click the number, the tracking results will float underneath the number.

Example
Your packages:
  • Order #098365
  • Order #098366
  • Order #098367

Preferences

trackNumber

Track number

Optional
elementId

If this element ID is hovered / clicked, the iframe with the package tracking results will be added to the DOM

Optional
height

Frame height, where the package tracking results will be displayed. The default value is 370.

Required
width

Frame width, where the package tracking results will be displayed. By default, it is stretched to the entire width of the container.

Required
language

UI language, default language is automatically detected based on the browser settings.

  • en=English
  • de=Deutsch
  • es=Español
  • fr=Français
  • ko=한국어
  • id=Bahasa Indonesia
  • it=Italiano
  • ja=日本語
  • nl=Nederlands
  • pl=Polski
  • pt=Português
  • th=ไทย
  • tr=Türkçe
  • zh=汉语
  • ru=Русский
  • uk=Українська
Required

Code

<!--Elements followed by the created frame with the package tracking results.-->
<button id="pkge-track-1-test">ZA871946730HK</button>
<button id="pkge-track-2-test">5610177923517</button>

<!--The script required for the widget's work. It can be inserted at the end of the page.-->
<script type="text/javascript" src="https://pkge.net/externalwidget.min.js"></script>

<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
    PKGEExtWidget.trackButton({        //Optional. Track number
        'trackNumber': 'ZA871946730HK',
        //Optional. If this element ID is hovered / clicked, the iframe with the package tracking results will be added to the DOM
        'elementId': 'pkge-track-1-test',
        //Required. Frame width, where the package tracking results will be displayed. By default, it is stretched to the entire width of the container.
        'width': 460,
        //Required. Frame height, where the package tracking results will be displayed. The default value is 370.
        'height': 370,
        //Required. UI language, default language is automatically detected based on the browser settings.
        'language': 'en'
    });


    PKGEExtWidget.trackButton({        //Optional. Track number
        'trackNumber': '5610177923517',
        //Optional. If this element ID is hovered / clicked, the iframe with the package tracking results will be added to the DOM
        'elementId': 'pkge-track-2-test',
        //Required. Frame width, where the package tracking results will be displayed. By default, it is stretched to the entire width of the container.
        'width': 460,
        //Required. Frame height, where the package tracking results will be displayed. The default value is 370.
        'height': 370,
        //Required. UI language, default language is automatically detected based on the browser settings.
        'language': 'en'
    });
});
</script>