DEV Community

Olimpio
Olimpio

Posted on

Tracking System on a Delivery Service Website

I am building a website for a client using Wordpress, it's a Delivery Service Website and the client wants a Tracking System. I would like to know how would I add it and how does it work. Help

Top comments (4)

Collapse
 
jakesweb profile image
Jacob Colborn

You will need some kind of API that will receive data to update the current position of the package. The database would have to contain a value for where the item being tracked is. You can do specific location (like GPS or address system) or just general (At Warehouse, On Delivery Vehicle, etc).

Collapse
 
iordacheandrei profile image
iordache-andrei • Edited

The delivery company would need a public API available, or sign up your client as a dev if the delivery company requires authentication to access the API, so you can send requests to it and receive statuses.

Other than that, you can build a simple tracker with axios in plain javascript where the buyer can paste in the AWB/tracking code for the package, axios sends the request to the delivery company API and returns the status.
Realistically speaking, there might be wordpress plugins that support major delivery companies API's and saves you the work with building the request/receive component, however the first point is still mandatory: get the API of the delivery company and give buyers the possibility to track the shipping.

SIDE NOTE: If using multiple shipping companies and you are building the component from scratch -> Each company has a unique type of shipping code, so you might want to sort the requests by that factor so the buyer won't have failed results.

Collapse
 
3ddpaz profile image
Ed

you may need to tell the person that's delivering the package/product to update when meeting every step in the logistic you've set in order to send the package, (pending, prepearing, on your way, delivered, not delivered, etc)

Collapse
 
kevin_peter_b23467394f9db profile image
Kevin Peter

Hey! I actually worked on a similar project recently for a UK-based courier company called InstaParcel. The client needed a tracking system too, and the best approach really depends on how advanced they want it to be.

For WordPress, you can go with plugins like TrackShip or AfterShip if you're using WooCommerce. But if it's a custom delivery flow, you might need to set up your own tracking logic — like generating tracking IDs and updating statuses through a dashboard. That’s what we ended up doing for InstaParcel, and it worked out well. The key is to keep it simple for the user: just a box to enter the tracking ID and get real-time updates.

If you’re stuck between plugin vs. custom build, feel free to ask — happy to share more!