Skip to content

Commit

Permalink
fix: default to empty xdm and data in the alloy payload
Browse files Browse the repository at this point in the history
  • Loading branch information
ramboz committed Jun 25, 2024
1 parent f9ee27f commit 2ed7e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/adobe-martech/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function pushToDataLayer(payload) {
* @param {Object} xdm the xdm data object to send
* @param {Object} [data] additional data mapping for the event
*/
export function pushEventToDataLayer(event, xdm, data) {
export function pushEventToDataLayer(event, xdm = {}, data = {}) {
pushToDataLayer({ event, xdm, data });
}

Expand Down

0 comments on commit 2ed7e54

Please sign in to comment.