Title: tracking injection
Last modified: September 2, 2026

---

# tracking injection

 *  Resolved [cycloneuk](https://wordpress.org/support/users/cycloneuk/)
 * (@cycloneuk)
 * [3 weeks ago](https://wordpress.org/support/topic/tracking-injection/)
 * The tracking is not being injected into the order completed email, I do have 
   a template override for this email. What’s the workaround?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [gaurav1092](https://wordpress.org/support/users/gaurav1092/)
 * (@gaurav1092)
 * [3 weeks ago](https://wordpress.org/support/topic/tracking-injection/#post-19009604)
 * Hi [@cycloneuk](https://wordpress.org/support/users/cycloneuk/),
 * That’s the cause – your template override. We add the tracking widget to the 
   email using the woocommerce_email_before_order_table hook, and your custom template
   is missing it, so there’s nothing for us to hook into.
 * Just add this line to your overridden email template where you want the tracking
   to appear:
 * Once that hook is present in your template, the tracking will show in the email
   again.
 * Best Regards,
   Gaurav
 *  Thread Starter [cycloneuk](https://wordpress.org/support/users/cycloneuk/)
 * (@cycloneuk)
 * [3 weeks ago](https://wordpress.org/support/topic/tracking-injection/#post-19009628)
 * Copied that to that template and it’s still not inserting the tracking. The default
   customer-completed-order template doesn’t have the woocommerce_email_before_order_table
   hook either?
    -  This reply was modified 3 weeks ago by [cycloneuk](https://wordpress.org/support/users/cycloneuk/).
 *  Thread Starter [cycloneuk](https://wordpress.org/support/users/cycloneuk/)
 * (@cycloneuk)
 * [3 weeks ago](https://wordpress.org/support/topic/tracking-injection/#post-19010096)
 * I managed to get it to show with a workaround snippet. I’m using Royal Mail Click&
   Drop. When I manifest the day’s orders, it marks them as dispatched and adds 
   an order note containing the tracking number.
 * I’m also using the suppression snippet to stop the Completed Order email from
   being sent if the order doesn’t have any tracking information.
 * Will AST check the order notes when the tracking is added and then trigger another
   Completed Order email with the tracking number?
 * The documentation isn’t the best, and it seems to suggest that it will, but it
   isn’t very clear.
 * Also, to prevent customers from receiving an order note email when the tracking
   is added, I’m guessing I need to disable that email notification? This isn’t 
   really mentioned in the documentation.
 *  Plugin Author [gaurav1092](https://wordpress.org/support/users/gaurav1092/)
 * (@gaurav1092)
 * [2 weeks, 6 days ago](https://wordpress.org/support/topic/tracking-injection/#post-19010207)
 * Hi [@cycloneuk](https://wordpress.org/support/users/cycloneuk/),
 * One key thing first: the Royal Mail Click & Drop integration – where AST reads
   the tracking from the order note and adds it to the order – is only available
   in [AST PRO](https://www.zorem.com/product/woocommerce-advanced-shipment-tracking/),
   not the free version.
 * So on the free version, AST won’t automatically pick up the tracking from the
   Click & Drop note, which is why the flow you’re describing (tracking added, then
   the Completed email with tracking) won’t work as expected. To get that automatic
   tracking-from-Click-&-Drop behaviour, you’d need [AST PRO](https://www.zorem.com/product/woocommerce-advanced-shipment-tracking/).
 * On the order-note email: yes, to stop customers getting an email when the note
   is added, disable that note notification (or add the tracking as a private note
   instead).
 * If you’d like, I can explain how the Click & Drop integration works in PRO so
   you can see if it fits before deciding.
 * Best Regards,
   Gaurav

Viewing 4 replies - 1 through 4 (of 4 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftracking-injection%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woo-advanced-shipment-tracking/assets/icon-256x256.png?rev
   =3645295)
 * [Advanced Shipment Tracking for WooCommerce](https://wordpress.org/plugins/woo-advanced-shipment-tracking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-advanced-shipment-tracking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [gaurav1092](https://wordpress.org/support/users/gaurav1092/)
 * Last activity: [2 weeks, 6 days ago](https://wordpress.org/support/topic/tracking-injection/#post-19010207)
 * Status: resolved