appEventData, for our data layer. Below is a code snippet to establish the data layer.
appEventDataarray if it exists, and create it if it does not exist.
console.log(window.appEventData)as shown below to see what the data layer looks like after these two pushes.
eventkey on the event object that is to be pushed onto the data layer.