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

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

最近更新时间2024.02.27 11:47:19

首次发布时间2024.02.27 11:47:19

事件及属性

需要结合微信公众号后台的事件接口文档:
事件推送: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_scene

string

subscribe_scene

qr_scene

string

qr_scene (仅扫码关注时有值)

qr_scene_str

string

qr_scene_str (仅扫码关注时有值)

wechat_unsubscribe

公众号取关

对应微信事件unsubscribe

wechat_scan

公众号扫码

qr_scene

string

qr_scene (仅扫码关注时有值 )

qr_scene_str

string

qr_scene_str (仅扫码关注时有值 )

wechat_location

上报地理位置

latitude

string

latitude (对应微信事件LOCATION )

longitude

string

longitude (对应微信事件LOCATION )

precision

string

precision (对应微信事件LOCATION )

wechat_menu_click

微信菜单点击

key

string

EventKEY (对应微信事件CLICK/VIEW )

wechat_text_message

给公众号发文本消息

message_type

string

MsgType

message_id

numberic

MsgId

content

string

Content

wechat_image_message

给公众号发图片消息

message_type

string

MsgType

message_id

numberic

MsgId

media_id

string

MediaId

pic_url

string

PicUrl

wechat_voice_message

给公众号发语音消息

message_type

string

MsgType

message_id

numberic

MsgId

media_id

string

MediaId

wechat_video_message

给公众号发视频消息

message_type

string

MsgType

message_id

numberic

MsgId

media_id

string

MediaId

thumb_media_id

string

ThumbMediaId

wechat_shortvideo_message

给公众号发短视频消息

message_type

string

MsgType

message_id

numberic

MsgId

media_id

string

MediaId

thumb_media_id

string

ThumbMediaId

wechat_location_message

给公众号发位置消息

message_type

string

MsgType

message_id

numberic

MsgId

location_x

string

Location_X

location_y

string

Location_Y

scale

string

Scale

label

string

Label

wechat_link_message

给公众号发链接消息

message_type

string

MsgType

message_id

numberic

MsgId

title

string

Title

description

string

Description

url

string

url

用户属性

属性名

属性值类型

属性说明

对应的微信用户字段

属性说明

{微信appID}.wechat_openid

openid

作为web_id

wechat_language

string

用户语言(微信)

language

{微信appID}.wechat_subscribe_time

string

subscribe_time

将关注时间作为用户的user_register_time,牵扯到历史数据导入

{微信appID}.wechat_unionid

string

UnionID

unionid

{微信appID}.wechat_remark

string

微信备注

remark

{微信appID}.wechat_tagid_list

list

微信用户标签id

tagid_list

将在微信中给用户打的标签,作为用户的list属性: wechat_tagid_list:保存微信用户标签id列表 wechat_tag_list:保存微信用户标签名 其中tagid到标签名称的转换参考这个接口

{微信appID}.wechat_tag_list

list

微信用户标签

同上

同上

{微信appID}.wechat_groupid

string

groupid

同上

{微信appID}.wechat_qr_scene

string

扫码相关

qr_scene

{微信appID}.wechat_qr_scene_str

string

扫码相关

qr_scene_str

{微信appID}.wechat_subscribe_scene

string

微信关注来源

subscribe_scene

touch_point

string

公众号appid

公众号appid

web_id

string

openid作为webid计算来源(可以切换为unionid)

openid/unionid