Skip to content

Commit 93d78c1

Browse files
committed
DataLayer: Adding pageJsonVariablesReady to the variables push
1 parent ca99b18 commit 93d78c1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/scripts/dist/data-layer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export class DataLayer {
176176
});
177177
// Push all collected variables at once
178178
if (Object.keys(dataLayerData).length > 0) {
179+
dataLayerData.event = "pageJsonVariablesReady";
179180
this.dataLayer.push(dataLayerData);
180181
}
181182
this.attachEventListeners();

packages/scripts/src/data-layer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ export class DataLayer {
227227

228228
// Push all collected variables at once
229229
if (Object.keys(dataLayerData).length > 0) {
230+
dataLayerData.event = "pageJsonVariablesReady";
230231
this.dataLayer.push(dataLayerData);
231232
}
232233

0 commit comments

Comments
 (0)