# PC版とSP版画面の切り替え方法

PC向けページとSmart Phone向けページで同一URLを使用しており、\
アクセスして来たユーザーのデバイスのユーザーエージェント（以下、UA）を見て、画面を出し分けているとします。

\
Ptengineでは、計測対象の画面をそのまま呼び出して、ボタン等を選択し、\
HTMLソースに変更を加えることなく、イベント計測の設定を行うことができます。\
この設定を行う際に、デフォルトでは、PC向け画面が呼び出されます。

Smart Phone向けページにしか表示されないボタンを計測したい場合、\
ブラウザのUAを偽装してSmart Phone向け画面を呼び出すことで、計測設定を行うことができます。\
これにより、PC向けページとSmart Phone向けページで同一URLを使用している場合でも、HTMLソースに変更を加えることなく、イベント設定を行うことが可能となります。

<figure><img src="/files/dXTjk3TQbgCcko8IdaQE" alt=""><figcaption></figcaption></figure>


---

# 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/start-guide/pc-sp-switch.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.
