
Here’s a simple automation workflow I recently built to track WooCommerce store activity and log structured data into Google Sheets — along with sending a notification to the admin.
When the order status is marked as Completed, the code will work.
I have used the following blocks
1) Webhook block — Receives structured data from the WooCommerce site
2) Split out — Separates product line items for better analysis
3) Send a Message —Sends a formatted notification to admin
4) Append row in a sheet – it will save those infos in google sheet
The code I had to use in functions.php in WordPress theme





