Skip to content

Commit

Permalink
Merge pull request #571 from B77Mills/userGTMData
Browse files Browse the repository at this point in the history
Set gtmUserFields keyObjectKey config
  • Loading branch information
B77Mills authored Sep 29, 2023
2 parents e07dcd2 + db0d47a commit 13b3cc5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/global/components/document.marko
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $ const buttonLabels = { continue: continueLabel };

<marko-web-identity-x-context|{ hasUser, user }|>
<if(hasUser && user.id)>
<marko-web-gtm-push data={ user_id: user.id } />
<marko-web-gtm-push data={ user: site.get('identityX').getGTMUserData(user), user_id: user.id} />
</if>
</marko-web-identity-x-context>

Expand Down
3 changes: 3 additions & 0 deletions sites/cpgnext.com/config/identity-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ const configureIdentityX = require('@pmmi-media-group/package-global/config/iden

module.exports = configureIdentityX({
appId: process.env.IDENTITYX_APP_ID || '649063f19a64332c8ec42eed',
gtmUserFields: {
primary_business: '64e4b0ab178ace3bf5003c1f',
},
});
3 changes: 3 additions & 0 deletions sites/healthcarepackaging.com/config/identity-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ const configureIdentityX = require('@pmmi-media-group/package-global/config/iden

module.exports = configureIdentityX({
appId: process.env.IDENTITYX_APP_ID || '5e28a49458e67b68f255ae49',
gtmUserFields: {
primary_business: '62979e4f650fd867b7efed67',
},
});
3 changes: 3 additions & 0 deletions sites/mundopmmi.com/config/identity-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ module.exports = configureIdentityX({
postalCode: 'Código Postal',
addressBlockLabel: 'Dirección',
},
gtmUserFields: {
primary_business: '6297a1f0650fd84a97efed81',
},
});
3 changes: 3 additions & 0 deletions sites/oemmagazine.org/config/identity-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ const configureIdentityX = require('@pmmi-media-group/package-global/config/iden

module.exports = configureIdentityX({
appId: process.env.IDENTITYX_APP_ID || '5e28a4a058e67b7fad55ae4a',
gtmUserFields: {
primary_business: '6217a41713ad4d403ec58775',
},
});
3 changes: 3 additions & 0 deletions sites/packworld.com/config/identity-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ const configureIdentityX = require('@pmmi-media-group/package-global/config/iden

module.exports = configureIdentityX({
appId: process.env.IDENTITYX_APP_ID || '5e28a4ad58e67b166155ae4b',
gtmUserFields: {
primary_business: '6285417ea1be7355b22a8c9e',
},
});
3 changes: 3 additions & 0 deletions sites/profoodworld.com/config/identity-x.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ const configureIdentityX = require('@pmmi-media-group/package-global/config/iden

module.exports = configureIdentityX({
appId: process.env.IDENTITYX_APP_ID || '5e28a4ba58e67b867055ae4c',
gtmUserFields: {
primary_business: '62979a481f9729aafe3288cd',
},
});

0 comments on commit 13b3cc5

Please sign in to comment.