Yijia-Zhou / sci_hotwords

3 stars 0 forks source link

带[来源]参数的小程序码与分享界面生成与监控 #78

Closed Yijia-Zhou closed 1 year ago

Yijia-Zhou commented 1 year ago

大概是每个宣传渠道(用于宣传的文章/视频、不同用户的转发等)分享的小程序码/小程序卡片均带上特定标记参数

在新用户通过这些方式进入小程序时,在数据库中记录其openid和进入渠道

Yijia-Zhou commented 1 year ago

当前需要做的是确定数据格式,在app.onShareAppMessage中加入参数部分,对新用户的进入进行记录

Yijia-Zhou commented 1 year ago

https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/database/add.html

可以把_id直接定义为openid的值,这样已有openid的情况就会无法插入(可能要catch一下相关错误)

Yijia-Zhou commented 1 year ago

场景值列表

Yijia-Zhou commented 1 year ago

https://github.com/Yijia-Zhou/sci_hotwords/pull/70/commits/1bc757c2d24ce60492758cf4e7954214f974f37a https://github.com/Yijia-Zhou/sci_hotwords/pull/70/commits/5b01f43fdf202f9c1934a4df05dfd356900068f4

Yijia-Zhou commented 1 year ago

宣传材料张贴的二维码中的参数情况暂记:

promoID 对应宣传材料
dasheng1 发布于《植物科学最前沿》的……
Yijia-Zhou commented 1 year ago

pages/menu/menu?promo=dasheng1 image

Yijia-Zhou commented 1 year ago

改为在/promote/IDtable.md中进行登记和追踪