Skip to content

Commit

Permalink
feat: set up websdk and send pageload event
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin committed Jan 12, 2024
1 parent a259e97 commit 89b1190
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solutions/scripts/analytics/lib-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ async function sendAnalyticsEvent(xdmData) {
console.warn('alloy not initialized, cannot send analytics event');
return Promise.resolve();
}

// eslint-disable-next-line no-console
console.debug(`sendAnalyticsEvent complete: ${JSON.stringify(xdmData)}`);

// eslint-disable-next-line no-undef
return alloy('sendEvent', {
documentUnloading: true,
Expand Down

0 comments on commit 89b1190

Please sign in to comment.