Author: TabPan

Taro has introduced Tencent’s Micro program zero trace embedding ability to provide developers with true zero development eight zero trace embedding ability and custom embedding ability. Contains a small program start, display, hide, page browsing, leave, share, drop-down refresh, pull the bottom of the eight automation buried point on ability and search, commodity attribution and other customized buried point, guide and business analysis, live analysis, analysis ability, can let you of the small program based on WeChat ecological, multi-touch series full scene, global business insight into implementation.

With the end of demographic dividend, user growth is facing a bottleneck period. How to find a new growth point has become a problem faced by enterprise development. Wechat, as a social giant in China, has huge traffic, and its natural social attributes provide a good ecological environment for business realization. As the strategic focus of wechat ecology, small programs have great potential. According to the latest data, the daily active users of small program more than 400 million, a total of 800 billion transaction volume, more and more enterprises and teams into the small program development team.

There are many teams that develop small programs, but the actual results are very different. Every developer needs to pay attention to how to achieve rapid growth of small applications and bring social scale into full play.

As Tencent’s official wechat ecosystem data analysis and data application platform, Tencent Has provided developers with traffic data monitoring, channel evaluation, user insight, business diagnosis, precision marketing and other capabilities to guide operational decisions.

Currently, Taro and Tencent Have reached an official cooperation. Taro developers can connect all scenes and multiple touch points in wechat to achieve global data insight through zero-development traceless embedding ability and custom embedding ability.

One key installation, realize true zero development buried point

In order to make it easier for developers to access and experience the ability of seamless embedding points, Tencent Zhulu and Taro think from multiple perspectives and break the boundary. They optimize the Taro command line, Taro template, several small program SDK and data flow link from multiple perspectives, adjusting 11 vertical data flow links and opening up four stages of data access. 13 links, shortening the data access experience from 3-5 days to 10 minutes. Finally, a zero-to-one data burial experience with zero development and zero configuration is presented to developers.

Tencent has & Taro cooperation in the development of micro channel small program template, can quickly through the command line one key installation, without any development can have small program start, show, hide, page browsing, page leave, share, pull down refresh, pull up and touch the bottom of eight automatic buried point ability. For the existing small program, Tencent has also provided a plug-in can be automated analysis, the introduction of SDK, can achieve zero development of the introduction of SDK, so that small program developers from the tedious buried point development out of the direct introduction of basic buried point function.

Flow diagram

Taro* has a number of power to help the global data analysis

After several access, developers can view traffic indicators, channel sources, user trends, crowd portraits, public account live broadcast and other data dimensions in the platform, understand the current operation status of small programs, to achieve data-driven growth.

At the same time, in addition to the basic business indicators, We also provide product analysis and recommendation, precision marketing, crowd recommendation and other high-level capabilities, if necessary, you can also contact [email protected] to apply.

How to use

1. Create a quick experience guide for small programs

Need to upgrade Taro to 2.x or 3.x

  1. taro init myApp
  2. choosedefault-youshuThe template
  3. npm run dev:weapp
  4. The micro program developer tool console can see the eight behavior logs reported
  5. accessDocs.qq.com/form/fill/D…Request several data view permissions

    Through the above process, your micro channel mini program has the experience ability of 8 user behavior buried points. After the experience is completed, you only need to replace the Token and micro channel mini program APPID, and you can have the official version of the function. You can obtain an official account from docs.qq.com/form/fill/D…

2, existing small programs have several SDK access

1. Install

  • Install the SDK through NPMnpm i sr-sdk-wxapp
  • Import the SDK in app.jsximport sr from 'sr-sdk-wxapp'

2. Add a trusted domain name

Log in to wechat public platform, enter < development >< Development Settings >< server domain name >, and add https://zhls.qq.com as the legitimate domain name of Request.

In the development environment, there is SDK version check, so the message https://sr-home-1257214331.cos.ap-guangzhou.myqcloud.com is not in the list of valid request domain names, you can set not to verify the domain name.

3. Init Initialization

init(options: object)

Configure interfaces to tweak the SDK’s base mechanics. It should be called before App() is called.

The first call initializes the SDK, and the second call overwrites the previously passed configuration, which can be called multiple times.

The name of the type mandatory describe
appid string Y Wechat applets appId
token string Y After the access application is approved, there are several certificate strings provided
usePlugin bool Whether applet plug-ins are used. Default: false
debug bool Whether to print logs. The default value is false
openSdkShareDepth bool Whether to enable the link sharing record function. The default value is false. After the function is enabled, the user sharing link A->B->C->D is recorded
serverUrl string If the token is passed as a custom background interface, the default value is:zhls.qq.com/api/report’
trackApp bool Whether to enable automatic tracking of APP exposure events (such as app-onluanch). The default value is true
proxyPage bool Whether to enable automatic proxy Page. The default value is false. Sr. page can be used instead of page(sr.page(options)) for browse, leave and share events reported by SDK.
autoStart bool The default value is false. Open_id cannot be automatically obtained. You need to manually invoke the sr.startReport method after the login service to enable automatic start reporting

Example 4.

Import sr from 'sr-sdK-wxapp' sr.init({/** ** count -ka 'access test' assigned app_id */ token: 'bi72fccC7184ef4xxx ', /** ** wechat appID, starting with wx */ appID: 'wx195745e8e342bxxx', /** * If a small program plug-in is used, set it to true */ usePlugin: false, /** * Enable the printing of debugging information. The default is false */ debug: True, /** * Recommended enable - enable automatic proxy Page, Sr. page(options) is used instead of page(sr.page(options)). ProxyPage: true */ proxyPage: true, /** * Recommended enable - Enable automatic component proxying, default false * SDK is responsible for reporting browse, leave, share and other events */ proxyComponent: OpenSdkShareDepth: true, // You are advised to enable - Element event tracking to automatically report element events. Tap, change, longpress, confirm autoTrack: true, })Copy the code

Learn more about Tencent’s number of non-trace embedded point SDK, support wechat native small programs, Taro, MPvue, WePY, uni-app: mp.zhls.qq.com/youshu-docs… For more information about Taro X Tencent: taro-docs.jd.com/taro/docs/y…


Welcome to the bump Lab blog: AOtu.io

Or pay attention to the bump Laboratory public account (AOTULabs), push the article from time to time: