You need to enable JavaScript to run this app.
导航

微信公众号相关事件和属性

最近更新时间2022.04.18 10:45:03

首次发布时间2022.04.18 10:45:03

事件及属性

需要结合微信公众号后台的事件接口文档:
事件推送:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_event_pushes.html
普通事件:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Receiving_standard_messages.html
其中 wechat_subscribe/wechat_unsubscribe/wechat_scan/wechat_location对应微信事件中的事件推送;其他的对应于普通事件。

事件名事件显示名属性属性值类型对应微信后台的字段
wechat_subscribe公众号关注subscribe_scenestringsubscribe_scene
qr_scenestringqr_scene (仅扫码关注时有值)
qr_scene_strstringqr_scene_str (仅扫码关注时有值)
wechat_unsubscribe公众号取关对应微信事件unsubscribe
wechat_scan公众号扫码qr_scenestringqr_scene (仅扫码关注时有值 )
qr_scene_strstringqr_scene_str (仅扫码关注时有值 )
wechat_location上报地理位置latitudestringlatitude (对应微信事件LOCATION )
longitudestringlongitude (对应微信事件LOCATION )
precisionstringprecision (对应微信事件LOCATION )
wechat_menu_click微信菜单点击keystringEventKEY (对应微信事件CLICK/VIEW )
wechat_text_message给公众号发文本消息message_typestringMsgType
message_idnumbericMsgId
contentstringContent
wechat_image_message给公众号发图片消息message_typestringMsgType
message_idnumbericMsgId
media_idstringMediaId
pic_urlstringPicUrl
wechat_voice_message给公众号发语音消息message_typestringMsgType
message_idnumbericMsgId
media_idstringMediaId
wechat_video_message给公众号发视频消息message_typestringMsgType
message_idnumbericMsgId
media_idstringMediaId
thumb_media_idstringThumbMediaId
wechat_shortvideo_message给公众号发短视频消息message_typestringMsgType
message_idnumbericMsgId
media_idstringMediaId
thumb_media_idstringThumbMediaId
wechat_location_message给公众号发位置消息message_typestringMsgType
message_idnumbericMsgId
location_xstringLocation_X
location_ystringLocation_Y
scalestringScale
labelstringLabel
wechat_link_message给公众号发链接消息message_typestringMsgType
message_idnumbericMsgId
titlestringTitle
descriptionstringDescription
urlstringurl

用户属性

属性名属性值类型属性说明对应的微信用户字段属性说明
{微信appID}.wechat_openidopenid作为web_id
wechat_languagestring用户语言(微信)language
{微信appID}.wechat_subscribe_timestringsubscribe_time将关注时间作为用户的user_register_time,牵扯到历史数据导入
{微信appID}.wechat_unionidstringUnionIDunionid
{微信appID}.wechat_remarkstring微信备注remark
{微信appID}.wechat_tagid_listlist微信用户标签idtagid_list将在微信中给用户打的标签,作为用户的list属性: wechat_tagid_list:保存微信用户标签id列表 wechat_tag_list:保存微信用户标签名 其中tagid到标签名称的转换参考这个接口
{微信appID}.wechat_tag_listlist微信用户标签同上同上
{微信appID}.wechat_groupidstringgroupid同上
{微信appID}.wechat_qr_scenestring扫码相关qr_scene
{微信appID}.wechat_qr_scene_strstring扫码相关qr_scene_str
{微信appID}.wechat_subscribe_scenestring微信关注来源subscribe_scene
touch_pointstring公众号appid公众号appid
web_idstringopenid作为webid计算来源(可以切换为unionid)openid/unionid