How can I activate auto-detect courier in Track Button?

Simply 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

<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?
0 out of 0 found this helpful