Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8251667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:18:41+00:00 2026-06-08T00:18:41+00:00

I’ve been trying to substitute for a deprecated method which was in the OMS

  • 0

I’ve been trying to substitute for a deprecated method which was in the OMS for 6.4 which is “TriggerEvent”. I now get the following error with the following code. in the new DMS 6.5. I’m not sure what’s the correct new method.

var tracker = Sitecore.Analytics.Tracker.Visitor.CurrentVisit.CurrentPage;
if (tracker != null)
{
    string dataXml = Review_Module.sitecore_modules.Review_module.Classes
         .AnalyticsHelper.FillDataField(new string[]
              {
                 "Title", title, "Description", description, "Rate", rate
              });

    PageEventData eventData = new PageEventData("Review");
    eventData.Data = dataXml;
    VisitorDataSet.PageEventsRow pageEventsRow = Sitecore.Analytics.Tracker.CurrentPage.Register(eventData);
    Sitecore.Analytics.Tracker.Submit();

Error

[PageEventDefinitionNotFoundException: The page event definition Review could not be found.]
   Sitecore.Analytics.Data.DataAccess.DataSets.PagesRow.Register(PageEventData data) +170
   Sitecore.Analytics.Data.DataAccess.DataSets.PagesRow.Register(String name, String text, String dataKey, String data) +127
   ReviewModule.Nicam_Modules.Review_module.Controls.Review.ReviewClicked(Object sender, EventArgs e) +808
   System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Working Code in 6.4 OMS

 string dataXml = Review_Module.sitecore_modules.Review_module.Classes.AnalyticsHelper.FillDataField(new string[]
       {
          "Title", title, "Description", description, "Rate", rate
       });
       tracker.CurrentPage.TriggerEvent("Review", "Review: \"" + Sitecore.Context.Item.Name + "\"", string.Empty, dataXml);
       tracker.Submit();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:18:43+00:00Added an answer on June 8, 2026 at 12:18 am

    Ok, I finally had a chance to get back here and update this post. I was able to get this working in 6.5. Not sure if they are going to update the module or if they have plans to.

    Firstly,
    I had to remove the call to the TriggerEvent method. As well,the AnalyticsTracker no longer exists. It now uses PageEventData and Sitecore.Analytics.Tracker.CurrentPage;

    var tracker = Sitecore.Analytics.AnalyticsTracker.Current;
    if (tracker != null)
    
    {
    
    string dataXml = Review_Module.sitecore_modules.Review_module.Classes.AnalyticsHelper.FillDataField(new string[]
    
    {"Title", title, "Description", description, "Rate", rate});
    
     tracker.CurrentPage.TriggerEvent("Review", "Review: \"" + Sitecore.Context.Item.Name + "\"", string.Empty, dataXml);
     tracker.Submit();
    
    }
    

    And replace it with:

    var tracker = Sitecore.Analytics.Tracker.CurrentPage;
    
    if (tracker != null)
    
    {
    
     string dataXml = Review_Module.sitecore_modules.Review_module.Classes.AnalyticsHelper.FillDataField(new string[]
    
    {
     "Title", title, "Description", description, "Rate", rate
    });
    
     PageEventData eventData = new PageEventData("Review");
    
     Guid Gu = new Guid();
    
     eventData.Text = "Review: \"" + Sitecore.Context.Item.Name + "\"";
     eventData.DataKey = String.Empty;
     eventData.Data = dataXml;
     eventData.ItemId = new Guid(Sitecore.Context.Item.ID.ToString());
     Tracker.CurrentPage.Register(eventData);
     Tracker.Submit();
    }
    

    Also, had to update the SQL for the reviews that were posted for UI public view.

    From:

     //var sql = @"select {0}PageEvents{1}.Data from {0}PageEvents{1} inner join {0}Pages{1} on {0}PageEvents{1}.PageId = {0}Pages{1}.PageId
     //inner join {0}PageEventDefinitions{1} on {0}PageEventDefinitions{1}.PageEventDefinitionId = {0}PageEvents{1}.PageEventDefinitionId
     //where {0}Page{1}.ItemId = @itemId
     //and {0}PageEventDefinitions{1}.Name = 'Review'";
    

    To:

     var sql = @"select {0}PageEvents{1}.Data from {0}PageEvents{1}
     where {0}PageEvents{1}.ItemId = @itemId
     and {0}PageEvents{1}.[Text] LIKE 'Review:%'";
    

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I am trying to understand how to use SyndicationItem to display feed which is
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I'm trying to select an H1 element which is the second-child in its group
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I would like to run a str_replace or preg_replace which looks for certain words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.