[ https://issues.apache.org/jira/browse/UNOMI-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Sinovassin-Naïk closed UNOMI-742. ------------------------------------------ Resolution: Fixed > Remove useless listener > ----------------------- > > Key: UNOMI-742 > URL: https://issues.apache.org/jira/browse/UNOMI-742 > Project: Apache Unomi > Issue Type: Bug > Components: unomi-tracker > Affects Versions: unomi-tracker-1.1.0 > Reporter: Jonathan Sinovassin-Naïk > Assignee: Jonathan Sinovassin-Naïk > Priority: Major > Fix For: unomi-tracker-1.2.0 > > > When calling the function registerOptimizationTest, a listener on > DOMcContentLooaded is added to call _dispatchJSExperienceDisplayedEvent to > register the event to the displayedEvent. > This listener is not necessary as the event is registered in > wem.digitalData.events trough the _registerEvent function and the function > _dispatchJSExperienceDisplayedEvents is already called when the tracker > starts to register the variants with to the events in wem.digitalData.events. > > With the current behaviour, the variant is stored twice. By removing the > listener in theregisterOptimizationTest, it won't be the case anymore -- This message was sent by Atlassian Jira (v8.20.10#820010)