Hotapp Custom Event statistics for small program statistics

Source: Internet
Author: User

    1. What is Custom event statistics

      Custom events are the highest degree of flexibility in determining the execution of arbitrary events.

Description of Cloud notes used
Want to know the following information

(1) How many people clicked on a new note
(2) How many people clicked save and delete

Then, by adding event statistics to the Bindtap event in the Save button, the message is sent once per click
Backstage by recording the number of messages, you know how many people clicked.
For example, we take a new notebook to an event ID called Addnote.

Add statistics to the Bindtap event that added notes

* Added Note event *   *  /onnewitem:function (event) {     hotapp.onevent (' addnote ')//New Note Statistics Event    Wx.navigateto ({      URL: ".. /create/index "    })  },

Add statistics to the Bindtap event to delete notes

* Delete Note Event    */  ondeleteitem:function (event) {     hotapp.onevent ('  deletenote'// Add notes to the statistics event  },

Add statistics to the Bindtap event that saves notes

* Save Note Events    */  onsaveitem:function (event) {     hotapp.onevent (  'savenote'// Add notes to the statistics event  },

Note: The statistics event ID needs to be added in the background first

Official website:https://weixin.hotapp.cn/document

Hotapp Custom Event statistics for small program statistics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.