I created a custom page event under
/Settings/Analytics/Page events/ and assigned it on a page using the ribbon option under
Analytics -> Attributes.
I want to dynamically get the pageDefinitionId (GUID) of this custom event in code behind when registering the page event and not hard code the GUID.
I tried using
Tracker.Current.CurrentPage.PageEvents but it returns null. Looks like we can get the pageDefinitionId only after page event is registered by