When viewing a list of orders on Shopify Admin, there are filter views that you can create based on a certain filters. How can I write the tag value so that I can include orders that are tagged with “1st purchase” and ''Reactivation purchase"?
Topic summary
Goal: create and save Shopify Admin order views using multiple tags (include and exclude), and clarify AND/OR behavior.
What worked:
- Include either tag (OR): enter in the main search bar: tag:‘1st purchase’ OR tag:‘Reactivation purchase’. Place queries in the search bar, not the filter field. Queries are case sensitive and sensitive to extra spaces.
- Exclude tags: use -tag:‘tag1’ AND -tag:‘tag2’ (or NOT tag:“example”). This was confirmed by multiple users.
Saving searches (latest updates):
- Some users reported Save removes what’s typed in the search bar, keeping only sidebar filter criteria.
- A later workaround (Oct 2024) to save an ALL/AND multi-tag view: in the search bar use comma-separated, quoted tags after tag:, e.g., tag:“first”,“second”,“third”. Save the view; Shopify stores it as a search query (not as a Tag filter), but it persists.
- To exclude multiple when saving: comma list with each prefixed by -, e.g., -“tag1”, -“tag2” (without tag:).
Open items:
- Inconsistent ability to save search-bar queries persists for some users.
- Combining Shopify Protect: Protection Active with tags works as AND; showing results where at least one applies (OR) was not confirmed.
Notes: Screenshots were used to show the correct search bar location.
You have input the keyword in a wrong place. Please try to input the keyword (1st purchase and Reactivation purchase ) in the search box.
the place I marked it out like below.
try this, it should work.
tag:‘1st purchase’ OR tag:‘Reactivation purchase’
Awesome, it works now.
Thanks for reply!
Hi @Sonya_2025 Do you think it is possible to use this method also for orders THAT DO NOT HAVE CERTAIN TAGS?
Your method works by sorting orders with certain tags, but we tried to sort orders that do not contain certain tags without_tag:‘1st purchase’ or notag:‘1st purchase’ But it does not work. Do you have any idea about this please? ![]()
Hi @SebFrenchy , the way to do this is to have AND and ‘-’ sign.
It would look something like this.
tag:‘Tag you wan’ **AND -**tag:‘Tag you don’t want’
Hey @SebFrenchy
Yes, it is possible to achieve your needs.
you can try below query string to filter not include tag1 and also not include tag2.
-tag:‘1st purchase’ AND -tag:‘1st purchase’
Hope this helps
It works perfectly! Thank you very much for the help. ![]()
This does not work for me. All ‘accepted’ solutions in this thread are not functioning.
Hi Sonya_2025
This is exactly what I need and worked fine, but can’t this search be saved?
I think the search can be saved. There is a ‘Save as’ button behind the search box
Hi @cpost
It is case sensitive and also remove all unnecessary spaces. Hope this helps.
Hi,
When I click save, any search criteria provided in the search bar removed. and the search saved only with conditions provided by filters list.
Wanted to comment on this thread as the accepted solution and all other comments are just plain incorrect.
The original post asks how to save a filter (not just query) that includes multiple tags in combination (ie: ALL, not ANY; AND not OR)
Shopify seems to, at least currently (October 2024) not handle this very cleanly; but it is possible.
Write in your query: tag:"firsttag","second tag", "third (tag)", "fourth:tag (and) (or)", "fifth-tag"
Click save.
Of note - you’ll see that these example tags are particularly complex with the parentheses, dashes, spaces, and colons. I recommend wrapping all your tags in quotes just to make sure it’s processed correctly as otherwise the search query may not handle it well.
At this point; I would recommend to go ahead and find an order with all the tags you want to include as an example (Or add to them to make sure). And then I would recommend completely closing the tab and re-opening the orders page to make sure nothing is persisting and you can ensure it’s working.
Go ahead and open the filter, and it should be working.
Now, the reason I say this is handled strangely by Shopify is because it does not enter all these into the “Tag” filter - it appears to instead save the search query, so if you go to edit it - it will look like:
But - It works, so no complaints. Hope this helps everyone.
Also, of note; for anyone looking to exclude a tag - the correct process is to either preface it with NOT or - (eg: NOT tag:"example", or -tag:"example")
Further building on this, if you’re looking to exclude multiple tags, it will look similar to my above screenshot just with a - in front of each tag. Note though, that when doing this, in either case, “tag:” is not prefacing the tag.
eg: ,"second tag, “third (tag)”, “fourth:tag (and) (or)”, “fifth-tag”
To exclude, eg: , -“some-tag”, -“some-other-tag”
So I am trying to do a filter for show Shopify protect: Protection Active and also show orders tagged with Shop Pay Installments. Can I do this when I add the tag Shop Pay Installments it will not show both the Shop Pay Installments and the Protection Active.
I don’t see why not. Those are two entirely separate things.
-
Go ahead and select Shop Protect: Protection Active on the dropdown
-
Enter your tag
Your scenario doesn’t sound like it’d be complex. It’ll filter to show all those with the protection active AND that have the tag (Combined both of them; not either or)







