Tag products when they are unpublished from the Online Store

When a product is unpublished from the Online Store sales channel, add the tag unpublished-online-store, so products that silently dropped off the storefront are easy to find and ads pointing at them can be paused.

One trigger, built-in Shopify actions only, no other app needed. Nothing in it is specific to a store, so it works as soon as it is imported.

The workflow in Shopify Flow: Tag products when they are unpublished from the Online Store
The complete workflow as it looks in Shopify Flow.

What it needs

  • The app's permission Publications Data Access + Product, Variant & Collection Data Access. See Permissions and data access.
  • Nothing else: turning the workflow on switches the trigger Product Unpublished from Channel on in the app.

Install the Workflow Trigger Extensions app and grant Publications Data Access and Product, Variant & Collection Data Access on its Permissions page. Turning this workflow on switches the trigger on in the app.

Get the workflow

  1. Download the .flow file attached at the bottom of this page.
  2. In your Shopify admin open Flow, click Import and choose the file.
  3. Check the steps, then click Turn on workflow.

The file is an export from Shopify Flow itself. Do not edit it by hand; change the workflow in Flow after importing it.

How it works

  1. Product Unpublished from Channel lists the channels a product was removed from in channels.removed.
  2. The Condition continues when at least one of them is named Online Store.
  3. Add product tags puts unpublished-online-store on the product.

Make it yours

  • Change the channel name to Point of Sale, Shop or a marketplace.
  • Add Send internal email so whoever runs ads can pause them.

Next steps