【问题标题】:Adding "Internal keywords" in Experiance Profile of Sitecore 8 Analytics在 Sitecore 8 Analytics 的体验配置文件中添加“内部关键字”
【发布时间】:2015-04-23 21:18:19
【问题描述】:

我需要帮助。如何在 Sitecore 8 分析(体验资料 -> 活动 -> 关键字)中添加“内部关键字”? 我尝试在代码中编写关键字:

Tracker.Current.Session.Interaction.Keywords = query;

但在体验资料中我没有找到任何东西!

【问题讨论】:

  • 这和mongo有什么关系?
  • 不是,所以我删除了标签。

标签: c# asp.net-mvc sitecore sitecore8 sitecore-analytics


【解决方案1】:

我也遇到过这个问题。通过添加“搜索页面事件”(标准项 - “/sitecore/system/Settings/Analytics/Page Events/Search”),我可以在 Sitecore 8 的体验配置文件中看到 “内部关键字”我的查看页面。

代码"Tracker.Current.Session.Interaction.Keywords = query;"在我的情况下没有使用。

示例

string query = "Example keywords in field <Keywords>";
Guid searchPageEventGuid = Sitecore.Context.Database.GetItem("{0C179613-2073-41AB-992E-027D03D523BF}").ID.Guid;
Guid view4Guid = Sitecore.Context.Database.GetItem("{D0D0E48C-7DE0-4C95-A994-F5ED00DC9820}").ID.Guid;
var page = Tracker.Current.Interaction.CurrentPage;

page.Register(new PageEventData("My search page event data", searchPageEventGuid)
                {
                    ItemId = view4Guid,
                    Data = query,
                    DataKey = query,
                    Text = query,

                });

“view4Guid” - 这是我的自定义视图页面

结果:

  1. 搜索页面事件在访问视图页面后调用 - “view4”

  2. 内部关键字关键字标签中竞争

【讨论】:

    【解决方案2】:

    搜索页面事件示例确实有效,代码:Tracker.Current.Session.Interaction.Keywords = query; 不需要!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-29
      相关资源
      最近更新 更多