# 同じ種類のボタンを1つのイベントとして合算する方法

特集ページやクッションLPでは、コンバージョン率を向上させるために、同じ種類のボタンを複数設置することがよくあります。\
ここでは、これらのボタンを一括で集計する方法を、具体的な事例を交えてご説明いたします。

例：\
下記のような「買い物かごに追加」ボタンのクリック数をイベント計測で計測したいとします。

`<a href=”class=”add_basket” data-ItemID=”STB64889″>買物カゴに追加</a>`\
`<a href=”class=”add_basket” data-ItemID=”DTB99057″>買物カゴに追加</a>`\
`<a href=”class=”add_basket” data-ItemID=”WTP99756″>買物カゴに追加</a>`

上記3点の記述は、「data-ItemID=」の値が異なるため、上記のうちの一つ、

`<a href=”class=”add_basket” data-ItemID=”STB64889″>買物カゴに追加</a>`

をイベント取得のソースとして設定すると、1つの商品分のボタンの計測しかできません。

そこで、イベント設定の管理画面で、「data-ItemID=”XXXXXXXX”」という部分を除外すると、\
「data-ItemID=」の値に関わらず、「買物カゴに追加」ボタンのクリック数を計測することが可能になります。

![](/files/DyF34geahgu7RBkm3Uf0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helps.ptengine.com/faq/insight-setting/event-merging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
