From 5e169bfec729be92a978ac4489f03c5c68729983 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Wed, 24 Mar 2021 08:05:49 -0500 Subject: [PATCH 1/4] Pass targetTag and requestFrame to GAM init --- packages/marko-web-gam/components/init.marko | 2 ++ packages/marko-web-gam/components/marko.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/marko-web-gam/components/init.marko b/packages/marko-web-gam/components/init.marko index 5b7ac6221..40e5b6645 100644 --- a/packages/marko-web-gam/components/init.marko +++ b/packages/marko-web-gam/components/init.marko @@ -6,6 +6,8 @@ $ const { on } = input; name="googletag" src=src on=on + request-frame=input.requestFrame + target-tag=input.targetTag init="window.googletag = window.googletag || {}; window.googletag.cmd = window.googletag.cmd || [];" /> diff --git a/packages/marko-web-gam/components/marko.json b/packages/marko-web-gam/components/marko.json index a751f526b..9c80cbaf8 100644 --- a/packages/marko-web-gam/components/marko.json +++ b/packages/marko-web-gam/components/marko.json @@ -2,7 +2,9 @@ "": { "template": "./init.marko", "@src": "string", - "@on": "string" + "@on": "string", + "@target-tag": "string", + "@request-frame": "boolean" }, "": { "template": "./head.marko", From 2bf682423773b2a3102989726b0b7aa6f0015c59 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Wed, 24 Mar 2021 08:05:54 -0500 Subject: [PATCH 2/4] Pass targetTag and requestFrame to GTM init --- packages/marko-web-gtm/components/init.marko | 2 ++ packages/marko-web-gtm/components/marko.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/marko-web-gtm/components/init.marko b/packages/marko-web-gtm/components/init.marko index 00bb2b8ce..71e951c73 100644 --- a/packages/marko-web-gtm/components/init.marko +++ b/packages/marko-web-gtm/components/init.marko @@ -23,6 +23,8 @@ $ const start = input.start == null ? false : input.start; name=`${name}_${containerId}` src=src on=on + request-frame=input.requestFrame + target-tag=input.targetTag init=`var w = window, l = '${name}'; w[l] = w[l] || [];` /> diff --git a/packages/marko-web-gtm/components/marko.json b/packages/marko-web-gtm/components/marko.json index 9700a5118..e386752e2 100644 --- a/packages/marko-web-gtm/components/marko.json +++ b/packages/marko-web-gtm/components/marko.json @@ -14,7 +14,9 @@ "type": "boolean", "default-value": false }, - "@on": "string" + "@on": "string", + "@target-tag": "string", + "@request-frame": "boolean" }, "": { "template": "./start.marko", From 23a065e566f091bb4a88257509d1395b6c013a85 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Wed, 24 Mar 2021 08:06:00 -0500 Subject: [PATCH 3/4] Pass targetTag and requestFrame to NativeX init --- packages/marko-web-native-x/components/init.marko | 2 ++ packages/marko-web-native-x/components/marko.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/marko-web-native-x/components/init.marko b/packages/marko-web-native-x/components/init.marko index ba98da1a4..639b61394 100644 --- a/packages/marko-web-native-x/components/init.marko +++ b/packages/marko-web-native-x/components/init.marko @@ -10,6 +10,8 @@ $ const src = "https://cdn.parameter1.com/native-x/1.0.0-rc.4.3.js"; name="fortnight" src=src on=on + request-frame=input.requestFrame + target-tag=input.targetTag init="var i = window, r = 'fortnight'; i['FortnightObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments); };" /> diff --git a/packages/marko-web-native-x/components/marko.json b/packages/marko-web-native-x/components/marko.json index 308c58d02..fbf43b7f6 100644 --- a/packages/marko-web-native-x/components/marko.json +++ b/packages/marko-web-native-x/components/marko.json @@ -3,7 +3,9 @@ "template": "./init.marko", "@uri": "string", "@enabled": "boolean", - "@on": "string" + "@on": "string", + "@target-tag": "string", + "@request-frame": "boolean" }, "": { "template": "./retrieve.marko", From 031485f1eee307c2a235a16208d04e4ed69c8355 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Wed, 24 Mar 2021 08:06:07 -0500 Subject: [PATCH 4/4] Pass targetTag and requestFrame to P1 Events init --- packages/marko-web-p1-events/components/init.marko | 2 ++ packages/marko-web-p1-events/components/marko.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/marko-web-p1-events/components/init.marko b/packages/marko-web-p1-events/components/init.marko index d14aea13e..3c162f2e0 100644 --- a/packages/marko-web-p1-events/components/init.marko +++ b/packages/marko-web-p1-events/components/init.marko @@ -16,6 +16,8 @@ $ const identityQueryBuilder = `identityQueryBuilder: function(query) { ${input. name="p1events" src=scriptSrc on=on + request-frame=input.requestFrame + target-tag=input.targetTag init="var i = window, r = 'p1events'; i['__p1e'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments); };" /> diff --git a/packages/marko-web-p1-events/components/marko.json b/packages/marko-web-p1-events/components/marko.json index e411dc457..2c32d5981 100644 --- a/packages/marko-web-p1-events/components/marko.json +++ b/packages/marko-web-p1-events/components/marko.json @@ -4,7 +4,9 @@ "@script-src": "string", "@uri": "string", "@identity-query-builder": "string", - "@on": "string" + "@on": "string", + "@target-tag": "string", + "@request-frame": "boolean" }, "": { "template": "./track-content.marko",