Adding "Internal Keywords" to Experiance Profile Sitecore 8 Analytics

I need help. How do I add "Internal Keywords" to Sitecore 8 Analytics (Experiment Profile → Activity → Keywords)? I tried to write the keywords in the code:

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

      

but I didn't find anything in the experiment profile!

enter image description here

+3


source to share


2 answers


I also ran into this problem. I can read the "Internal Keywords" in the Experiance Sitecore 8 profile by adding "Search Page Event" (the standard element is "/ sitecore / system / Settings / Analytics / Page Events / Search") to my view page.

The code is "Tracker.Current.Session.Interaction.Keywords = query;"

not used in my case.

Example

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" is my custom view page

Result:

  • The search page event is called after visiting the view page - "view4" enter image description here

  • Internal keywords are associated with the keywords tab enter image description here

+4


source


Search page example Event really works and code: Tracker.Current.Session.Interaction.Keywords = query;

not needed!



+1


source







All Articles