插件的配置

时间:2015-07-02 07:48:26

标签: adobe analytics

我尝试在本地模式下使用以下插件:

s.Util.cookieRead https://marketing.adobe.com/resources/help/en_US/sc/implement/util_cookieread.html
s.Util.cookieWrite https://marketing.adobe.com/resources/help/en_US/sc/implement/util_cookiewrite.html

当我输入控制台,即s.Util.getQueryParam时,我收回了看起来文件中的配置没问题的功能。

s.Util.getQueryParam
AppMeasurement.a.Util.getQueryParam(c, b, d)

我怎样才能在插件函数中添加示例

s.campaign = s.Util.getQueryParam("cid");

当我运行我的网站时,我看不到这个插件的任何内容

当我使用

getNewRepeat https://marketing.adobe.com/resources/help/en_US/sc/implement/getNewRepeat.html
plugin it always shows me as New visitor.

我是否应该制作任何特殊配置才能使它们正常工作?

1 个答案:

答案 0 :(得分:1)

// set a session cookie named foo to value 'bar'
s.Util.cookieWrite('foo','bar');

// look for cookie named 'foo' and return value if found, and assign it to prop1
s.prop1 = s.Util.cookieRead('foo');