目录

UrlClusteringOptions

Interface Info

agconnect.analytics.UrlClusteringOptions

Sets URL clustering before the SDK is initialized.

Public Field Summary

Qualifier and Type

Field and Description

boolean

enabled

Indicates whether to enable URL clustering. The default value is false.

boolean

removeProtocol

Indicates whether to remove the protocol. The default value is true.

boolean

removeOrigin

Indicates whether to remove the protocol, domain name, and port number. The default value is false.

boolean

removeAllParams

Indicates whether to remove all values. The default value is true.

object

removeParams

Removes values of specified keys while retaining the keys.

  • removeValuesOnly: indicates whether to remove all values while retaining the keys. This is the default processing method. The default value is true.
  • params: information about the values to be removed.
    • removeValuesOnly: indicates whether to remove values while retaining the keys. This configuration will override the outmost one. The default value is false.
    • position: position of the value to be removed. The options are search, anchor, and both. search indicates the position before the anchor, anchor indicates the position after the anchor, and both indicates the positions before and after the anchor. The default value is search.

boolean

removeAnchor

Indicates whether to remove the anchor. The default value is true.

array

urlPatterns

URL patterns. If the passed URL (screenName passed by pageStart and pageEnd) meets any of the patterns after being processed based on your configuration, that pattern will be reported. You can specify a placeholder in the format of {Placeholder name} for URL patterns. The placeholder can match all characters except those specified by urlSeparators.

string

urlSeparators

Special characters. Default value: :/.?=&#