问题描述
1。您是否必须URLEncode自定义参数的值?
1. Do you we have to URLEncode the value of custom parameter?
2。如果跟踪网址模板中引用的自定义参数不存在,是否会替换为空字符串?
2. If the custom parameter referenced in the tracking URL template does not exist, will it get replaced with an empty string?
例如,
如果跟踪网址模板是 http://tracker.example.com/?season= {_season}& u = {lpurl}
其中最终网址为http:// www.example.com。
where final URL is http://www.example.com.
如果"季节"没有自定义参数,那么生成的重定向网址会是什么?
If there's no custom parameter for "season", what would be the resulting redirect URL?
是否为http ://tracker.example.com/?season =& url = http%3A%2F%2Fwww.example.com?
Is it http://tracker.example.com/?season=&url=http%3A%2F%2Fwww.example.com?
或者是http://tracker.example。 com /?season = {_ season}& url = http%3A%2F%2Fwww.example.com?
Or is it http://tracker.example.com/?season={_season}&url=http%3A%2F%2Fwww.example.com?
谢谢!
推荐答案
对于#1我们不这样做如果自定义参数包含特殊字符,则需要进行编码。
For #1 we don't do any encoding so you will need to encode if the custom parameter contains special characters.
For如果customer参数不存在,我们用空字符串替换#2。例如,替换"season = {_ season}"将变为"season =",如果在交付时间内无法解析自定义参数"_season"。
For #2 we substitute with an empty string if the customer parameter does not exist. For example after substitution "season={_season}" will become "season=", if custom parameter "_season" cannot be resolved during delivery time.
我希望这有帮助!
Eric
这篇关于对CustomParameter的澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!