> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/troubleshooting-universal-links-in-app-to-app-tracking.md).

# アプリ間トラッキングでユニバーサルリンクの問題をトラブルシュートする

<a href="https://pxa.impact.com/student/activity/1117597?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=tra-350&#x26;utm_campaign=help-center" class="button primary">PXAコースを受講する</a>

Universal Links はOSレベルで検証され、モバイルアプリを開くにはWebリンクのクリックなど、ユーザーが開始した操作が必要です。

#### Universal Links のトラブルシューティング

{% stepper %}
{% step %}

#### **パートナーのアプリからのクリックがユーザーによって発生したクリックであることを確認してください**

リンクが通常のアンカータグではなく、代わりに新しいものを生成する場合 **WebView** （このページ下部の補足を参照してください）。その場合、これはユーザー起点のナビゲーションとはみなされないため、OS は Universal Link を開きません。これが最も一般的なケースです。これを解決するには、Universal Link でアプリを起動するために、WebView（WKWebView、UIWebView、または SFSafariViewController）内の通常のアンカーリンクを検討してください。

ユーザーによって発生していないクリックの他の例としては、URL を検索バーに直接コピー＆ペーストすることや、JavaScript で次を使用してリンクへ移動することがあります `onload()` または `click()`.
{% endstep %}

{% step %}

#### **ユーザーを送信しているページが Universal Links に対応しているか確認してください**

場合によっては、impact.com は、その後のリダイレクト先、通常は広告主ドメインで Universal Links が設定されていることに依存しています。

* たとえば、impact.com のトラッキングドメイン（`goto.advertiser.com`）は次へリダイレクトされます `advertiser.com`。Universal Links は `advertiser.com` ドメインで設定されています。そのため、ユーザーを送信するページで Universal Links が有効になっていることを確認することが重要です。広告主ドメインにある Apple の関連付けファイルを確認することでこれを行えます。
* この例では、 `http://advertiser.com/.well-known/apple-app-site-association`、impact.com のトラッキングドメインの関連付けファイルでは、既定で全サブディレクトリが含まれていることがわかります。

{% hint style="info" %}
**注：** JavaScript リダイレクトが使用されている場合は Universal Links は機能しませんが、HTTP 3xx リダイレクトでは元のユーザーイベントへの参照は保持されます。impact.com ではトラッキングに HTTP 3xx リダイレクトを使用しているため、他の条件が満たされていれば、トラッキングドメインのクリックに続くリンクで広告主アプリが正常に起動します。
{% endhint %}

たとえば、以下の関連付けファイルでは、次の Universal Links が許可されます `advertiser.com/item/123` しかし、次のものは許可されません `advertiser.com` または `advertiser.com/section/furniture`.

```programlisting
{
   "applinks":{
      "apps":[
      ],
      "details":[
         {
            "appID":"A1AAA22BBB.com.advertiser.Advertiser",
            "paths":[
               "NOT /section/*",
               "/item/*"
            ]
         }
      ]
   }
} 
```

{% endstep %}

{% step %}

#### **最初に開く WebView も Universal Links 経由のリダイレクトをサポートしていることを確認してください**

一部の WebView では Universal Links がブロックされ、トラッキングリンクが広告主アプリを開かずに WebView 内で開かれてしまうことがあります。まれではありますが、WebView のナビゲーションポリシーが WKNavigationActionPolicyAllow + 2 に設定されている場合に起こりえます。これにより、WebView は Universal Link を試さずにリンクへ移動してしまう可能性があります。
{% endstep %}

{% step %}

#### **ソーシャルメディアのポリシーを確認してください**

Facebook のような一部のソーシャルメディアアプリは Universal Links をブロックします。この場合、 **モバイルアプリ用インタースティシャル** が役立つ場合があり、これについては CSM に相談することをおすすめします（または [サポートに連絡してください](https://app.impact.com/support/portal.ihtml?createTicket=true)）。impact.com は、ソーシャルメディアアプリからのディープリンクとアトリビューションを改善する方法に積極的に取り組んでいます。
{% endstep %}
{% endstepper %}

#### Apple からのさらなる説明

次を生成した場合 [SFSafariViewController](https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller) , [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview) 、または [UIWebView](https://developer.apple.com/documentation/uikit/uiwebview) Universal Link を処理するオブジェクトを生成した場合、iOS はアプリを開く代わりに Safari で Web サイトを開きます。ただし、ユーザーが埋め込みの SFSafariViewController、WKWebView、または UIWebView オブジェクト内から Universal Link をタップした場合、iOS はアプリを開きます。

Apple の [Support Universal Links](https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html) サポート記事を参照してください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/troubleshooting-universal-links-in-app-to-app-tracking.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
