How can I add Track Button to Magento 2?

Insert Track Button to a New Page

a. Go to your Magento 2 admin dashboard and add click on the Add New Page button.
b. Input the Track Button page information and select the Status as Enabled.
c. In the Content section change to the HTML editor and paste the following track button code.
<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><div data-size="large" data-domain="track.aftership.com"></div>
	
d. Remember to login to your AfterShip account > Apps >  Track Button for custom style. You should also replace  data-domain="track.aftership.com" in the track button code with your AfterShip username or custom domain to display tracking results, and apply your carrier settings. 

e. Preview to see how your Track Button looks.

Still need help? Contact Us Contact Us