How to track where order is coming from when using Buy button

We created a Buy Button (with a collection) for a client who would then share that with their clients to post on their websites, and we need to be able to somehow tag the order so we know it comes from a particular client.

For example, lets say our client makes hammers (just an example) and then shares the Buy button with collection with “Hardware Store A” who puts it on their site. If someone shops at Hardware Store A and orders a hammer, we need to be able to pull all Hardware Store A’s orders that came in each month and provide a credit to that store for each order they sold.

There could be Hardware Store B, C, D, etc…so we need to be able to create a way to track which orders come from which of them, is there a way to do this?

Have you done google analytics?

I didnt think of google analytics for this, no. Would you be able to track it using GA?

It help’s track your sales and where it come from as well as your traffic.

Once you integrate it to your store, it will show the needed report