# Data reporting and testing
# Product uses
We Analytics - Digital Management module creates events and reports data, which can be used for We Analytics event analysis, custom kanban and other functions.
# Fundamental Concepts
Events: Events analytics, business analytics, custom badges, performance quality, etc. that use We Analytics require data that can be used, and data is stored and analyzed on an event model, so events need to be defined before they can be used.
Currently, "events" are divided into custom events and officially defined events. A custom event is a merchant-created event that supports various machining operations. Officially defined events include performance events, operations events, where performance events do not support editing, and operations events can add attributes and delete attributes that they add themselves.
Attribute: An attribute is a variable value of an event, and is an analytical indicator in the analysis functions of event analysis, business analysis, etc.
# Instructions
Step 1: Configure event information
After landing on We Analysis, find the number management - report management from the sidebar, enter the "meta-event" page, click on "add report" to configure the event.
In the configuration page, fill in the event name, event ID, and other event essential information, and add properties. Properties are variables for monitoring and analysis. Properties can be selected for existing properties, and can be created when an event is created. Attributes can be created and edited in Data Management-Report Management-Properties, and the original values of attributes can be converted into translated values in Data Management -Report Management dictionaries to improve data readability.
In addition to configuring events through the page, you can also configure batch add (JSON add) new events in the page using meta events.
Step 2: Add the escalation code to Weixin Mini Program
After you have completed the event configuration, in Data Management - Report Management - Metadata, view an event and click on "Basic Information." In the Report Guidelines, you can copy the code. Again, through the developer tools, add code where needed. Step 3: Report the test
This step is not necessary, but it helps the developer to check the availability of the configured event before the code is officially released.
Before testing, you need to confirm that Weixin Mini Program (developer, experienced, and official) has added the reporting code, then select the WeChat number that needs to be tested, click start test, and the test WeChat account performs the corresponding event operation on the phone.After about a minute, the most recent 1,000 test records can be seen. Every piece of data has a test result and an error is reported for error data.
Step 4: Publish the code
In the developer tools, publish the code. Event reporting can be done through the interface wx.reportEvent provided by We analysis.
Now, you can select these events in the event analysis of the We analysis for various custom analysis such as funnel, retention, and so on.