# 顧客タグが付与されたら自動的にメタフィールドに格納されるようにしたい

**URL:** <https://community.shopify.com/t/topic/249454>\
**Category:** 技術的なQ＆A\
**Created:** [September 11, 2023, 9:35am UTC](https://community.shopify.com/t/topic/249454 "2023-09-11T09:35:29Z")\
**Posts on this page:** 3\
**Page:** 1

## AI-generated summary

特定商品の購入者に顧客タグを自動付与する際、そのタグをメタフィールドに自動格納したいという質問。

**背景:**
- Easy Taggingアプリで顧客タグを付与中
- 連携システムでメール配信を行うため、メタフィールドへの格納が必要
- 顧客絞り込み時にタグがメタフィールドに入っていないことが課題

**解決方法:**
Shopify Flowを使用して実現可能。具体的な設定は:
1. トリガー:「お客様タグが追加されました」を使用
2. アクション:「お客様のメタフィールドを更新する」を使用
3. 条件設定:
   - 「Customer tags added」でタグ条件を指定(Tags item "Equal to" ○○)
   - 「Update customer metafield」でメタフィールドを更新

**結果:**
質問者は無事に設定完了し、問題解決。

<div class="post-metadata">

**Author:** ![shinoda](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@shinoda](https://community.shopify.com/u/shinoda)\
**Post date:** [September 11, 2023, 9:35am UTC](https://community.shopify.com/t/topic/249454/1 "2023-09-11T09:35:29Z")

</div>

ある商品を購入された方に特定の顧客タグを付与しております。

現在はEasy Taggingというアプリを使用して上記の顧客タグ付与を行っている状況です。

上記アプリで顧客タグが付与されたら自動的にメタフィールドに格納されるようにしたいのですが、そういったことは可能なのでしょうか？

諸事情によりshopifyとあるシステムを連携しており、そのシステム上でメールを配信したりしています。

そのシステム上で顧客を絞り込む際、メタフィールドに顧客タグが入っていないと絞りこめないとのことで、このような質問をした背景です。

過去に別件で顧客タグを付与した際はShopifyFlowを使用したので、ShopifyFlowも使用可能です。

なにか方法をご存じの方がいらっしゃいましたらご教示いただけますと幸いです。

よろしくお願いいたします。

---

<div class="post-metadata">

**Author:** ![kyoshi\_Tsun](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/kyoshi_tsun/32/1503_2.png) [@kyoshi\_Tsun](https://community.shopify.com/u/kyoshi_Tsun)\
**Post date:** [September 11, 2023, 11:53pm UTC](https://community.shopify.com/t/topic/249454/2 "2023-09-11T23:53:33Z")

</div>

はじめまして

株式会社Tsunの吉谷と申します。

_ **過去に別件で顧客タグを付与した際はShopifyFlowを使用したので、ShopifyFlowも使用可能です。** _

Shopify Flowが使用可能であれば、トリガー「[お客様タグが追加されました](https://help.shopify.com/ja/manual/shopify-flow/reference/triggers/customer-tags-added)」とアクション「[お客様のメタフィールドを更新する](https://help.shopify.com/ja/manual/shopify-flow/reference/actions/update-customer-metafield)」を利用することで実現できると思います。

**参考情報**

[Shopify Flow｜Shopify ヘルプセンター](https://help.shopify.com/ja/manual/shopify-flow)

[お客様タグが追加されました｜Shopify ヘルプセンター](https://help.shopify.com/ja/manual/shopify-flow/reference/triggers/customer-tags-added)

[お客様のメタフィールドを更新する｜Shopify ヘルプセンター](https://help.shopify.com/ja/manual/shopify-flow/reference/actions/update-customer-metafield)

[Shopify Flowとは？｜メリットやデメリット設定方法を紹介](https://tsun.ec/blogs/articles/about-shopify-flow)

以上になります。

ご参考になりましたら幸いです。

---

<div class="post-metadata">

**Author:** ![shinoda](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@shinoda](https://community.shopify.com/u/shinoda)\
**Post date:** [September 12, 2023, 9:05am UTC](https://community.shopify.com/t/topic/249454/3 "2023-09-12T09:05:33Z")

</div>

無事に設定ができました！

ご教示いただきましてありがとうございました。

※忘れないようにメモ※

ーーーーーーーーーーー

①「Customer tags added」で条件を入力

Tags item “Equal to” ○○にするとエラーになる

Tags item “includes” ○○にするとエラー解消

②「Update customer metafield」にて設定

上記で設定いたしました。

ーーーーーーーーーーー
