# 全埋点介绍

### 设置全埋点采集

控制是否采集用户点击可触控元素。接口如下：

```objectivec
+ (void)setAutoTrackClick:(BOOL)isAuto;
```

* isAuto：开关值，默认为NO关闭，设置YES为开

示例：

```objectivec
//  设置采集全埋点
[AnalysysAgent setAutoTrackClick:YES];
```

Swift示例:

```swift
AnalysysAgent.setAutoTrackClick(true);
```

### 设置全埋点页面黑名单

开发者可以设置某些页面不被全埋点自动采集，自动采集时将会忽略这些页面上的事件。接口如下:

```objectivec
+ (void)setAutoClickBlackListByPages:(NSSet<NSString *> *)controllerNames;
```

* controllers：需要忽略的控制器名称，字符串集合。

示例：

```objectivec
[AnalysysAgent setAutoClickBlackListByPages:[NSSet setWithObject:@"CFHomePageController"]];
```

Swift代码示例:

必须使用 `包名.类名`

```swift
AnalysysAgent.setAutoClickBlackListByPages(["SwiftOnlineShopDemo.CFHomePageController"]);
```

### 设置全埋点控件黑名单

开发者可以设置某些控件触发后不被全埋点自动采集，自动采集时将会忽略这些控件事件的采集。接口如下:

```objectivec
(void)setAutoClickBlackListByViewTypes:(NSSet<NSString *> *)viewNames;;
```

* viewNames：需要忽略的控件名称，字符串集合。

示例：

```objectivec
[AnalysysAgent setAutoClickBlackListByViewTypes:[NSSet setWithObject:@"ANSButton"]];
```

Swift代码示例:

必须使用 `包名.类名`

```swift
AnalysysAgent.setAutoClickBlackListByViewTypes(["SwiftOnlineShopDemo.CFButton"]);
```


---

# 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://arkdocs.analysys.cn/integration/sdk/ios/quan-mai-dian-jie-shao.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.
