> For the complete documentation index, see [llms.txt](https://growingio.gitbook.io/miniprogram/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://growingio.gitbook.io/miniprogram/metric-definition.md).

# 指标圈选定义

### 事件定义

在SDK 采集数据和逻辑一节中，我们介绍了小程序 SDK [无埋点采集事件](/miniprogram/tag-management/sdk-logic/autotrack.md)的逻辑，支持采集 visit、page、action 事件。针对无埋点采集的行为事件，为了后续能在分析功能如事件分析、漏斗分析、留存分析等中使用，同 Web 和移动的指标定义一样，GrowingIO 也提供了小程序指标圈选定义功能。使用小程序圈选定义指标，可以快速建立小程序上的指标体系，并以此构建分析体系，即时进行数据监测和分析。

通过圈选定义的指标，分成两类：

* 页面指标
* 行为指标

登录到 GrowingIO 的项目里，从菜单上的圈选->小程序即可进入到指标圈选定义功能。

![小程序圈选入口](/files/-LFBpgw0O2MpmPuvN-ci)

### 实时调试

不清楚关注页面的页面路径、按钮的函数名称？可以进入实时调试模式，根据交互操作，查看页面路径和点击元素的函数名称。详情请见[小程序数据校验Debugger](/miniprogram/tag-management/xiao-cheng-xu-shu-ju-xiao-yan-debugger.md)。


---

# 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://growingio.gitbook.io/miniprogram/metric-definition.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.
