Here’s another quick code snippet for you all, this time to keep track of where a customer initially came to the site from when they make an order via WooCommerce.
This is great for tracking any marketing efforts that you are doing and a quick and easy way of seeing how your users are interacting with your site.
The data will then appear in the meta boxes of an order, so you can find out where they came from.