We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
APM does not support new apps that run on the Android, iOS, and web platforms.
AppGallery Connect GuidesAPMiOSConfiguring a URL Pattern

Configuring a URL Pattern

APM can automatically cluster similar network request data. For each request, APM checks whether the URL of the network request matches a default URL pattern. If so, the network request is automatically clustered. You can query clustering data on the Network analysis page.

If no default URL pattern can meet your requirements, perform the following steps to customize one.

Adding a URL Pattern

  1. Sign in to AppGallery Connect and click Development and services.
  2. Click your project card and select the app for which you want to configure a URL pattern from the app drop-down list on the top.
  3. Go to Quality > APM.
  4. Click Configuration.

  5. Click Add, enter a URL pattern, and click Save.

    When setting a URL pattern, you can:

    • Enter a specific URL for exact match.
    • Use * to match any string in a single path.
    • Use ** to match any path suffix.
    • Use *.xxx to match strings of a certain type.
    • Not use * and ** in the same path segment.
    • Use ** and *.xxx at the end of a path segment.

    The clustering result is displayed on the Network analysis page. The following are URL pattern examples.

    Expand

    URL Pattern

    URL

    www.baidu.com/*

    www.baidu.com/abc

    www.baidu.com/bcd

    example.com/abc/**

    example.com/abc/abc

    example.com/abc/bcd

    example.com/*/animal/**

    example.com/abc/animal/acd/bc

    example.com/bcd/animal/acd

    example.com/cde/animal/cde

    example.com/abc/*.jpg

    example.com/abc/ASDAS123.jpg

    example.com/abc/ABCDED1D.jpg

Adjusting the Priority of a URL Pattern

Click Up, Down, Top, or Bottom, to adjust URL pattern priorities, and click Save order.

Modifying a URL Pattern

Click Edit next to a URL pattern, modify the URL pattern, and click Save.

Deleting a URL Pattern

  • Batch deletion: Select multiple URL patterns to be deleted and click Delete.
  • Deletion of a single record: Click Delete in the Operation column of the URL pattern to be deleted.

Testing a URL Pattern

Click Test in the Operation column of a URL pattern, enter the test URL, and click Test to check whether the URL can be matched by the URL pattern.

Search in Guides
Enter a keyword.