# wx.reportAnalytics(string eventName, Object data)
with Promise style call: Not supported
Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6
When used in Mini Programs plugins, can be invoked normally, but is not currently displayed statistically
Custom analysis data reporting interface. Before using, you need to create a new event and configure the event name and field in the background custom analysis of Mini Program management.
# parameter
# string eventName
Event name
# Object data
Reported custom data, key For the field name in the configuration, value For the reported data.
# sample code
wx.reportAnalytics('purchase', {
price: 120,
color: 'red'
})