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

data-slug="ups"

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.id=n;r.src="//button.aftership.com/all.js";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="track.aftership.com" 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.

Still need help? Contact Us Contact Us