Add Track Button: 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.src="//";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script><div data-size="large" data-domain=""></div>
d. Remember to login to your AfterShip account > Apps >  Track Button for custom style. You should also replace  data-domain="" 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.

Was this article helpful?
0 out of 0 found this helpful