Activate auto-detect courier in Track Button

Remove the parameter for courier in the Track Button code, you can activate auto-detect function of Track Button. 

Remove parameter for courier



Add Track Button to your site

Include the follow javascript on your page once, ideally right after the opening <body> tag.

<div id="as-root"></div><script>(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);;r.src="//";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script>
Copy and paste the code below into your page between the <body> and </body> tags.
The buttons will appear whatever you place them.
<div class="as-track-button" data-domain="" data-size="large"></div>


Set your courier preference

By specifying your courier preference of your AfterShip account (settings > courier), your Track Button will track based on your courier settings and priority, and exclude the couriers that are not activated during auto-detect.

Was this article helpful?
1 out of 3 found this helpful