指定网址

支持通过对话链接 URL 参数传递当前页面网址、来源页网址、对话说明等信息,便于客服端精准识别访客访问路径,常用于投放归因分析、客服上下文识别等场景。

使用前提:本接口面向具备前端开发能力的技术人员,调用前请确保已获取客源多对话链接基础 URL(即含 appid 参数的链接)。
接口能力概览

当前页面:tp=encodeURIComponent(str)

来源页:tr=encodeURIComponent(str)

对话说明:ce=对话说明

位置:对话链接 URL 查询参数

参数说明

参数 类型 说明
tp string 当前页面网址,需 encodeURIComponent 编码
tr string 来源页网址,需 encodeURIComponent 编码
ce string 对话说明,便于客服快速理解访客咨询场景

示例代码

当前页面网址

// tp 参数
http://www.域名.net/chat?appid=######&tp=encodeURIComponent(str)
                    

来源页网址

// tr 参数
http://www.域名.net/chat?appid=######&tr=encodeURIComponent(str)
                    

对话说明

// ce 参数
http://www.域名.net/chat?appid=######&ce=对话说明
                    
相关文档: 传递访客资料(用于访客身份传递)、自定义消息(用于对话内容预填)
本篇目录