Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add components to set native-x story GTM context #267

Merged
merged 3 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/global/components/document.marko
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $ const omedaConfig = site.get('omeda');

<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
14 changes: 7 additions & 7 deletions packages/global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
"@parameter1/base-cms-image": "^4.6.0",
"@parameter1/base-cms-inflector": "^4.5.12",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web": "^4.38.1",
"@parameter1/base-cms-marko-web-contact-us": "^4.5.12",
"@parameter1/base-cms-marko-web-deferred-script-loader": "^4.5.12",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-gtm": "^4.38.1",
"@parameter1/base-cms-marko-web-html-sitemap": "^4.5.12",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-identity-x": "^4.36.13",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-identity-x": "^4.38.2",
"@parameter1/base-cms-marko-web-native-x": "^4.38.1",
"@parameter1/base-cms-marko-web-omeda": "^4.23.1",
"@parameter1/base-cms-marko-web-omeda-identity-x": "^4.37.0",
"@parameter1/base-cms-marko-web-omeda-identity-x": "^4.38.2",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-search": "^4.36.8",
"@parameter1/base-cms-marko-web-social-sharing": "^4.36.8",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.2",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.38.2",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/global/templates/content/native-x-story.marko
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ $ const { primarySection } = content;

<theme-default-page title=story.title description=story.teaser>
<@head>
<marko-web-gtm-native-x-story-context|{ context }| obj=content>
<marko-web-gtm-push data=context />
</marko-web-gtm-native-x-story-context>
<marko-web-native-x-gtm-init />
<marko-web-p1-events-track-native-story story=story />
</@head>
Expand Down
10 changes: 5 additions & 5 deletions sites/ccnewsnow.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"dependencies": {
"@cox-matthews-associates/package-global": "^2.23.0",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web": "^4.38.1",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-gtm": "^4.38.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-native-x": "^4.38.1",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.2",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.38.2",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
Expand Down
10 changes: 5 additions & 5 deletions sites/diverseeducation.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"dependencies": {
"@cox-matthews-associates/package-global": "^2.23.0",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web": "^4.38.1",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-gtm": "^4.38.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-native-x": "^4.38.1",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.2",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.38.2",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
Expand Down
10 changes: 5 additions & 5 deletions sites/diversemilitary.net/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"dependencies": {
"@cox-matthews-associates/package-global": "^2.23.0",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web": "^4.38.1",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-gtm": "^4.38.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-native-x": "^4.38.1",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.2",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.38.2",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
Expand Down
10 changes: 5 additions & 5 deletions sites/divhealth.net/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"dependencies": {
"@cox-matthews-associates/package-global": "^2.23.0",
"@parameter1/base-cms-marko-core": "^4.36.0",
"@parameter1/base-cms-marko-web": "^4.36.13",
"@parameter1/base-cms-marko-web": "^4.38.1",
"@parameter1/base-cms-marko-web-gam": "^4.5.12",
"@parameter1/base-cms-marko-web-gcse": "^4.5.12",
"@parameter1/base-cms-marko-web-gtm": "^4.17.1",
"@parameter1/base-cms-marko-web-gtm": "^4.38.1",
"@parameter1/base-cms-marko-web-icons": "^4.36.8",
"@parameter1/base-cms-marko-web-leaders": "^4.36.8",
"@parameter1/base-cms-marko-web-native-x": "^4.38.0",
"@parameter1/base-cms-marko-web-native-x": "^4.38.1",
"@parameter1/base-cms-marko-web-p1-events": "^4.38.0",
"@parameter1/base-cms-marko-web-reveal-ad": "^4.5.12",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.0",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.36.0",
"@parameter1/base-cms-marko-web-theme-monorail": "^4.38.2",
"@parameter1/base-cms-marko-web-theme-monorail-magazine": "^4.38.2",
"@parameter1/base-cms-object-path": "^4.5.12",
"@parameter1/base-cms-utils": "^4.5.12",
"@parameter1/base-cms-web-cli": "^4.18.3",
Expand Down
72 changes: 36 additions & 36 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1066,10 +1066,10 @@
"@parameter1/base-cms-object-path" "^4.5.12"
"@parameter1/base-cms-utils" "^4.5.12"

"@parameter1/base-cms-marko-web-gtm@^4.17.1":
version "4.17.1"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-gtm/-/base-cms-marko-web-gtm-4.17.1.tgz#15e4fa00148487f83573b576d779b2d8a3dca31f"
integrity sha512-OQRrkg1cbBn8WqzSj+fyuapYCEgRgBgIe9fZOadY9P4nKg3sn5TpNQZiOuxRQmvoHLxj/UDdUkXYlwfRrOWNTA==
"@parameter1/base-cms-marko-web-gtm@^4.38.1":
version "4.38.1"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-gtm/-/base-cms-marko-web-gtm-4.38.1.tgz#a70d7717578a1f9899de8265eecee6a4d9152ee0"
integrity sha512-QdOQHmcV3O0onuPh2yNcvZ5bOcz9JvShmDu8CH5CAJeNev9eBBUSaSBtDQyhhBv84e6zYBBKozJZ4LIeMS7ZYg==
dependencies:
"@parameter1/base-cms-inflector" "^4.5.12"
"@parameter1/base-cms-marko-web-deferred-script-loader" "^4.5.12"
Expand All @@ -1094,12 +1094,12 @@
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-icons/-/base-cms-marko-web-icons-4.36.8.tgz#db479337f3bc3be9ad57fe8d18ffa5cba0008820"
integrity sha512-+PrD1dPiHNkp1eqO0D7DghRp+OH8gxllIn+zvxnoRvDWiVGZixkSozU95tHkP+F8Yi3Z9QpBEhZjGAYSyHnyww==

"@parameter1/base-cms-marko-web-identity-x@^4.36.13":
version "4.36.13"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-identity-x/-/base-cms-marko-web-identity-x-4.36.13.tgz#673c453fae3ea9ce3167171ff93f8b65170938a1"
integrity sha512-7n0dlRrxilmI90yPJZvmJd3kYYFBnP6qDTuVI5C/HJGHaj7T42VZSN6cL+D2Y9VEUFn8zsKxJ4ZWsR+EBQQrOg==
"@parameter1/base-cms-marko-web-identity-x@^4.38.2":
version "4.38.2"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-identity-x/-/base-cms-marko-web-identity-x-4.38.2.tgz#4c0921ff7e700182a81f8b1822276e5493aeb859"
integrity sha512-j1orFFYhbuzRTc44FXz0w0TsY8eZPx4ngOHD3yzgRzbRl2/3pHLwOEGyP3vp5kbNPlz36W2UgM1hu9d4GJSpaA==
dependencies:
"@parameter1/base-cms-marko-web-gtm" "^4.17.1"
"@parameter1/base-cms-marko-web-gtm" "^4.38.1"
"@parameter1/base-cms-object-path" "^4.5.12"
"@parameter1/base-cms-utils" "^4.5.12"
apollo-cache-inmemory "^1.6.6"
Expand Down Expand Up @@ -1140,25 +1140,25 @@
"@parameter1/base-cms-object-path" "^4.5.12"
object-path "^0.11.8"

"@parameter1/base-cms-marko-web-native-x@^4.38.0":
version "4.38.0"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-native-x/-/base-cms-marko-web-native-x-4.38.0.tgz#ac20c9cfdc29fd029989f7f582b2f14c1cf0597d"
integrity sha512-0sIPxWycoHfOHj13Op3HhMC4QOqWyk8luut8M2R/s8SJVaKHkEGI3VEJHER6e97tWyNy/mQkTB3Atn9VmBuzrw==
"@parameter1/base-cms-marko-web-native-x@^4.38.1":
version "4.38.1"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-native-x/-/base-cms-marko-web-native-x-4.38.1.tgz#9f602daca09ed37de7ff2ecf56612ecdbd368a13"
integrity sha512-CST/Lm34SLynZxvCBKP1tsUvptMHxTGCCFsKHnLZuZtnjdaIk6rZUmRQVf51OtswLmoZQnnu6hV6nKLiL5FcDQ==
dependencies:
"@parameter1/base-cms-marko-web-deferred-script-loader" "^4.5.12"
"@parameter1/base-cms-marko-web-gtm" "^4.17.1"
"@parameter1/base-cms-marko-web-gtm" "^4.38.1"
"@parameter1/base-cms-object-path" "^4.5.12"
"@parameter1/base-cms-utils" "^4.5.12"
"@parameter1/base-cms-web-common" "^4.36.0"
graphql-tag "^2.12.6"
node-fetch "^2.6.9"

"@parameter1/base-cms-marko-web-omeda-identity-x@^4.37.0":
version "4.37.0"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-omeda-identity-x/-/base-cms-marko-web-omeda-identity-x-4.37.0.tgz#07b04df438d8d79a6baa34555a4df7914c5d2a0d"
integrity sha512-NKShoyHdDPSfqD0wE2Uc0rPO8o17TlU0peXKUFeSK9vB6vmlr4jO4CUYvcCJ0kFzMrDNgA6UmB0T2VKC1Bp1vQ==
"@parameter1/base-cms-marko-web-omeda-identity-x@^4.38.2":
version "4.38.2"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-omeda-identity-x/-/base-cms-marko-web-omeda-identity-x-4.38.2.tgz#10efe25fa75fbe92636420e6932875be04f151b0"
integrity sha512-75EWpm5kRqN3pZPmDx/JvW+TlO9fjqlbsGD6I3/ujAD9ZfgLGUFPUpIyLkimBmrcdX1AyYY0q++RUbhgXSKiBA==
dependencies:
"@parameter1/base-cms-marko-web-identity-x" "^4.36.13"
"@parameter1/base-cms-marko-web-identity-x" "^4.38.2"
"@parameter1/base-cms-marko-web-omeda" "^4.23.1"
"@parameter1/base-cms-object-path" "^4.5.12"
"@parameter1/base-cms-utils" "^4.5.12"
Expand Down Expand Up @@ -1231,37 +1231,37 @@
dependencies:
"@parameter1/base-cms-utils" "^4.5.12"

"@parameter1/base-cms-marko-web-theme-monorail-magazine@^4.36.0":
version "4.36.0"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-theme-monorail-magazine/-/base-cms-marko-web-theme-monorail-magazine-4.36.0.tgz#03beb954d2b9c47a395174f3c18a58071341015d"
integrity sha512-cVIPt9rhhiCeLtzOCj8HWANnhCETF+Mc8pDKMW/viLYto40vZGCDeFvx4PEoQuBy6mW6NbqrIOWwI/QYcF8mIA==
"@parameter1/base-cms-marko-web-theme-monorail-magazine@^4.38.2":
version "4.38.2"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-theme-monorail-magazine/-/base-cms-marko-web-theme-monorail-magazine-4.38.2.tgz#5f02a95df3d579eb3bc7ca5f2a8182c5f4dcfec1"
integrity sha512-X9HFX7i6EAGYodW1Ezmr4g1rclxjkiMSH5hp1TZ1DH5ZhlSuBShWbd4uIJRIkv/oYcUw0oLnohWxRZwsrw4URQ==
dependencies:
"@parameter1/base-cms-marko-web-gtm" "^4.17.1"
"@parameter1/base-cms-marko-web-gtm" "^4.38.1"
"@parameter1/base-cms-object-path" "^4.5.12"
"@parameter1/base-cms-utils" "^4.5.12"
"@parameter1/base-cms-web-common" "^4.36.0"
graphql "^14.7.0"
graphql-tag "^2.12.6"
object-path "^0.11.8"

"@parameter1/base-cms-marko-web-theme-monorail@^4.38.0":
version "4.38.0"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-theme-monorail/-/base-cms-marko-web-theme-monorail-4.38.0.tgz#4aea0df186d9cab5963785f2e4590ef0df74a19e"
integrity sha512-8TLdoRYEtmwJmVx/tAThGn128K2Y0UoW5ysuqe500EiDf1xd2rvTUceJvhD9tU37fHcUMe1IRO4KezNYpMvhjw==
"@parameter1/base-cms-marko-web-theme-monorail@^4.38.2":
version "4.38.2"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web-theme-monorail/-/base-cms-marko-web-theme-monorail-4.38.2.tgz#18ca5a4fc31b596a2872c7b5a75a26fdcc0053b9"
integrity sha512-L5i+luVGCM03LW/S5R1ry2kk0qMHbqjKbJsQCC+5cIU7xDED42+Row87Mhcy1pV/XIGqxwpQvFwSA/vfYEdqkw==
dependencies:
"@parameter1/base-cms-dayjs" "^4.5.12"
"@parameter1/base-cms-image" "^4.6.0"
"@parameter1/base-cms-inflector" "^4.5.12"
"@parameter1/base-cms-marko-web-deferred-script-loader" "^4.5.12"
"@parameter1/base-cms-marko-web-gam" "^4.5.12"
"@parameter1/base-cms-marko-web-gtm" "^4.17.1"
"@parameter1/base-cms-marko-web-gtm" "^4.38.1"
"@parameter1/base-cms-marko-web-html-sitemap" "^4.5.12"
"@parameter1/base-cms-marko-web-icons" "^4.36.8"
"@parameter1/base-cms-marko-web-identity-x" "^4.36.13"
"@parameter1/base-cms-marko-web-identity-x" "^4.38.2"
"@parameter1/base-cms-marko-web-inquiry" "^4.27.0"
"@parameter1/base-cms-marko-web-native-x" "^4.38.0"
"@parameter1/base-cms-marko-web-native-x" "^4.38.1"
"@parameter1/base-cms-marko-web-omeda" "^4.23.1"
"@parameter1/base-cms-marko-web-omeda-identity-x" "^4.37.0"
"@parameter1/base-cms-marko-web-omeda-identity-x" "^4.38.2"
"@parameter1/base-cms-marko-web-p1-events" "^4.38.0"
"@parameter1/base-cms-marko-web-recaptcha" "^4.5.12"
"@parameter1/base-cms-marko-web-reveal-ad" "^4.5.12"
Expand All @@ -1281,10 +1281,10 @@
node-fetch "^2.6.9"
ua-parser-js "^1.0.33"

"@parameter1/base-cms-marko-web@^4.36.13":
version "4.36.13"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web/-/base-cms-marko-web-4.36.13.tgz#9ae55beb04dd3e52adcf468a6e5e071a8e09cce8"
integrity sha512-sA4ugSapPwKs/zXRZo9XPglWgNhxj3nnkCLhPDI1qoAN5V7s86qBoZxDTOQdVHMqKRwbUl19UXXmOQj//N5TMA==
"@parameter1/base-cms-marko-web@^4.38.1":
version "4.38.1"
resolved "https://registry.yarnpkg.com/@parameter1/base-cms-marko-web/-/base-cms-marko-web-4.38.1.tgz#55066a41a5a2be30c662190048e9e82cc6d5cab6"
integrity sha512-XrDiOdz4UvRb8vlMO+7kEHwfJ82lRXDmiPCSInE0CuFxVkWW71s1EaLmIoQGHi4EnmqKcYaIrLNVwa7sruRydw==
dependencies:
"@godaddy/terminus" "^4.11.2"
"@parameter1/base-cms-apollo-ssr" "^4.5.12"
Expand Down