├── README.md ├── LICENSE ├── ga4-gads-server.json └── ga4-gads-web.json /README.md: -------------------------------------------------------------------------------- 1 | # [Deprecated] GTM Templates for Shopify 2 | 3 | Container templates are deprecated and moved into [Setup Assistant](https://stape.io/gtm-set-up-assistant) service 4 | 5 | ## Open Source 6 | 7 | Developed and maintained by [Stape Team](https://stape.io/) under the Apache2 license. 8 | 9 | Find a detailed step-by-step guide on how to use pre-built GTM container templates for your Shopify store here: 10 | 11 | https://stape.io/blog/how-to-use-pre-built-shopify-gtm-templates-from-stape 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2024 Stape 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /ga4-gads-server.json: -------------------------------------------------------------------------------- 1 | { 2 | "exportFormatVersion": 2, 3 | "exportTime": "2025-08-18 14:34:34", 4 | "containerVersion": { 5 | "path": "accounts/6004967354/containers/220516409/versions/0", 6 | "accountId": "6004967354", 7 | "containerId": "220516409", 8 | "containerVersionId": "0", 9 | "container": { 10 | "path": "accounts/6004967354/containers/220516409", 11 | "accountId": "6004967354", 12 | "containerId": "220516409", 13 | "name": "[MASTER TEMPLATE] Shopify Server (only google)", 14 | "publicId": "GTM-N5N9N88K", 15 | "usageContext": [ 16 | "SERVER" 17 | ], 18 | "fingerprint": "1747758422419", 19 | "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6004967354/containers/220516409/workspaces?apiLink=container", 20 | "features": { 21 | "supportUserPermissions": true, 22 | "supportEnvironments": true, 23 | "supportWorkspaces": true, 24 | "supportGtagConfigs": false, 25 | "supportBuiltInVariables": true, 26 | "supportClients": true, 27 | "supportFolders": true, 28 | "supportTags": true, 29 | "supportTemplates": true, 30 | "supportTriggers": true, 31 | "supportVariables": true, 32 | "supportVersions": true, 33 | "supportZones": true, 34 | "supportTransformations": true 35 | }, 36 | "tagIds": [ 37 | "GTM-N5N9N88K" 38 | ] 39 | }, 40 | "tag": [ 41 | { 42 | "accountId": "6004967354", 43 | "containerId": "220516409", 44 | "tagId": "29", 45 | "name": "[Stape] ADS - Remarketing", 46 | "type": "sgtmadsremarket", 47 | "parameter": [ 48 | { 49 | "type": "BOOLEAN", 50 | "key": "enableConversionLinker", 51 | "value": "true" 52 | }, 53 | { 54 | "type": "BOOLEAN", 55 | "key": "enableDynamicRemarketing", 56 | "value": "true" 57 | }, 58 | { 59 | "type": "BOOLEAN", 60 | "key": "enableCustomParams", 61 | "value": "true" 62 | }, 63 | { 64 | "type": "TEMPLATE", 65 | "key": "remarketingEventDataSource", 66 | "value": "EVENT_DATA" 67 | }, 68 | { 69 | "type": "BOOLEAN", 70 | "key": "enableUserId", 71 | "value": "false" 72 | }, 73 | { 74 | "type": "TEMPLATE", 75 | "key": "conversionId", 76 | "value": "{{const - google ads conversion id}}" 77 | }, 78 | { 79 | "type": "TEMPLATE", 80 | "key": "customParamsFormat", 81 | "value": "EVENT_DATA" 82 | }, 83 | { 84 | "type": "BOOLEAN", 85 | "key": "rdp", 86 | "value": "false" 87 | } 88 | ], 89 | "fingerprint": "1747758560163", 90 | "firingTriggerId": [ 91 | "26" 92 | ], 93 | "parentFolderId": "27", 94 | "tagFiringOption": "ONCE_PER_EVENT", 95 | "monitoringMetadata": { 96 | "type": "MAP" 97 | }, 98 | "consentSettings": { 99 | "consentStatus": "NOT_SET" 100 | } 101 | }, 102 | { 103 | "accountId": "6004967354", 104 | "containerId": "220516409", 105 | "tagId": "31", 106 | "name": "[Stape] ADS - Purchase", 107 | "type": "sgtmadsct", 108 | "parameter": [ 109 | { 110 | "type": "TEMPLATE", 111 | "key": "productReportingDataSource", 112 | "value": "EVENT" 113 | }, 114 | { 115 | "type": "BOOLEAN", 116 | "key": "enableNewCustomerReporting", 117 | "value": "true" 118 | }, 119 | { 120 | "type": "BOOLEAN", 121 | "key": "enableConversionLinker", 122 | "value": "true" 123 | }, 124 | { 125 | "type": "BOOLEAN", 126 | "key": "enableProductReporting", 127 | "value": "true" 128 | }, 129 | { 130 | "type": "TEMPLATE", 131 | "key": "newCustomerDataSource", 132 | "value": "EVENT" 133 | }, 134 | { 135 | "type": "TEMPLATE", 136 | "key": "conversionId", 137 | "value": "{{const - google ads conversion id}}" 138 | }, 139 | { 140 | "type": "TEMPLATE", 141 | "key": "conversionLabel", 142 | "value": "{{const - google ads [purchase] conversion label}}" 143 | }, 144 | { 145 | "type": "BOOLEAN", 146 | "key": "rdp", 147 | "value": "false" 148 | } 149 | ], 150 | "fingerprint": "1747758560163", 151 | "firingTriggerId": [ 152 | "30" 153 | ], 154 | "parentFolderId": "27", 155 | "tagFiringOption": "ONCE_PER_EVENT", 156 | "monitoringMetadata": { 157 | "type": "MAP" 158 | }, 159 | "consentSettings": { 160 | "consentStatus": "NOT_SET" 161 | } 162 | }, 163 | { 164 | "accountId": "6004967354", 165 | "containerId": "220516409", 166 | "tagId": "34", 167 | "name": "[Stape] ADS - AddToCart", 168 | "type": "sgtmadsct", 169 | "parameter": [ 170 | { 171 | "type": "TEMPLATE", 172 | "key": "productReportingDataSource", 173 | "value": "EVENT" 174 | }, 175 | { 176 | "type": "BOOLEAN", 177 | "key": "enableNewCustomerReporting", 178 | "value": "true" 179 | }, 180 | { 181 | "type": "BOOLEAN", 182 | "key": "enableConversionLinker", 183 | "value": "true" 184 | }, 185 | { 186 | "type": "BOOLEAN", 187 | "key": "enableProductReporting", 188 | "value": "true" 189 | }, 190 | { 191 | "type": "TEMPLATE", 192 | "key": "newCustomerDataSource", 193 | "value": "EVENT" 194 | }, 195 | { 196 | "type": "TEMPLATE", 197 | "key": "conversionId", 198 | "value": "{{const - google ads conversion id}}" 199 | }, 200 | { 201 | "type": "TEMPLATE", 202 | "key": "conversionLabel", 203 | "value": "{{const - google ads [add_to_cart] conversion label}}" 204 | }, 205 | { 206 | "type": "BOOLEAN", 207 | "key": "rdp", 208 | "value": "false" 209 | } 210 | ], 211 | "fingerprint": "1747758560164", 212 | "firingTriggerId": [ 213 | "32" 214 | ], 215 | "parentFolderId": "27", 216 | "tagFiringOption": "ONCE_PER_EVENT", 217 | "monitoringMetadata": { 218 | "type": "MAP" 219 | }, 220 | "consentSettings": { 221 | "consentStatus": "NOT_SET" 222 | } 223 | }, 224 | { 225 | "accountId": "6004967354", 226 | "containerId": "220516409", 227 | "tagId": "37", 228 | "name": "[Stape] ADS - BeginCheckout", 229 | "type": "sgtmadsct", 230 | "parameter": [ 231 | { 232 | "type": "TEMPLATE", 233 | "key": "productReportingDataSource", 234 | "value": "EVENT" 235 | }, 236 | { 237 | "type": "BOOLEAN", 238 | "key": "enableNewCustomerReporting", 239 | "value": "true" 240 | }, 241 | { 242 | "type": "BOOLEAN", 243 | "key": "enableConversionLinker", 244 | "value": "true" 245 | }, 246 | { 247 | "type": "BOOLEAN", 248 | "key": "enableProductReporting", 249 | "value": "true" 250 | }, 251 | { 252 | "type": "TEMPLATE", 253 | "key": "newCustomerDataSource", 254 | "value": "EVENT" 255 | }, 256 | { 257 | "type": "TEMPLATE", 258 | "key": "conversionId", 259 | "value": "{{const - google ads conversion id}}" 260 | }, 261 | { 262 | "type": "TEMPLATE", 263 | "key": "conversionLabel", 264 | "value": "{{const - google ads [begin_checkout] conversion label}}" 265 | }, 266 | { 267 | "type": "BOOLEAN", 268 | "key": "rdp", 269 | "value": "false" 270 | } 271 | ], 272 | "fingerprint": "1747758560164", 273 | "firingTriggerId": [ 274 | "36" 275 | ], 276 | "parentFolderId": "27", 277 | "tagFiringOption": "ONCE_PER_EVENT", 278 | "monitoringMetadata": { 279 | "type": "MAP" 280 | }, 281 | "consentSettings": { 282 | "consentStatus": "NOT_SET" 283 | } 284 | }, 285 | { 286 | "accountId": "6004967354", 287 | "containerId": "220516409", 288 | "tagId": "39", 289 | "name": "[Stape] GA4 - Base", 290 | "type": "sgtmgaaw", 291 | "parameter": [ 292 | { 293 | "type": "BOOLEAN", 294 | "key": "redactVisitorIp", 295 | "value": "false" 296 | }, 297 | { 298 | "type": "TEMPLATE", 299 | "key": "epToIncludeDropdown", 300 | "value": "all" 301 | }, 302 | { 303 | "type": "TEMPLATE", 304 | "key": "upToIncludeDropdown", 305 | "value": "all" 306 | } 307 | ], 308 | "fingerprint": "1747758560164", 309 | "firingTriggerId": [ 310 | "26" 311 | ], 312 | "parentFolderId": "38", 313 | "tagFiringOption": "ONCE_PER_EVENT", 314 | "monitoringMetadata": { 315 | "type": "MAP" 316 | }, 317 | "consentSettings": { 318 | "consentStatus": "NOT_SET" 319 | } 320 | }, 321 | { 322 | "accountId": "6004967354", 323 | "containerId": "220516409", 324 | "tagId": "40", 325 | "name": "Conversion Linker", 326 | "type": "sgtmadscl", 327 | "parameter": [ 328 | { 329 | "type": "BOOLEAN", 330 | "key": "enableLinkerParams", 331 | "value": "false" 332 | }, 333 | { 334 | "type": "BOOLEAN", 335 | "key": "enableCookieOverrides", 336 | "value": "false" 337 | } 338 | ], 339 | "fingerprint": "1747758560164", 340 | "firingTriggerId": [ 341 | "26" 342 | ], 343 | "parentFolderId": "27", 344 | "tagFiringOption": "ONCE_PER_EVENT", 345 | "monitoringMetadata": { 346 | "type": "MAP" 347 | }, 348 | "consentSettings": { 349 | "consentStatus": "NOT_SET" 350 | } 351 | } 352 | ], 353 | "trigger": [ 354 | { 355 | "accountId": "6004967354", 356 | "containerId": "220516409", 357 | "triggerId": "26", 358 | "name": "clientName - GA4", 359 | "type": "ALWAYS", 360 | "filter": [ 361 | { 362 | "type": "CONTAINS", 363 | "parameter": [ 364 | { 365 | "type": "TEMPLATE", 366 | "key": "arg0", 367 | "value": "{{Client Name}}" 368 | }, 369 | { 370 | "type": "TEMPLATE", 371 | "key": "arg1", 372 | "value": "GA4" 373 | } 374 | ] 375 | } 376 | ], 377 | "fingerprint": "1747758560163", 378 | "parentFolderId": "25" 379 | }, 380 | { 381 | "accountId": "6004967354", 382 | "containerId": "220516409", 383 | "triggerId": "30", 384 | "name": "ga4 - purchase", 385 | "type": "CUSTOM_EVENT", 386 | "customEventFilter": [ 387 | { 388 | "type": "EQUALS", 389 | "parameter": [ 390 | { 391 | "type": "TEMPLATE", 392 | "key": "arg0", 393 | "value": "{{_event}}" 394 | }, 395 | { 396 | "type": "TEMPLATE", 397 | "key": "arg1", 398 | "value": "purchase" 399 | } 400 | ] 401 | } 402 | ], 403 | "filter": [ 404 | { 405 | "type": "CONTAINS", 406 | "parameter": [ 407 | { 408 | "type": "TEMPLATE", 409 | "key": "arg0", 410 | "value": "{{Client Name}}" 411 | }, 412 | { 413 | "type": "TEMPLATE", 414 | "key": "arg1", 415 | "value": "GA4" 416 | } 417 | ] 418 | } 419 | ], 420 | "fingerprint": "1747758560163", 421 | "parentFolderId": "25" 422 | }, 423 | { 424 | "accountId": "6004967354", 425 | "containerId": "220516409", 426 | "triggerId": "32", 427 | "name": "ga4 - add_to_cart", 428 | "type": "CUSTOM_EVENT", 429 | "customEventFilter": [ 430 | { 431 | "type": "EQUALS", 432 | "parameter": [ 433 | { 434 | "type": "TEMPLATE", 435 | "key": "arg0", 436 | "value": "{{_event}}" 437 | }, 438 | { 439 | "type": "TEMPLATE", 440 | "key": "arg1", 441 | "value": "add_to_cart" 442 | } 443 | ] 444 | } 445 | ], 446 | "filter": [ 447 | { 448 | "type": "CONTAINS", 449 | "parameter": [ 450 | { 451 | "type": "TEMPLATE", 452 | "key": "arg0", 453 | "value": "{{Client Name}}" 454 | }, 455 | { 456 | "type": "TEMPLATE", 457 | "key": "arg1", 458 | "value": "GA4" 459 | } 460 | ] 461 | } 462 | ], 463 | "fingerprint": "1747758560163", 464 | "parentFolderId": "25" 465 | }, 466 | { 467 | "accountId": "6004967354", 468 | "containerId": "220516409", 469 | "triggerId": "36", 470 | "name": "ga4 - begin_checkout", 471 | "type": "CUSTOM_EVENT", 472 | "customEventFilter": [ 473 | { 474 | "type": "EQUALS", 475 | "parameter": [ 476 | { 477 | "type": "TEMPLATE", 478 | "key": "arg0", 479 | "value": "{{_event}}" 480 | }, 481 | { 482 | "type": "TEMPLATE", 483 | "key": "arg1", 484 | "value": "begin_checkout" 485 | } 486 | ] 487 | } 488 | ], 489 | "filter": [ 490 | { 491 | "type": "CONTAINS", 492 | "parameter": [ 493 | { 494 | "type": "TEMPLATE", 495 | "key": "arg0", 496 | "value": "{{Client Name}}" 497 | }, 498 | { 499 | "type": "TEMPLATE", 500 | "key": "arg1", 501 | "value": "GA4" 502 | } 503 | ] 504 | } 505 | ], 506 | "fingerprint": "1747758560164", 507 | "parentFolderId": "25" 508 | }, 509 | { 510 | "accountId": "6004967354", 511 | "containerId": "220516409", 512 | "triggerId": "41", 513 | "name": "ga4 - page_view", 514 | "type": "CUSTOM_EVENT", 515 | "customEventFilter": [ 516 | { 517 | "type": "EQUALS", 518 | "parameter": [ 519 | { 520 | "type": "TEMPLATE", 521 | "key": "arg0", 522 | "value": "{{_event}}" 523 | }, 524 | { 525 | "type": "TEMPLATE", 526 | "key": "arg1", 527 | "value": "page_view" 528 | } 529 | ] 530 | } 531 | ], 532 | "filter": [ 533 | { 534 | "type": "CONTAINS", 535 | "parameter": [ 536 | { 537 | "type": "TEMPLATE", 538 | "key": "arg0", 539 | "value": "{{Client Name}}" 540 | }, 541 | { 542 | "type": "TEMPLATE", 543 | "key": "arg1", 544 | "value": "GA4" 545 | } 546 | ] 547 | } 548 | ], 549 | "fingerprint": "1747758560164", 550 | "parentFolderId": "25" 551 | } 552 | ], 553 | "variable": [ 554 | { 555 | "accountId": "6004967354", 556 | "containerId": "220516409", 557 | "variableId": "24", 558 | "name": "const - google ads [purchase] conversion label", 559 | "type": "c", 560 | "parameter": [ 561 | { 562 | "type": "TEMPLATE", 563 | "key": "value", 564 | "value": "PUT_YOUR_VALUE_HERE" 565 | } 566 | ], 567 | "fingerprint": "1747758560163", 568 | "parentFolderId": "23", 569 | "formatValue": {} 570 | }, 571 | { 572 | "accountId": "6004967354", 573 | "containerId": "220516409", 574 | "variableId": "28", 575 | "name": "const - google ads conversion id", 576 | "type": "c", 577 | "parameter": [ 578 | { 579 | "type": "TEMPLATE", 580 | "key": "value", 581 | "value": "PUT_YOUR_VALUE_HERE" 582 | } 583 | ], 584 | "fingerprint": "1747758560163", 585 | "parentFolderId": "23", 586 | "formatValue": {} 587 | }, 588 | { 589 | "accountId": "6004967354", 590 | "containerId": "220516409", 591 | "variableId": "33", 592 | "name": "const - google ads [add_to_cart] conversion label", 593 | "type": "c", 594 | "parameter": [ 595 | { 596 | "type": "TEMPLATE", 597 | "key": "value", 598 | "value": "PUT_YOUR_VALUE_HERE" 599 | } 600 | ], 601 | "fingerprint": "1747758560164", 602 | "parentFolderId": "23", 603 | "formatValue": {} 604 | }, 605 | { 606 | "accountId": "6004967354", 607 | "containerId": "220516409", 608 | "variableId": "35", 609 | "name": "const - google ads [begin_checkout] conversion label", 610 | "type": "c", 611 | "parameter": [ 612 | { 613 | "type": "TEMPLATE", 614 | "key": "value", 615 | "value": "PUT_YOUR_VALUE_HERE" 616 | } 617 | ], 618 | "fingerprint": "1747758560164", 619 | "parentFolderId": "23", 620 | "formatValue": {} 621 | } 622 | ], 623 | "folder": [ 624 | { 625 | "accountId": "6004967354", 626 | "containerId": "220516409", 627 | "folderId": "23", 628 | "name": "[Stape] _Settings", 629 | "fingerprint": "1747758560162" 630 | }, 631 | { 632 | "accountId": "6004967354", 633 | "containerId": "220516409", 634 | "folderId": "25", 635 | "name": "[Stape] Triggers", 636 | "fingerprint": "1747758560163" 637 | }, 638 | { 639 | "accountId": "6004967354", 640 | "containerId": "220516409", 641 | "folderId": "27", 642 | "name": "[Stape] Google Ads", 643 | "fingerprint": "1747758560163" 644 | }, 645 | { 646 | "accountId": "6004967354", 647 | "containerId": "220516409", 648 | "folderId": "38", 649 | "name": "[Stape] GA4", 650 | "fingerprint": "1747758560164" 651 | } 652 | ], 653 | "builtInVariable": [ 654 | { 655 | "accountId": "6004967354", 656 | "containerId": "220516409", 657 | "type": "EVENT_NAME", 658 | "name": "Event Name" 659 | }, 660 | { 661 | "accountId": "6004967354", 662 | "containerId": "220516409", 663 | "type": "CLIENT_NAME", 664 | "name": "Client Name" 665 | } 666 | ], 667 | "fingerprint": "1755527674286", 668 | "tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6004967354/containers/220516409/versions/0?apiLink=version", 669 | "client": [ 670 | { 671 | "accountId": "6004967354", 672 | "containerId": "220516409", 673 | "clientId": "42", 674 | "name": "GA4", 675 | "type": "gaaw_client", 676 | "parameter": [ 677 | { 678 | "type": "TEMPLATE", 679 | "key": "cookieDomain", 680 | "value": "auto" 681 | }, 682 | { 683 | "type": "TEMPLATE", 684 | "key": "cookieMaxAgeInSec", 685 | "value": "63072000" 686 | }, 687 | { 688 | "type": "BOOLEAN", 689 | "key": "activateDefaultPaths", 690 | "value": "true" 691 | }, 692 | { 693 | "type": "TEMPLATE", 694 | "key": "cookiePath", 695 | "value": "/" 696 | }, 697 | { 698 | "type": "BOOLEAN", 699 | "key": "migrateFromJsClientId", 700 | "value": "false" 701 | }, 702 | { 703 | "type": "TEMPLATE", 704 | "key": "cookieManagement", 705 | "value": "server" 706 | }, 707 | { 708 | "type": "TEMPLATE", 709 | "key": "cookieName", 710 | "value": "FPID" 711 | } 712 | ], 713 | "fingerprint": "1755510371147" 714 | } 715 | ] 716 | } 717 | } -------------------------------------------------------------------------------- /ga4-gads-web.json: -------------------------------------------------------------------------------- 1 | { 2 | "exportFormatVersion": 2, 3 | "exportTime": "2024-07-02 10:07:10", 4 | "containerVersion": { 5 | "path": "accounts/6004967354/containers/189035636/versions/0", 6 | "accountId": "6004967354", 7 | "containerId": "189035636", 8 | "containerVersionId": "0", 9 | "container": { 10 | "path": "accounts/6004967354/containers/189035636", 11 | "accountId": "6004967354", 12 | "containerId": "189035636", 13 | "name": "[ADS WEBINAR] Shopify Web", 14 | "publicId": "GTM-WFRZL4WL", 15 | "usageContext": [ 16 | "WEB" 17 | ], 18 | "fingerprint": "1719899639259", 19 | "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6004967354/containers/189035636/workspaces?apiLink=container", 20 | "features": { 21 | "supportUserPermissions": true, 22 | "supportEnvironments": true, 23 | "supportWorkspaces": true, 24 | "supportGtagConfigs": false, 25 | "supportBuiltInVariables": true, 26 | "supportClients": false, 27 | "supportFolders": true, 28 | "supportTags": true, 29 | "supportTemplates": true, 30 | "supportTriggers": true, 31 | "supportVariables": true, 32 | "supportVersions": true, 33 | "supportZones": true, 34 | "supportTransformations": false 35 | }, 36 | "tagIds": [ 37 | "GTM-WFRZL4WL" 38 | ] 39 | }, 40 | "tag": [ 41 | { 42 | "accountId": "6004967354", 43 | "containerId": "189035636", 44 | "tagId": "30", 45 | "name": "[Stape] GA4 - view_item", 46 | "type": "gaawe", 47 | "parameter": [ 48 | { 49 | "type": "BOOLEAN", 50 | "key": "sendEcommerceData", 51 | "value": "false" 52 | }, 53 | { 54 | "type": "BOOLEAN", 55 | "key": "enhancedUserId", 56 | "value": "false" 57 | }, 58 | { 59 | "type": "LIST", 60 | "key": "eventSettingsTable", 61 | "list": [ 62 | { 63 | "type": "MAP", 64 | "map": [ 65 | { 66 | "type": "TEMPLATE", 67 | "key": "parameter", 68 | "value": "value" 69 | }, 70 | { 71 | "type": "TEMPLATE", 72 | "key": "parameterValue", 73 | "value": "{{dlv - ecommerce.value}}" 74 | } 75 | ] 76 | }, 77 | { 78 | "type": "MAP", 79 | "map": [ 80 | { 81 | "type": "TEMPLATE", 82 | "key": "parameter", 83 | "value": "currency" 84 | }, 85 | { 86 | "type": "TEMPLATE", 87 | "key": "parameterValue", 88 | "value": "{{dlv - ecommerce.currency}}" 89 | } 90 | ] 91 | }, 92 | { 93 | "type": "MAP", 94 | "map": [ 95 | { 96 | "type": "TEMPLATE", 97 | "key": "parameter", 98 | "value": "items" 99 | }, 100 | { 101 | "type": "TEMPLATE", 102 | "key": "parameterValue", 103 | "value": "{{dlv - ecommerce.items}}" 104 | } 105 | ] 106 | }, 107 | { 108 | "type": "MAP", 109 | "map": [ 110 | { 111 | "type": "TEMPLATE", 112 | "key": "parameter", 113 | "value": "ecomm_pagetype" 114 | }, 115 | { 116 | "type": "TEMPLATE", 117 | "key": "parameterValue", 118 | "value": "product" 119 | } 120 | ] 121 | } 122 | ] 123 | }, 124 | { 125 | "type": "TEMPLATE", 126 | "key": "eventName", 127 | "value": "view_item" 128 | }, 129 | { 130 | "type": "TEMPLATE", 131 | "key": "measurementIdOverride", 132 | "value": "{{const - ga4 measurement id}}" 133 | }, 134 | { 135 | "type": "TEMPLATE", 136 | "key": "eventSettingsVariable", 137 | "value": "{{ga4 - shared_event_settings}}" 138 | } 139 | ], 140 | "fingerprint": "1719899666549", 141 | "firingTriggerId": [ 142 | "15" 143 | ], 144 | "parentFolderId": "26", 145 | "tagFiringOption": "ONCE_PER_EVENT", 146 | "monitoringMetadata": { 147 | "type": "MAP" 148 | }, 149 | "consentSettings": { 150 | "consentStatus": "NOT_SET" 151 | } 152 | }, 153 | { 154 | "accountId": "6004967354", 155 | "containerId": "189035636", 156 | "tagId": "58", 157 | "name": "[Stape] GA4 - purchase", 158 | "type": "gaawe", 159 | "parameter": [ 160 | { 161 | "type": "TEMPLATE", 162 | "key": "userDataVariable", 163 | "value": "{{ga4 - user_provided_data}}" 164 | }, 165 | { 166 | "type": "BOOLEAN", 167 | "key": "sendEcommerceData", 168 | "value": "false" 169 | }, 170 | { 171 | "type": "BOOLEAN", 172 | "key": "enhancedUserId", 173 | "value": "true" 174 | }, 175 | { 176 | "type": "LIST", 177 | "key": "eventSettingsTable", 178 | "list": [ 179 | { 180 | "type": "MAP", 181 | "map": [ 182 | { 183 | "type": "TEMPLATE", 184 | "key": "parameter", 185 | "value": "currency" 186 | }, 187 | { 188 | "type": "TEMPLATE", 189 | "key": "parameterValue", 190 | "value": "{{dlv - ecommerce.currency}}" 191 | } 192 | ] 193 | }, 194 | { 195 | "type": "MAP", 196 | "map": [ 197 | { 198 | "type": "TEMPLATE", 199 | "key": "parameter", 200 | "value": "value" 201 | }, 202 | { 203 | "type": "TEMPLATE", 204 | "key": "parameterValue", 205 | "value": "{{dlv - ecommerce.value}}" 206 | } 207 | ] 208 | }, 209 | { 210 | "type": "MAP", 211 | "map": [ 212 | { 213 | "type": "TEMPLATE", 214 | "key": "parameter", 215 | "value": "transaction_id" 216 | }, 217 | { 218 | "type": "TEMPLATE", 219 | "key": "parameterValue", 220 | "value": "{{dlv - ecommerce.transaction_id}}" 221 | } 222 | ] 223 | }, 224 | { 225 | "type": "MAP", 226 | "map": [ 227 | { 228 | "type": "TEMPLATE", 229 | "key": "parameter", 230 | "value": "coupon" 231 | }, 232 | { 233 | "type": "TEMPLATE", 234 | "key": "parameterValue", 235 | "value": "{{dlv - ecommerce.coupon}}" 236 | } 237 | ] 238 | }, 239 | { 240 | "type": "MAP", 241 | "map": [ 242 | { 243 | "type": "TEMPLATE", 244 | "key": "parameter", 245 | "value": "shipping" 246 | }, 247 | { 248 | "type": "TEMPLATE", 249 | "key": "parameterValue", 250 | "value": "{{dlv - ecommerce.shipping}}" 251 | } 252 | ] 253 | }, 254 | { 255 | "type": "MAP", 256 | "map": [ 257 | { 258 | "type": "TEMPLATE", 259 | "key": "parameter", 260 | "value": "tax" 261 | }, 262 | { 263 | "type": "TEMPLATE", 264 | "key": "parameterValue", 265 | "value": "{{dlv - ecommerce.tax}}" 266 | } 267 | ] 268 | }, 269 | { 270 | "type": "MAP", 271 | "map": [ 272 | { 273 | "type": "TEMPLATE", 274 | "key": "parameter", 275 | "value": "items" 276 | }, 277 | { 278 | "type": "TEMPLATE", 279 | "key": "parameterValue", 280 | "value": "{{dlv - ecommerce.items}}" 281 | } 282 | ] 283 | }, 284 | { 285 | "type": "MAP", 286 | "map": [ 287 | { 288 | "type": "TEMPLATE", 289 | "key": "parameter", 290 | "value": "user_data" 291 | }, 292 | { 293 | "type": "TEMPLATE", 294 | "key": "parameterValue", 295 | "value": "{{ga4 - user_provided_data}}" 296 | } 297 | ] 298 | } 299 | ] 300 | }, 301 | { 302 | "type": "TEMPLATE", 303 | "key": "eventName", 304 | "value": "purchase" 305 | }, 306 | { 307 | "type": "TEMPLATE", 308 | "key": "measurementIdOverride", 309 | "value": "{{const - ga4 measurement id}}" 310 | }, 311 | { 312 | "type": "TEMPLATE", 313 | "key": "eventSettingsVariable", 314 | "value": "{{ga4 - shared_event_settings}}" 315 | } 316 | ], 317 | "fingerprint": "1719899888050", 318 | "firingTriggerId": [ 319 | "56" 320 | ], 321 | "parentFolderId": "26", 322 | "tagFiringOption": "ONCE_PER_EVENT", 323 | "monitoringMetadata": { 324 | "type": "MAP" 325 | }, 326 | "consentSettings": { 327 | "consentStatus": "NOT_SET" 328 | } 329 | }, 330 | { 331 | "accountId": "6004967354", 332 | "containerId": "189035636", 333 | "tagId": "60", 334 | "name": "[Stape] GA4 - add_to_cart", 335 | "type": "gaawe", 336 | "parameter": [ 337 | { 338 | "type": "BOOLEAN", 339 | "key": "sendEcommerceData", 340 | "value": "false" 341 | }, 342 | { 343 | "type": "BOOLEAN", 344 | "key": "enhancedUserId", 345 | "value": "false" 346 | }, 347 | { 348 | "type": "LIST", 349 | "key": "eventSettingsTable", 350 | "list": [ 351 | { 352 | "type": "MAP", 353 | "map": [ 354 | { 355 | "type": "TEMPLATE", 356 | "key": "parameter", 357 | "value": "currency" 358 | }, 359 | { 360 | "type": "TEMPLATE", 361 | "key": "parameterValue", 362 | "value": "{{dlv - ecommerce.currency}}" 363 | } 364 | ] 365 | }, 366 | { 367 | "type": "MAP", 368 | "map": [ 369 | { 370 | "type": "TEMPLATE", 371 | "key": "parameter", 372 | "value": "value" 373 | }, 374 | { 375 | "type": "TEMPLATE", 376 | "key": "parameterValue", 377 | "value": "{{dlv - ecommerce.value}}" 378 | } 379 | ] 380 | }, 381 | { 382 | "type": "MAP", 383 | "map": [ 384 | { 385 | "type": "TEMPLATE", 386 | "key": "parameter", 387 | "value": "items" 388 | }, 389 | { 390 | "type": "TEMPLATE", 391 | "key": "parameterValue", 392 | "value": "{{dlv - ecommerce.items}}" 393 | } 394 | ] 395 | } 396 | ] 397 | }, 398 | { 399 | "type": "TEMPLATE", 400 | "key": "eventName", 401 | "value": "add_to_cart" 402 | }, 403 | { 404 | "type": "TEMPLATE", 405 | "key": "measurementIdOverride", 406 | "value": "{{const - ga4 measurement id}}" 407 | }, 408 | { 409 | "type": "TEMPLATE", 410 | "key": "eventSettingsVariable", 411 | "value": "{{ga4 - shared_event_settings}}" 412 | } 413 | ], 414 | "fingerprint": "1719899666620", 415 | "firingTriggerId": [ 416 | "59" 417 | ], 418 | "parentFolderId": "26", 419 | "tagFiringOption": "ONCE_PER_EVENT", 420 | "monitoringMetadata": { 421 | "type": "MAP" 422 | }, 423 | "consentSettings": { 424 | "consentStatus": "NOT_SET" 425 | } 426 | }, 427 | { 428 | "accountId": "6004967354", 429 | "containerId": "189035636", 430 | "tagId": "61", 431 | "name": "[Stape] GA4 - _Config", 432 | "type": "googtag", 433 | "priority": { 434 | "type": "INTEGER", 435 | "value": "10" 436 | }, 437 | "parameter": [ 438 | { 439 | "type": "TEMPLATE", 440 | "key": "tagId", 441 | "value": "{{const - ga4 measurement id}}" 442 | }, 443 | { 444 | "type": "LIST", 445 | "key": "configSettingsTable", 446 | "list": [ 447 | { 448 | "type": "MAP", 449 | "map": [ 450 | { 451 | "type": "TEMPLATE", 452 | "key": "parameter", 453 | "value": "server_container_url" 454 | }, 455 | { 456 | "type": "TEMPLATE", 457 | "key": "parameterValue", 458 | "value": "{{const - server_container_url}}" 459 | } 460 | ] 461 | }, 462 | { 463 | "type": "MAP", 464 | "map": [ 465 | { 466 | "type": "TEMPLATE", 467 | "key": "parameter", 468 | "value": "send_page_view" 469 | }, 470 | { 471 | "type": "TEMPLATE", 472 | "key": "parameterValue", 473 | "value": "false" 474 | } 475 | ] 476 | } 477 | ] 478 | } 479 | ], 480 | "fingerprint": "1719899666620", 481 | "firingTriggerId": [ 482 | "2147479573" 483 | ], 484 | "parentFolderId": "26", 485 | "tagFiringOption": "ONCE_PER_EVENT", 486 | "monitoringMetadata": { 487 | "type": "MAP" 488 | }, 489 | "consentSettings": { 490 | "consentStatus": "NOT_SET" 491 | } 492 | }, 493 | { 494 | "accountId": "6004967354", 495 | "containerId": "189035636", 496 | "tagId": "63", 497 | "name": "[Stape] GA4 - page_view", 498 | "type": "gaawe", 499 | "parameter": [ 500 | { 501 | "type": "BOOLEAN", 502 | "key": "sendEcommerceData", 503 | "value": "false" 504 | }, 505 | { 506 | "type": "BOOLEAN", 507 | "key": "enhancedUserId", 508 | "value": "false" 509 | }, 510 | { 511 | "type": "TEMPLATE", 512 | "key": "eventName", 513 | "value": "page_view" 514 | }, 515 | { 516 | "type": "TEMPLATE", 517 | "key": "measurementIdOverride", 518 | "value": "{{const - ga4 measurement id}}" 519 | }, 520 | { 521 | "type": "TEMPLATE", 522 | "key": "eventSettingsVariable", 523 | "value": "{{ga4 - shared_event_settings}}" 524 | } 525 | ], 526 | "fingerprint": "1719899666621", 527 | "firingTriggerId": [ 528 | "50" 529 | ], 530 | "parentFolderId": "26", 531 | "tagFiringOption": "ONCE_PER_EVENT", 532 | "monitoringMetadata": { 533 | "type": "MAP" 534 | }, 535 | "consentSettings": { 536 | "consentStatus": "NOT_SET" 537 | } 538 | }, 539 | { 540 | "accountId": "6004967354", 541 | "containerId": "189035636", 542 | "tagId": "65", 543 | "name": "[Stape] GA4 - begin_checkout", 544 | "type": "gaawe", 545 | "parameter": [ 546 | { 547 | "type": "BOOLEAN", 548 | "key": "sendEcommerceData", 549 | "value": "false" 550 | }, 551 | { 552 | "type": "BOOLEAN", 553 | "key": "enhancedUserId", 554 | "value": "false" 555 | }, 556 | { 557 | "type": "LIST", 558 | "key": "eventSettingsTable", 559 | "list": [ 560 | { 561 | "type": "MAP", 562 | "map": [ 563 | { 564 | "type": "TEMPLATE", 565 | "key": "parameter", 566 | "value": "currency" 567 | }, 568 | { 569 | "type": "TEMPLATE", 570 | "key": "parameterValue", 571 | "value": "{{dlv - ecommerce.currency}}" 572 | } 573 | ] 574 | }, 575 | { 576 | "type": "MAP", 577 | "map": [ 578 | { 579 | "type": "TEMPLATE", 580 | "key": "parameter", 581 | "value": "value" 582 | }, 583 | { 584 | "type": "TEMPLATE", 585 | "key": "parameterValue", 586 | "value": "{{dlv - ecommerce.value}}" 587 | } 588 | ] 589 | }, 590 | { 591 | "type": "MAP", 592 | "map": [ 593 | { 594 | "type": "TEMPLATE", 595 | "key": "parameter", 596 | "value": "items" 597 | }, 598 | { 599 | "type": "TEMPLATE", 600 | "key": "parameterValue", 601 | "value": "{{dlv - ecommerce.items}}" 602 | } 603 | ] 604 | } 605 | ] 606 | }, 607 | { 608 | "type": "TEMPLATE", 609 | "key": "eventName", 610 | "value": "begin_checkout" 611 | }, 612 | { 613 | "type": "TEMPLATE", 614 | "key": "measurementIdOverride", 615 | "value": "{{const - ga4 measurement id}}" 616 | }, 617 | { 618 | "type": "TEMPLATE", 619 | "key": "eventSettingsVariable", 620 | "value": "{{ga4 - shared_event_settings}}" 621 | } 622 | ], 623 | "fingerprint": "1719899666622", 624 | "firingTriggerId": [ 625 | "42" 626 | ], 627 | "parentFolderId": "26", 628 | "tagFiringOption": "ONCE_PER_EVENT", 629 | "monitoringMetadata": { 630 | "type": "MAP" 631 | }, 632 | "consentSettings": { 633 | "consentStatus": "NOT_SET" 634 | } 635 | }, 636 | { 637 | "accountId": "6004967354", 638 | "containerId": "189035636", 639 | "tagId": "66", 640 | "name": "[Stape] GA4 - add_shipping_info", 641 | "type": "gaawe", 642 | "parameter": [ 643 | { 644 | "type": "BOOLEAN", 645 | "key": "sendEcommerceData", 646 | "value": "false" 647 | }, 648 | { 649 | "type": "BOOLEAN", 650 | "key": "enhancedUserId", 651 | "value": "false" 652 | }, 653 | { 654 | "type": "LIST", 655 | "key": "eventSettingsTable", 656 | "list": [ 657 | { 658 | "type": "MAP", 659 | "map": [ 660 | { 661 | "type": "TEMPLATE", 662 | "key": "parameter", 663 | "value": "currency" 664 | }, 665 | { 666 | "type": "TEMPLATE", 667 | "key": "parameterValue", 668 | "value": "{{dlv - ecommerce.currency}}" 669 | } 670 | ] 671 | }, 672 | { 673 | "type": "MAP", 674 | "map": [ 675 | { 676 | "type": "TEMPLATE", 677 | "key": "parameter", 678 | "value": "value" 679 | }, 680 | { 681 | "type": "TEMPLATE", 682 | "key": "parameterValue", 683 | "value": "{{dlv - ecommerce.value}}" 684 | } 685 | ] 686 | }, 687 | { 688 | "type": "MAP", 689 | "map": [ 690 | { 691 | "type": "TEMPLATE", 692 | "key": "parameter", 693 | "value": "items" 694 | }, 695 | { 696 | "type": "TEMPLATE", 697 | "key": "parameterValue", 698 | "value": "{{dlv - ecommerce.items}}" 699 | } 700 | ] 701 | } 702 | ] 703 | }, 704 | { 705 | "type": "TEMPLATE", 706 | "key": "eventName", 707 | "value": "add_shipping_info" 708 | }, 709 | { 710 | "type": "TEMPLATE", 711 | "key": "measurementIdOverride", 712 | "value": "{{const - ga4 measurement id}}" 713 | }, 714 | { 715 | "type": "TEMPLATE", 716 | "key": "eventSettingsVariable", 717 | "value": "{{ga4 - shared_event_settings}}" 718 | } 719 | ], 720 | "fingerprint": "1719899666622", 721 | "firingTriggerId": [ 722 | "54" 723 | ], 724 | "parentFolderId": "26", 725 | "tagFiringOption": "ONCE_PER_EVENT", 726 | "monitoringMetadata": { 727 | "type": "MAP" 728 | }, 729 | "consentSettings": { 730 | "consentStatus": "NOT_SET" 731 | } 732 | }, 733 | { 734 | "accountId": "6004967354", 735 | "containerId": "189035636", 736 | "tagId": "72", 737 | "name": "[Stape] GA4 - search", 738 | "type": "gaawe", 739 | "parameter": [ 740 | { 741 | "type": "BOOLEAN", 742 | "key": "sendEcommerceData", 743 | "value": "false" 744 | }, 745 | { 746 | "type": "BOOLEAN", 747 | "key": "enhancedUserId", 748 | "value": "false" 749 | }, 750 | { 751 | "type": "LIST", 752 | "key": "eventSettingsTable", 753 | "list": [ 754 | { 755 | "type": "MAP", 756 | "map": [ 757 | { 758 | "type": "TEMPLATE", 759 | "key": "parameter", 760 | "value": "search_term" 761 | }, 762 | { 763 | "type": "TEMPLATE", 764 | "key": "parameterValue", 765 | "value": "{{dlv - ecommerce.search_term}}" 766 | } 767 | ] 768 | } 769 | ] 770 | }, 771 | { 772 | "type": "TEMPLATE", 773 | "key": "eventName", 774 | "value": "search" 775 | }, 776 | { 777 | "type": "TEMPLATE", 778 | "key": "measurementIdOverride", 779 | "value": "{{const - ga4 measurement id}}" 780 | }, 781 | { 782 | "type": "TEMPLATE", 783 | "key": "eventSettingsVariable", 784 | "value": "{{ga4 - shared_event_settings}}" 785 | } 786 | ], 787 | "fingerprint": "1719899666624", 788 | "firingTriggerId": [ 789 | "37" 790 | ], 791 | "parentFolderId": "26", 792 | "tagFiringOption": "ONCE_PER_EVENT", 793 | "monitoringMetadata": { 794 | "type": "MAP" 795 | }, 796 | "consentSettings": { 797 | "consentStatus": "NOT_SET" 798 | } 799 | }, 800 | { 801 | "accountId": "6004967354", 802 | "containerId": "189035636", 803 | "tagId": "73", 804 | "name": "[Stape] GA4 - add_payment_info", 805 | "type": "gaawe", 806 | "parameter": [ 807 | { 808 | "type": "BOOLEAN", 809 | "key": "sendEcommerceData", 810 | "value": "false" 811 | }, 812 | { 813 | "type": "BOOLEAN", 814 | "key": "enhancedUserId", 815 | "value": "false" 816 | }, 817 | { 818 | "type": "LIST", 819 | "key": "eventSettingsTable", 820 | "list": [ 821 | { 822 | "type": "MAP", 823 | "map": [ 824 | { 825 | "type": "TEMPLATE", 826 | "key": "parameter", 827 | "value": "currency" 828 | }, 829 | { 830 | "type": "TEMPLATE", 831 | "key": "parameterValue", 832 | "value": "{{dlv - ecommerce.currency}}" 833 | } 834 | ] 835 | }, 836 | { 837 | "type": "MAP", 838 | "map": [ 839 | { 840 | "type": "TEMPLATE", 841 | "key": "parameter", 842 | "value": "value" 843 | }, 844 | { 845 | "type": "TEMPLATE", 846 | "key": "parameterValue", 847 | "value": "{{dlv - ecommerce.value}}" 848 | } 849 | ] 850 | }, 851 | { 852 | "type": "MAP", 853 | "map": [ 854 | { 855 | "type": "TEMPLATE", 856 | "key": "parameter", 857 | "value": "items" 858 | }, 859 | { 860 | "type": "TEMPLATE", 861 | "key": "parameterValue", 862 | "value": "{{dlv - ecommerce.items}}" 863 | } 864 | ] 865 | } 866 | ] 867 | }, 868 | { 869 | "type": "TEMPLATE", 870 | "key": "eventName", 871 | "value": "add_payment_info" 872 | }, 873 | { 874 | "type": "TEMPLATE", 875 | "key": "measurementIdOverride", 876 | "value": "{{const - ga4 measurement id}}" 877 | }, 878 | { 879 | "type": "TEMPLATE", 880 | "key": "eventSettingsVariable", 881 | "value": "{{ga4 - shared_event_settings}}" 882 | } 883 | ], 884 | "fingerprint": "1719899666625", 885 | "firingTriggerId": [ 886 | "25" 887 | ], 888 | "parentFolderId": "26", 889 | "tagFiringOption": "ONCE_PER_EVENT", 890 | "monitoringMetadata": { 891 | "type": "MAP" 892 | }, 893 | "consentSettings": { 894 | "consentStatus": "NOT_SET" 895 | } 896 | } 897 | ], 898 | "trigger": [ 899 | { 900 | "accountId": "6004967354", 901 | "containerId": "189035636", 902 | "triggerId": "15", 903 | "name": "ce - view_item_stape", 904 | "type": "CUSTOM_EVENT", 905 | "customEventFilter": [ 906 | { 907 | "type": "EQUALS", 908 | "parameter": [ 909 | { 910 | "type": "TEMPLATE", 911 | "key": "arg0", 912 | "value": "{{_event}}" 913 | }, 914 | { 915 | "type": "TEMPLATE", 916 | "key": "arg1", 917 | "value": "view_item_stape" 918 | } 919 | ] 920 | } 921 | ], 922 | "fingerprint": "1719899666541", 923 | "parentFolderId": "14" 924 | }, 925 | { 926 | "accountId": "6004967354", 927 | "containerId": "189035636", 928 | "triggerId": "25", 929 | "name": "ce - add_payment_info_stape", 930 | "type": "CUSTOM_EVENT", 931 | "customEventFilter": [ 932 | { 933 | "type": "EQUALS", 934 | "parameter": [ 935 | { 936 | "type": "TEMPLATE", 937 | "key": "arg0", 938 | "value": "{{_event}}" 939 | }, 940 | { 941 | "type": "TEMPLATE", 942 | "key": "arg1", 943 | "value": "add_payment_info_stape" 944 | } 945 | ] 946 | } 947 | ], 948 | "fingerprint": "1719899666546", 949 | "parentFolderId": "14" 950 | }, 951 | { 952 | "accountId": "6004967354", 953 | "containerId": "189035636", 954 | "triggerId": "37", 955 | "name": "ce - search_submitted_stape", 956 | "type": "CUSTOM_EVENT", 957 | "customEventFilter": [ 958 | { 959 | "type": "EQUALS", 960 | "parameter": [ 961 | { 962 | "type": "TEMPLATE", 963 | "key": "arg0", 964 | "value": "{{_event}}" 965 | }, 966 | { 967 | "type": "TEMPLATE", 968 | "key": "arg1", 969 | "value": "search_submitted_stape" 970 | } 971 | ] 972 | } 973 | ], 974 | "fingerprint": "1719899666609", 975 | "parentFolderId": "14" 976 | }, 977 | { 978 | "accountId": "6004967354", 979 | "containerId": "189035636", 980 | "triggerId": "42", 981 | "name": "ce - begin_checkout_stape", 982 | "type": "CUSTOM_EVENT", 983 | "customEventFilter": [ 984 | { 985 | "type": "EQUALS", 986 | "parameter": [ 987 | { 988 | "type": "TEMPLATE", 989 | "key": "arg0", 990 | "value": "{{_event}}" 991 | }, 992 | { 993 | "type": "TEMPLATE", 994 | "key": "arg1", 995 | "value": "begin_checkout_stape" 996 | } 997 | ] 998 | } 999 | ], 1000 | "fingerprint": "1719899666611", 1001 | "parentFolderId": "14" 1002 | }, 1003 | { 1004 | "accountId": "6004967354", 1005 | "containerId": "189035636", 1006 | "triggerId": "50", 1007 | "name": "dom - page_view", 1008 | "type": "DOM_READY", 1009 | "fingerprint": "1719899666616", 1010 | "parentFolderId": "14" 1011 | }, 1012 | { 1013 | "accountId": "6004967354", 1014 | "containerId": "189035636", 1015 | "triggerId": "54", 1016 | "name": "ce - add_shipping_info_stape", 1017 | "type": "CUSTOM_EVENT", 1018 | "customEventFilter": [ 1019 | { 1020 | "type": "EQUALS", 1021 | "parameter": [ 1022 | { 1023 | "type": "TEMPLATE", 1024 | "key": "arg0", 1025 | "value": "{{_event}}" 1026 | }, 1027 | { 1028 | "type": "TEMPLATE", 1029 | "key": "arg1", 1030 | "value": "add_shipping_info_stape" 1031 | } 1032 | ] 1033 | } 1034 | ], 1035 | "fingerprint": "1719899666618", 1036 | "parentFolderId": "14" 1037 | }, 1038 | { 1039 | "accountId": "6004967354", 1040 | "containerId": "189035636", 1041 | "triggerId": "56", 1042 | "name": "ce - purchase_stape", 1043 | "type": "CUSTOM_EVENT", 1044 | "customEventFilter": [ 1045 | { 1046 | "type": "EQUALS", 1047 | "parameter": [ 1048 | { 1049 | "type": "TEMPLATE", 1050 | "key": "arg0", 1051 | "value": "{{_event}}" 1052 | }, 1053 | { 1054 | "type": "TEMPLATE", 1055 | "key": "arg1", 1056 | "value": "purchase_stape" 1057 | } 1058 | ] 1059 | } 1060 | ], 1061 | "fingerprint": "1719899666618", 1062 | "parentFolderId": "14" 1063 | }, 1064 | { 1065 | "accountId": "6004967354", 1066 | "containerId": "189035636", 1067 | "triggerId": "59", 1068 | "name": "ce - add_to_cart_stape", 1069 | "type": "CUSTOM_EVENT", 1070 | "customEventFilter": [ 1071 | { 1072 | "type": "EQUALS", 1073 | "parameter": [ 1074 | { 1075 | "type": "TEMPLATE", 1076 | "key": "arg0", 1077 | "value": "{{_event}}" 1078 | }, 1079 | { 1080 | "type": "TEMPLATE", 1081 | "key": "arg1", 1082 | "value": "add_to_cart_stape" 1083 | } 1084 | ] 1085 | } 1086 | ], 1087 | "fingerprint": "1719899666620", 1088 | "parentFolderId": "14" 1089 | } 1090 | ], 1091 | "variable": [ 1092 | { 1093 | "accountId": "6004967354", 1094 | "containerId": "189035636", 1095 | "variableId": "4", 1096 | "name": "dlv - user_data.customer_id", 1097 | "type": "v", 1098 | "parameter": [ 1099 | { 1100 | "type": "INTEGER", 1101 | "key": "dataLayerVersion", 1102 | "value": "2" 1103 | }, 1104 | { 1105 | "type": "BOOLEAN", 1106 | "key": "setDefaultValue", 1107 | "value": "false" 1108 | }, 1109 | { 1110 | "type": "TEMPLATE", 1111 | "key": "name", 1112 | "value": "user_data.customer_id" 1113 | } 1114 | ], 1115 | "fingerprint": "1719899666534", 1116 | "parentFolderId": "3", 1117 | "formatValue": {} 1118 | }, 1119 | { 1120 | "accountId": "6004967354", 1121 | "containerId": "189035636", 1122 | "variableId": "5", 1123 | "name": "dlv - user_data.city", 1124 | "type": "v", 1125 | "parameter": [ 1126 | { 1127 | "type": "INTEGER", 1128 | "key": "dataLayerVersion", 1129 | "value": "2" 1130 | }, 1131 | { 1132 | "type": "BOOLEAN", 1133 | "key": "setDefaultValue", 1134 | "value": "false" 1135 | }, 1136 | { 1137 | "type": "TEMPLATE", 1138 | "key": "name", 1139 | "value": "user_data.city" 1140 | } 1141 | ], 1142 | "fingerprint": "1719899666535", 1143 | "parentFolderId": "3", 1144 | "formatValue": {} 1145 | }, 1146 | { 1147 | "accountId": "6004967354", 1148 | "containerId": "189035636", 1149 | "variableId": "7", 1150 | "name": "const - server_container_url", 1151 | "type": "c", 1152 | "parameter": [ 1153 | { 1154 | "type": "TEMPLATE", 1155 | "key": "value", 1156 | "value": "https://MOCK.REPLACE.com" 1157 | } 1158 | ], 1159 | "fingerprint": "1719899929122", 1160 | "parentFolderId": "6", 1161 | "formatValue": {} 1162 | }, 1163 | { 1164 | "accountId": "6004967354", 1165 | "containerId": "189035636", 1166 | "variableId": "8", 1167 | "name": "dlv - ecommerce.value", 1168 | "type": "v", 1169 | "parameter": [ 1170 | { 1171 | "type": "INTEGER", 1172 | "key": "dataLayerVersion", 1173 | "value": "2" 1174 | }, 1175 | { 1176 | "type": "BOOLEAN", 1177 | "key": "setDefaultValue", 1178 | "value": "false" 1179 | }, 1180 | { 1181 | "type": "TEMPLATE", 1182 | "key": "name", 1183 | "value": "ecommerce.value" 1184 | } 1185 | ], 1186 | "fingerprint": "1719899666536", 1187 | "parentFolderId": "3", 1188 | "formatValue": {} 1189 | }, 1190 | { 1191 | "accountId": "6004967354", 1192 | "containerId": "189035636", 1193 | "variableId": "10", 1194 | "name": "dlv - ecommerce.items", 1195 | "type": "v", 1196 | "parameter": [ 1197 | { 1198 | "type": "INTEGER", 1199 | "key": "dataLayerVersion", 1200 | "value": "2" 1201 | }, 1202 | { 1203 | "type": "BOOLEAN", 1204 | "key": "setDefaultValue", 1205 | "value": "false" 1206 | }, 1207 | { 1208 | "type": "TEMPLATE", 1209 | "key": "name", 1210 | "value": "ecommerce.items" 1211 | } 1212 | ], 1213 | "fingerprint": "1719899666537", 1214 | "parentFolderId": "3", 1215 | "formatValue": {} 1216 | }, 1217 | { 1218 | "accountId": "6004967354", 1219 | "containerId": "189035636", 1220 | "variableId": "13", 1221 | "name": "ucv - ecomm_prodid", 1222 | "type": "cvt_189035636_12", 1223 | "parameter": [ 1224 | { 1225 | "type": "TEMPLATE", 1226 | "key": "keyQt", 1227 | "value": "quantity" 1228 | }, 1229 | { 1230 | "type": "TEMPLATE", 1231 | "key": "keyPr", 1232 | "value": "price" 1233 | }, 1234 | { 1235 | "type": "TEMPLATE", 1236 | "key": "ga4_task", 1237 | "value": "ids" 1238 | }, 1239 | { 1240 | "type": "TEMPLATE", 1241 | "key": "keyId", 1242 | "value": "item_id" 1243 | }, 1244 | { 1245 | "type": "TEMPLATE", 1246 | "key": "orderItems", 1247 | "value": "{{dlv - ecommerce.items}}" 1248 | }, 1249 | { 1250 | "type": "TEMPLATE", 1251 | "key": "keyNm", 1252 | "value": "item_name" 1253 | }, 1254 | { 1255 | "type": "TEMPLATE", 1256 | "key": "platform", 1257 | "value": "ga4" 1258 | } 1259 | ], 1260 | "fingerprint": "1719899780669", 1261 | "parentFolderId": "11", 1262 | "formatValue": {} 1263 | }, 1264 | { 1265 | "accountId": "6004967354", 1266 | "containerId": "189035636", 1267 | "variableId": "17", 1268 | "name": "dlv - user_data.last_name", 1269 | "type": "v", 1270 | "parameter": [ 1271 | { 1272 | "type": "INTEGER", 1273 | "key": "dataLayerVersion", 1274 | "value": "2" 1275 | }, 1276 | { 1277 | "type": "BOOLEAN", 1278 | "key": "setDefaultValue", 1279 | "value": "false" 1280 | }, 1281 | { 1282 | "type": "TEMPLATE", 1283 | "key": "name", 1284 | "value": "user_data.last_name" 1285 | } 1286 | ], 1287 | "fingerprint": "1719899666541", 1288 | "parentFolderId": "3", 1289 | "formatValue": {} 1290 | }, 1291 | { 1292 | "accountId": "6004967354", 1293 | "containerId": "189035636", 1294 | "variableId": "18", 1295 | "name": "dlv - ecommerce.currency", 1296 | "type": "v", 1297 | "parameter": [ 1298 | { 1299 | "type": "INTEGER", 1300 | "key": "dataLayerVersion", 1301 | "value": "2" 1302 | }, 1303 | { 1304 | "type": "BOOLEAN", 1305 | "key": "setDefaultValue", 1306 | "value": "false" 1307 | }, 1308 | { 1309 | "type": "TEMPLATE", 1310 | "key": "name", 1311 | "value": "ecommerce.currency" 1312 | } 1313 | ], 1314 | "fingerprint": "1719899666542", 1315 | "parentFolderId": "3", 1316 | "formatValue": {} 1317 | }, 1318 | { 1319 | "accountId": "6004967354", 1320 | "containerId": "189035636", 1321 | "variableId": "19", 1322 | "name": "dlv - user_data.email", 1323 | "type": "v", 1324 | "parameter": [ 1325 | { 1326 | "type": "INTEGER", 1327 | "key": "dataLayerVersion", 1328 | "value": "2" 1329 | }, 1330 | { 1331 | "type": "BOOLEAN", 1332 | "key": "setDefaultValue", 1333 | "value": "false" 1334 | }, 1335 | { 1336 | "type": "TEMPLATE", 1337 | "key": "name", 1338 | "value": "user_data.email" 1339 | } 1340 | ], 1341 | "fingerprint": "1719899666542", 1342 | "parentFolderId": "3", 1343 | "formatValue": {} 1344 | }, 1345 | { 1346 | "accountId": "6004967354", 1347 | "containerId": "189035636", 1348 | "variableId": "20", 1349 | "name": "dlv - user_data.first_name", 1350 | "type": "v", 1351 | "parameter": [ 1352 | { 1353 | "type": "INTEGER", 1354 | "key": "dataLayerVersion", 1355 | "value": "2" 1356 | }, 1357 | { 1358 | "type": "BOOLEAN", 1359 | "key": "setDefaultValue", 1360 | "value": "false" 1361 | }, 1362 | { 1363 | "type": "TEMPLATE", 1364 | "key": "name", 1365 | "value": "user_data.first_name" 1366 | } 1367 | ], 1368 | "fingerprint": "1719899666542", 1369 | "parentFolderId": "3", 1370 | "formatValue": {} 1371 | }, 1372 | { 1373 | "accountId": "6004967354", 1374 | "containerId": "189035636", 1375 | "variableId": "27", 1376 | "name": "dlv - ecomm_pagetype", 1377 | "type": "v", 1378 | "parameter": [ 1379 | { 1380 | "type": "INTEGER", 1381 | "key": "dataLayerVersion", 1382 | "value": "2" 1383 | }, 1384 | { 1385 | "type": "BOOLEAN", 1386 | "key": "setDefaultValue", 1387 | "value": "false" 1388 | }, 1389 | { 1390 | "type": "TEMPLATE", 1391 | "key": "name", 1392 | "value": "ecomm_pagetype" 1393 | } 1394 | ], 1395 | "fingerprint": "1719899666547", 1396 | "parentFolderId": "3", 1397 | "formatValue": {} 1398 | }, 1399 | { 1400 | "accountId": "6004967354", 1401 | "containerId": "189035636", 1402 | "variableId": "28", 1403 | "name": "ga4 - shared_event_settings", 1404 | "type": "gtes", 1405 | "parameter": [ 1406 | { 1407 | "type": "LIST", 1408 | "key": "eventSettingsTable", 1409 | "list": [ 1410 | { 1411 | "type": "MAP", 1412 | "map": [ 1413 | { 1414 | "type": "TEMPLATE", 1415 | "key": "parameter", 1416 | "value": "server_container_url" 1417 | }, 1418 | { 1419 | "type": "TEMPLATE", 1420 | "key": "parameterValue", 1421 | "value": "{{const - server_container_url}}" 1422 | } 1423 | ] 1424 | }, 1425 | { 1426 | "type": "MAP", 1427 | "map": [ 1428 | { 1429 | "type": "TEMPLATE", 1430 | "key": "parameter", 1431 | "value": "ecomm_prodid" 1432 | }, 1433 | { 1434 | "type": "TEMPLATE", 1435 | "key": "parameterValue", 1436 | "value": "{{ucv - ecomm_prodid}}" 1437 | } 1438 | ] 1439 | }, 1440 | { 1441 | "type": "MAP", 1442 | "map": [ 1443 | { 1444 | "type": "TEMPLATE", 1445 | "key": "parameter", 1446 | "value": "ecomm_totalvalue" 1447 | }, 1448 | { 1449 | "type": "TEMPLATE", 1450 | "key": "parameterValue", 1451 | "value": "{{dlv - ecommerce.value}}" 1452 | } 1453 | ] 1454 | }, 1455 | { 1456 | "type": "MAP", 1457 | "map": [ 1458 | { 1459 | "type": "TEMPLATE", 1460 | "key": "parameter", 1461 | "value": "ecomm_pagetype" 1462 | }, 1463 | { 1464 | "type": "TEMPLATE", 1465 | "key": "parameterValue", 1466 | "value": "{{dlv - ecomm_pagetype}}" 1467 | } 1468 | ] 1469 | } 1470 | ] 1471 | } 1472 | ], 1473 | "fingerprint": "1719899666548", 1474 | "parentFolderId": "26" 1475 | }, 1476 | { 1477 | "accountId": "6004967354", 1478 | "containerId": "189035636", 1479 | "variableId": "29", 1480 | "name": "const - ga4 measurement id", 1481 | "type": "c", 1482 | "parameter": [ 1483 | { 1484 | "type": "TEMPLATE", 1485 | "key": "value", 1486 | "value": "PUT_YOUR_VALUE_HERE" 1487 | } 1488 | ], 1489 | "fingerprint": "1719899666549", 1490 | "parentFolderId": "6", 1491 | "formatValue": {} 1492 | }, 1493 | { 1494 | "accountId": "6004967354", 1495 | "containerId": "189035636", 1496 | "variableId": "31", 1497 | "name": "dlv - user_data.street", 1498 | "type": "v", 1499 | "parameter": [ 1500 | { 1501 | "type": "INTEGER", 1502 | "key": "dataLayerVersion", 1503 | "value": "2" 1504 | }, 1505 | { 1506 | "type": "BOOLEAN", 1507 | "key": "setDefaultValue", 1508 | "value": "false" 1509 | }, 1510 | { 1511 | "type": "TEMPLATE", 1512 | "key": "name", 1513 | "value": "user_data.street" 1514 | } 1515 | ], 1516 | "fingerprint": "1719899666607", 1517 | "parentFolderId": "3", 1518 | "formatValue": {} 1519 | }, 1520 | { 1521 | "accountId": "6004967354", 1522 | "containerId": "189035636", 1523 | "variableId": "32", 1524 | "name": "dlv - user_data.region", 1525 | "type": "v", 1526 | "parameter": [ 1527 | { 1528 | "type": "INTEGER", 1529 | "key": "dataLayerVersion", 1530 | "value": "2" 1531 | }, 1532 | { 1533 | "type": "BOOLEAN", 1534 | "key": "setDefaultValue", 1535 | "value": "false" 1536 | }, 1537 | { 1538 | "type": "TEMPLATE", 1539 | "key": "name", 1540 | "value": "user_data.region" 1541 | } 1542 | ], 1543 | "fingerprint": "1719899666607", 1544 | "parentFolderId": "3", 1545 | "formatValue": {} 1546 | }, 1547 | { 1548 | "accountId": "6004967354", 1549 | "containerId": "189035636", 1550 | "variableId": "33", 1551 | "name": "dlv - user_data.zip", 1552 | "type": "v", 1553 | "parameter": [ 1554 | { 1555 | "type": "INTEGER", 1556 | "key": "dataLayerVersion", 1557 | "value": "2" 1558 | }, 1559 | { 1560 | "type": "BOOLEAN", 1561 | "key": "setDefaultValue", 1562 | "value": "false" 1563 | }, 1564 | { 1565 | "type": "TEMPLATE", 1566 | "key": "name", 1567 | "value": "user_data.zip" 1568 | } 1569 | ], 1570 | "fingerprint": "1719899666608", 1571 | "parentFolderId": "3", 1572 | "formatValue": {} 1573 | }, 1574 | { 1575 | "accountId": "6004967354", 1576 | "containerId": "189035636", 1577 | "variableId": "34", 1578 | "name": "dlv - user_data.phone", 1579 | "type": "v", 1580 | "parameter": [ 1581 | { 1582 | "type": "INTEGER", 1583 | "key": "dataLayerVersion", 1584 | "value": "2" 1585 | }, 1586 | { 1587 | "type": "BOOLEAN", 1588 | "key": "setDefaultValue", 1589 | "value": "false" 1590 | }, 1591 | { 1592 | "type": "TEMPLATE", 1593 | "key": "name", 1594 | "value": "user_data.phone" 1595 | } 1596 | ], 1597 | "fingerprint": "1719899666608", 1598 | "parentFolderId": "3", 1599 | "formatValue": {} 1600 | }, 1601 | { 1602 | "accountId": "6004967354", 1603 | "containerId": "189035636", 1604 | "variableId": "35", 1605 | "name": "dlv - user_data.country", 1606 | "type": "v", 1607 | "parameter": [ 1608 | { 1609 | "type": "INTEGER", 1610 | "key": "dataLayerVersion", 1611 | "value": "2" 1612 | }, 1613 | { 1614 | "type": "BOOLEAN", 1615 | "key": "setDefaultValue", 1616 | "value": "false" 1617 | }, 1618 | { 1619 | "type": "TEMPLATE", 1620 | "key": "name", 1621 | "value": "user_data.country" 1622 | } 1623 | ], 1624 | "fingerprint": "1719899666608", 1625 | "parentFolderId": "3", 1626 | "formatValue": {} 1627 | }, 1628 | { 1629 | "accountId": "6004967354", 1630 | "containerId": "189035636", 1631 | "variableId": "36", 1632 | "name": "ga4 - user_provided_data", 1633 | "type": "awec", 1634 | "parameter": [ 1635 | { 1636 | "type": "TEMPLATE", 1637 | "key": "mode", 1638 | "value": "MANUAL" 1639 | }, 1640 | { 1641 | "type": "TEMPLATE", 1642 | "key": "country", 1643 | "value": "{{dlv - user_data.country}}" 1644 | }, 1645 | { 1646 | "type": "TEMPLATE", 1647 | "key": "city", 1648 | "value": "{{dlv - user_data.city}}" 1649 | }, 1650 | { 1651 | "type": "TEMPLATE", 1652 | "key": "street", 1653 | "value": "{{dlv - user_data.street}}" 1654 | }, 1655 | { 1656 | "type": "TEMPLATE", 1657 | "key": "last_name", 1658 | "value": "{{dlv - user_data.last_name}}" 1659 | }, 1660 | { 1661 | "type": "TEMPLATE", 1662 | "key": "phone_number", 1663 | "value": "{{dlv - user_data.phone}}" 1664 | }, 1665 | { 1666 | "type": "TEMPLATE", 1667 | "key": "region", 1668 | "value": "{{dlv - user_data.region}}" 1669 | }, 1670 | { 1671 | "type": "TEMPLATE", 1672 | "key": "postal_code", 1673 | "value": "{{dlv - user_data.zip}}" 1674 | }, 1675 | { 1676 | "type": "TEMPLATE", 1677 | "key": "first_name", 1678 | "value": "{{dlv - user_data.first_name}}" 1679 | }, 1680 | { 1681 | "type": "TEMPLATE", 1682 | "key": "email", 1683 | "value": "{{dlv - user_data.email}}" 1684 | } 1685 | ], 1686 | "fingerprint": "1719899666609", 1687 | "parentFolderId": "26", 1688 | "formatValue": {} 1689 | }, 1690 | { 1691 | "accountId": "6004967354", 1692 | "containerId": "189035636", 1693 | "variableId": "38", 1694 | "name": "dlv - ecommerce.search_term", 1695 | "type": "v", 1696 | "parameter": [ 1697 | { 1698 | "type": "INTEGER", 1699 | "key": "dataLayerVersion", 1700 | "value": "2" 1701 | }, 1702 | { 1703 | "type": "BOOLEAN", 1704 | "key": "setDefaultValue", 1705 | "value": "false" 1706 | }, 1707 | { 1708 | "type": "TEMPLATE", 1709 | "key": "name", 1710 | "value": "ecommerce.search_term" 1711 | } 1712 | ], 1713 | "fingerprint": "1719899666610", 1714 | "parentFolderId": "3", 1715 | "formatValue": {} 1716 | }, 1717 | { 1718 | "accountId": "6004967354", 1719 | "containerId": "189035636", 1720 | "variableId": "40", 1721 | "name": "dlv - ecommerce.shipping", 1722 | "type": "v", 1723 | "parameter": [ 1724 | { 1725 | "type": "INTEGER", 1726 | "key": "dataLayerVersion", 1727 | "value": "2" 1728 | }, 1729 | { 1730 | "type": "BOOLEAN", 1731 | "key": "setDefaultValue", 1732 | "value": "false" 1733 | }, 1734 | { 1735 | "type": "TEMPLATE", 1736 | "key": "name", 1737 | "value": "ecommerce.shipping" 1738 | } 1739 | ], 1740 | "fingerprint": "1719899666611", 1741 | "parentFolderId": "3", 1742 | "formatValue": {} 1743 | }, 1744 | { 1745 | "accountId": "6004967354", 1746 | "containerId": "189035636", 1747 | "variableId": "52", 1748 | "name": "dlv - ecommerce.tax", 1749 | "type": "v", 1750 | "parameter": [ 1751 | { 1752 | "type": "INTEGER", 1753 | "key": "dataLayerVersion", 1754 | "value": "2" 1755 | }, 1756 | { 1757 | "type": "BOOLEAN", 1758 | "key": "setDefaultValue", 1759 | "value": "false" 1760 | }, 1761 | { 1762 | "type": "TEMPLATE", 1763 | "key": "name", 1764 | "value": "ecommerce.tax" 1765 | } 1766 | ], 1767 | "fingerprint": "1719899666617", 1768 | "parentFolderId": "3", 1769 | "formatValue": {} 1770 | }, 1771 | { 1772 | "accountId": "6004967354", 1773 | "containerId": "189035636", 1774 | "variableId": "55", 1775 | "name": "dlv - ecommerce.coupon", 1776 | "type": "v", 1777 | "parameter": [ 1778 | { 1779 | "type": "INTEGER", 1780 | "key": "dataLayerVersion", 1781 | "value": "2" 1782 | }, 1783 | { 1784 | "type": "BOOLEAN", 1785 | "key": "setDefaultValue", 1786 | "value": "false" 1787 | }, 1788 | { 1789 | "type": "TEMPLATE", 1790 | "key": "name", 1791 | "value": "ecommerce.coupon" 1792 | } 1793 | ], 1794 | "fingerprint": "1719899666618", 1795 | "parentFolderId": "3", 1796 | "formatValue": {} 1797 | }, 1798 | { 1799 | "accountId": "6004967354", 1800 | "containerId": "189035636", 1801 | "variableId": "57", 1802 | "name": "dlv - ecommerce.transaction_id", 1803 | "type": "v", 1804 | "parameter": [ 1805 | { 1806 | "type": "INTEGER", 1807 | "key": "dataLayerVersion", 1808 | "value": "2" 1809 | }, 1810 | { 1811 | "type": "BOOLEAN", 1812 | "key": "setDefaultValue", 1813 | "value": "false" 1814 | }, 1815 | { 1816 | "type": "TEMPLATE", 1817 | "key": "name", 1818 | "value": "ecommerce.transaction_id" 1819 | } 1820 | ], 1821 | "fingerprint": "1719899666619", 1822 | "parentFolderId": "3", 1823 | "formatValue": {} 1824 | } 1825 | ], 1826 | "folder": [ 1827 | { 1828 | "accountId": "6004967354", 1829 | "containerId": "189035636", 1830 | "folderId": "3", 1831 | "name": "[Stape] Data Layer", 1832 | "fingerprint": "1719899846143" 1833 | }, 1834 | { 1835 | "accountId": "6004967354", 1836 | "containerId": "189035636", 1837 | "folderId": "6", 1838 | "name": "[Stape] _Settings", 1839 | "fingerprint": "1719899666535" 1840 | }, 1841 | { 1842 | "accountId": "6004967354", 1843 | "containerId": "189035636", 1844 | "folderId": "11", 1845 | "name": "[Stape] Data Other", 1846 | "fingerprint": "1719899666538" 1847 | }, 1848 | { 1849 | "accountId": "6004967354", 1850 | "containerId": "189035636", 1851 | "folderId": "14", 1852 | "name": "[Stape] Triggers", 1853 | "fingerprint": "1719899666540" 1854 | }, 1855 | { 1856 | "accountId": "6004967354", 1857 | "containerId": "189035636", 1858 | "folderId": "26", 1859 | "name": "[Stape] GA4", 1860 | "fingerprint": "1719899666547" 1861 | } 1862 | ], 1863 | "builtInVariable": [ 1864 | { 1865 | "accountId": "6004967354", 1866 | "containerId": "189035636", 1867 | "type": "PAGE_URL", 1868 | "name": "Page URL" 1869 | }, 1870 | { 1871 | "accountId": "6004967354", 1872 | "containerId": "189035636", 1873 | "type": "PAGE_HOSTNAME", 1874 | "name": "Page Hostname" 1875 | }, 1876 | { 1877 | "accountId": "6004967354", 1878 | "containerId": "189035636", 1879 | "type": "PAGE_PATH", 1880 | "name": "Page Path" 1881 | }, 1882 | { 1883 | "accountId": "6004967354", 1884 | "containerId": "189035636", 1885 | "type": "REFERRER", 1886 | "name": "Referrer" 1887 | }, 1888 | { 1889 | "accountId": "6004967354", 1890 | "containerId": "189035636", 1891 | "type": "EVENT", 1892 | "name": "Event" 1893 | }, 1894 | { 1895 | "accountId": "6004967354", 1896 | "containerId": "189035636", 1897 | "type": "CLICK_ELEMENT", 1898 | "name": "Click Element" 1899 | }, 1900 | { 1901 | "accountId": "6004967354", 1902 | "containerId": "189035636", 1903 | "type": "CLICK_CLASSES", 1904 | "name": "Click Classes" 1905 | }, 1906 | { 1907 | "accountId": "6004967354", 1908 | "containerId": "189035636", 1909 | "type": "CLICK_ID", 1910 | "name": "Click ID" 1911 | }, 1912 | { 1913 | "accountId": "6004967354", 1914 | "containerId": "189035636", 1915 | "type": "CLICK_TARGET", 1916 | "name": "Click Target" 1917 | }, 1918 | { 1919 | "accountId": "6004967354", 1920 | "containerId": "189035636", 1921 | "type": "CLICK_URL", 1922 | "name": "Click URL" 1923 | }, 1924 | { 1925 | "accountId": "6004967354", 1926 | "containerId": "189035636", 1927 | "type": "CLICK_TEXT", 1928 | "name": "Click Text" 1929 | }, 1930 | { 1931 | "accountId": "6004967354", 1932 | "containerId": "189035636", 1933 | "type": "FORM_ELEMENT", 1934 | "name": "Form Element" 1935 | }, 1936 | { 1937 | "accountId": "6004967354", 1938 | "containerId": "189035636", 1939 | "type": "FORM_CLASSES", 1940 | "name": "Form Classes" 1941 | }, 1942 | { 1943 | "accountId": "6004967354", 1944 | "containerId": "189035636", 1945 | "type": "FORM_ID", 1946 | "name": "Form ID" 1947 | }, 1948 | { 1949 | "accountId": "6004967354", 1950 | "containerId": "189035636", 1951 | "type": "FORM_TARGET", 1952 | "name": "Form Target" 1953 | }, 1954 | { 1955 | "accountId": "6004967354", 1956 | "containerId": "189035636", 1957 | "type": "FORM_URL", 1958 | "name": "Form URL" 1959 | }, 1960 | { 1961 | "accountId": "6004967354", 1962 | "containerId": "189035636", 1963 | "type": "FORM_TEXT", 1964 | "name": "Form Text" 1965 | }, 1966 | { 1967 | "accountId": "6004967354", 1968 | "containerId": "189035636", 1969 | "type": "ERROR_MESSAGE", 1970 | "name": "Error Message" 1971 | }, 1972 | { 1973 | "accountId": "6004967354", 1974 | "containerId": "189035636", 1975 | "type": "ERROR_URL", 1976 | "name": "Error URL" 1977 | }, 1978 | { 1979 | "accountId": "6004967354", 1980 | "containerId": "189035636", 1981 | "type": "ERROR_LINE", 1982 | "name": "Error Line" 1983 | }, 1984 | { 1985 | "accountId": "6004967354", 1986 | "containerId": "189035636", 1987 | "type": "NEW_HISTORY_FRAGMENT", 1988 | "name": "New History Fragment" 1989 | }, 1990 | { 1991 | "accountId": "6004967354", 1992 | "containerId": "189035636", 1993 | "type": "OLD_HISTORY_FRAGMENT", 1994 | "name": "Old History Fragment" 1995 | }, 1996 | { 1997 | "accountId": "6004967354", 1998 | "containerId": "189035636", 1999 | "type": "NEW_HISTORY_STATE", 2000 | "name": "New History State" 2001 | }, 2002 | { 2003 | "accountId": "6004967354", 2004 | "containerId": "189035636", 2005 | "type": "OLD_HISTORY_STATE", 2006 | "name": "Old History State" 2007 | }, 2008 | { 2009 | "accountId": "6004967354", 2010 | "containerId": "189035636", 2011 | "type": "HISTORY_SOURCE", 2012 | "name": "History Source" 2013 | }, 2014 | { 2015 | "accountId": "6004967354", 2016 | "containerId": "189035636", 2017 | "type": "CONTAINER_VERSION", 2018 | "name": "Container Version" 2019 | }, 2020 | { 2021 | "accountId": "6004967354", 2022 | "containerId": "189035636", 2023 | "type": "DEBUG_MODE", 2024 | "name": "Debug Mode" 2025 | }, 2026 | { 2027 | "accountId": "6004967354", 2028 | "containerId": "189035636", 2029 | "type": "RANDOM_NUMBER", 2030 | "name": "Random Number" 2031 | }, 2032 | { 2033 | "accountId": "6004967354", 2034 | "containerId": "189035636", 2035 | "type": "CONTAINER_ID", 2036 | "name": "Container ID" 2037 | }, 2038 | { 2039 | "accountId": "6004967354", 2040 | "containerId": "189035636", 2041 | "type": "HTML_ID", 2042 | "name": "HTML ID" 2043 | }, 2044 | { 2045 | "accountId": "6004967354", 2046 | "containerId": "189035636", 2047 | "type": "ENVIRONMENT_NAME", 2048 | "name": "Environment Name" 2049 | }, 2050 | { 2051 | "accountId": "6004967354", 2052 | "containerId": "189035636", 2053 | "type": "VIDEO_PROVIDER", 2054 | "name": "Video Provider" 2055 | }, 2056 | { 2057 | "accountId": "6004967354", 2058 | "containerId": "189035636", 2059 | "type": "VIDEO_URL", 2060 | "name": "Video URL" 2061 | }, 2062 | { 2063 | "accountId": "6004967354", 2064 | "containerId": "189035636", 2065 | "type": "VIDEO_TITLE", 2066 | "name": "Video Title" 2067 | }, 2068 | { 2069 | "accountId": "6004967354", 2070 | "containerId": "189035636", 2071 | "type": "VIDEO_DURATION", 2072 | "name": "Video Duration" 2073 | }, 2074 | { 2075 | "accountId": "6004967354", 2076 | "containerId": "189035636", 2077 | "type": "VIDEO_PERCENT", 2078 | "name": "Video Percent" 2079 | }, 2080 | { 2081 | "accountId": "6004967354", 2082 | "containerId": "189035636", 2083 | "type": "VIDEO_VISIBLE", 2084 | "name": "Video Visible" 2085 | }, 2086 | { 2087 | "accountId": "6004967354", 2088 | "containerId": "189035636", 2089 | "type": "VIDEO_STATUS", 2090 | "name": "Video Status" 2091 | }, 2092 | { 2093 | "accountId": "6004967354", 2094 | "containerId": "189035636", 2095 | "type": "VIDEO_CURRENT_TIME", 2096 | "name": "Video Current Time" 2097 | }, 2098 | { 2099 | "accountId": "6004967354", 2100 | "containerId": "189035636", 2101 | "type": "SCROLL_DEPTH_THRESHOLD", 2102 | "name": "Scroll Depth Threshold" 2103 | }, 2104 | { 2105 | "accountId": "6004967354", 2106 | "containerId": "189035636", 2107 | "type": "SCROLL_DEPTH_UNITS", 2108 | "name": "Scroll Depth Units" 2109 | }, 2110 | { 2111 | "accountId": "6004967354", 2112 | "containerId": "189035636", 2113 | "type": "SCROLL_DEPTH_DIRECTION", 2114 | "name": "Scroll Direction" 2115 | }, 2116 | { 2117 | "accountId": "6004967354", 2118 | "containerId": "189035636", 2119 | "type": "ELEMENT_VISIBILITY_RATIO", 2120 | "name": "Percent Visible" 2121 | }, 2122 | { 2123 | "accountId": "6004967354", 2124 | "containerId": "189035636", 2125 | "type": "ELEMENT_VISIBILITY_TIME", 2126 | "name": "On-Screen Duration" 2127 | } 2128 | ], 2129 | "fingerprint": "1719914829994", 2130 | "tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6004967354/containers/189035636/versions/0?apiLink=version", 2131 | "customTemplate": [ 2132 | { 2133 | "accountId": "6004967354", 2134 | "containerId": "189035636", 2135 | "templateId": "12", 2136 | "name": "Universal Conversions Variable", 2137 | "fingerprint": "1719899666538", 2138 | "templateData": "___TERMS_OF_SERVICE___\n\nBy creating or modifying this file you agree to Google Tag Manager's Community\nTemplate Gallery Developer Terms of Service available at\nhttps://developers.google.com/tag-manager/gallery-tos (or such other URL as\nGoogle may provide), as modified from time to time.\n\n\n___INFO___\n\n{\n \"type\": \"MACRO\",\n \"id\": \"cvt_temp_public_id\",\n \"version\": 1,\n \"securityGroups\": [],\n \"displayName\": \"Universal Conversions Variable\",\n \"description\": \"Generates the desired parameter from an array.\\nby Stape.io\",\n \"containerContexts\": [\n \"WEB\"\n ],\n \"brand\": {\n \"displayName\": \"stape-io\",\n \"id\": \"github.com_stape-io\"\n }\n}\n\n\n___TEMPLATE_PARAMETERS___\n\n[\n {\n \"type\": \"SELECT\",\n \"name\": \"platform\",\n \"displayName\": \"Platform\",\n \"macrosInSelect\": false,\n \"selectItems\": [\n {\n \"value\": \"meta\",\n \"displayValue\": \"Meta Pixel/CAPI\"\n },\n {\n \"value\": \"ga4\",\n \"displayValue\": \"Google Analytics 4\"\n },\n {\n \"value\": \"tiktok\",\n \"displayValue\": \"TikTok CAPI\"\n },\n {\n \"value\": \"twitter\",\n \"displayValue\": \"Twitter CAPI\"\n },\n {\n \"value\": \"microsoft\",\n \"displayValue\": \"Microsoft Ads\"\n },\n {\n \"value\": \"klaviyo\",\n \"displayValue\": \"Klaviyo\"\n },\n {\n \"value\": \"snap\",\n \"displayValue\": \"Snapchat\"\n },\n {\n \"value\": \"gAdsOff\",\n \"displayValue\": \"Google Ads Offline\"\n },\n {\n \"value\": \"pinterest\",\n \"displayValue\": \"Pinterest\"\n },\n {\n \"value\": \"rakuten\",\n \"displayValue\": \"Rakuten\"\n },\n {\n \"value\": \"criteo\",\n \"displayValue\": \"Criteo\"\n }\n ],\n \"simpleValueType\": true,\n \"help\": \"Choose which platform to generate parameter\"\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"meta_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"contents\",\n \"displayValue\": \"contents [ {} ]\"\n },\n {\n \"value\": \"ids\",\n \"displayValue\": \"content_ids [ ]\"\n },\n {\n \"value\": \"name\",\n \"displayValue\": \"content_name \\u0027 \\u0027\",\n \"help\": \"will only return value if there is one object in product array, since content_name parameter is applicable only to single product (type) events\"\n },\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"numitems\",\n \"displayValue\": \"num_items\",\n \"subParams\": []\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"meta\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"ga4_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"items\",\n \"displayValue\": \"items\",\n \"help\": \"\"\n },\n {\n \"value\": \"ids\",\n \"displayValue\": \"ecomm_prodid\",\n \"help\": \"for Ads Remarketing\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"ga4\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"rakuten_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"items\",\n \"displayValue\": \"line_items\",\n \"help\": \"\",\n \"subParams\": []\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"rakuten\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"gAdsOff_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"items\",\n \"displayValue\": \"items\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"gAdsOff\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"klaviyo_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"item\",\n \"displayValue\": \"item\",\n \"help\": \"for ViewedProduct event\"\n },\n {\n \"value\": \"items\",\n \"displayValue\": \"items\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"klaviyo\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"microsoft_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"value\",\n \"displayValue\": \"revenue_value\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"microsoft\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"tiktok_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"contents\",\n \"displayValue\": \"contents [ {} ]\",\n \"subParams\": [\n {\n \"type\": \"SELECT\",\n \"name\": \"contentType\",\n \"displayName\": \"content_type parameter\",\n \"macrosInSelect\": false,\n \"selectItems\": [\n {\n \"value\": \"product\",\n \"displayValue\": \"product\"\n },\n {\n \"value\": \"product_group\",\n \"displayValue\": \"product_group\"\n }\n ],\n \"simpleValueType\": true,\n \"help\": \"choose either product or product_group as is required by TikTok events API\",\n \"defaultValue\": \"product\",\n \"enablingConditions\": []\n }\n ]\n },\n {\n \"value\": \"name\",\n \"displayValue\": \"content_name \\u0027 \\u0027\",\n \"help\": \"will only return value if there is one object in product array, since content_name parameter is applicable only to single product (type) events\"\n },\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"numitems\",\n \"displayValue\": \"num_items\",\n \"subParams\": []\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"tiktok\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"twitter_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"contents\",\n \"displayValue\": \"contents [{ }]\"\n },\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"subParams\": [],\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"twitter\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"criteo_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"items\",\n \"displayValue\": \"items [{ }]\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"criteo\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"pinterest_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"items\",\n \"displayValue\": \"line_items [{ }]\"\n },\n {\n \"value\": \"value\",\n \"displayValue\": \"value\",\n \"subParams\": [],\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"ids\",\n \"displayValue\": \"content_ids [ ]\"\n },\n {\n \"value\": \"contents\",\n \"displayValue\": \"contents [{ }]\"\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"pinterest\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"RADIO\",\n \"name\": \"snap_task\",\n \"displayName\": \"What to return\",\n \"radioItems\": [\n {\n \"value\": \"value\",\n \"displayValue\": \"price\",\n \"help\": \"use wisely, value will be calculated based on product prices and will not account for discounts. not recommended for purchase events\"\n },\n {\n \"value\": \"ids\",\n \"displayValue\": \"item_ids\"\n },\n {\n \"value\": \"numitems\",\n \"displayValue\": \"number_items\",\n \"subParams\": []\n }\n ],\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"snap\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"GROUP\",\n \"name\": \"arrayGroup\",\n \"displayName\": \"Input Array\",\n \"groupStyle\": \"ZIPPY_OPEN\",\n \"subParams\": [\n {\n \"type\": \"TEXT\",\n \"name\": \"orderItems\",\n \"displayName\": \"Array of Objects\",\n \"simpleValueType\": true,\n \"help\": \"[{}] any structured array of item objects\",\n \"valueValidators\": [\n {\n \"type\": \"NON_EMPTY\"\n }\n ]\n }\n ]\n },\n {\n \"type\": \"GROUP\",\n \"name\": \"keyGroup\",\n \"displayName\": \"Input Array Keys\",\n \"groupStyle\": \"ZIPPY_OPEN\",\n \"subParams\": [\n {\n \"type\": \"TEXT\",\n \"name\": \"keyId\",\n \"displayName\": \"Product ID/SKU\",\n \"simpleValueType\": true,\n \"valueValidators\": [\n {\n \"type\": \"NON_EMPTY\"\n }\n ]\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyNm\",\n \"displayName\": \"Product Name\",\n \"simpleValueType\": true,\n \"valueValidators\": [\n {\n \"type\": \"NON_EMPTY\"\n }\n ]\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyPr\",\n \"displayName\": \"Product Price\",\n \"simpleValueType\": true,\n \"valueValidators\": [\n {\n \"type\": \"NON_EMPTY\"\n }\n ]\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyQt\",\n \"displayName\": \"Product Quantity\",\n \"simpleValueType\": true,\n \"valueValidators\": [\n {\n \"type\": \"NON_EMPTY\"\n }\n ]\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyCat\",\n \"displayName\": \"Product Category\",\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"ga4\",\n \"type\": \"EQUALS\"\n },\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"klaviyo\",\n \"type\": \"EQUALS\"\n },\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"twitter\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyImg\",\n \"displayName\": \"Product Image URL\",\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"klaviyo\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"CHECKBOX\",\n \"name\": \"buildCatTree\",\n \"checkboxText\": \"Build Category Tree?\",\n \"simpleValueType\": true,\n \"help\": \"If your items have multiple categories, create a tree in \\u0027cat1 \\u003e cat2 \\u003e cat3\\u0027 string format\",\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"rakuten\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyCatList\",\n \"displayName\": \"Category parameter keys\",\n \"simpleValueType\": true,\n \"help\": \"coma separated in order of appearance in tree, like: \\u0027cat_key,mykey,custom_var_7\\u0027\",\n \"enablingConditions\": [\n {\n \"paramName\": \"buildCatTree\",\n \"paramValue\": true,\n \"type\": \"EQUALS\"\n }\n ]\n }\n ],\n \"help\": \"keys for corresponding parameters within input array\"\n },\n {\n \"type\": \"GROUP\",\n \"name\": \"rakDiscountGroup\",\n \"displayName\": \"Discount Configuration\",\n \"groupStyle\": \"ZIPPY_OPEN\",\n \"subParams\": [\n {\n \"type\": \"SELECT\",\n \"name\": \"discConfig\",\n \"displayName\": \"Choose discount configuration method\",\n \"macrosInSelect\": false,\n \"selectItems\": [\n {\n \"value\": \"item_level\",\n \"displayValue\": \"From item-level\"\n },\n {\n \"value\": \"order_level\",\n \"displayValue\": \"From order-level\"\n },\n {\n \"value\": \"none\",\n \"displayValue\": \"None\"\n }\n ],\n \"simpleValueType\": true,\n \"defaultValue\": \"none\"\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"keyDiscItemLevel\",\n \"displayName\": \"Parameter key for item-level discount\",\n \"simpleValueType\": true,\n \"enablingConditions\": [\n {\n \"paramName\": \"discConfig\",\n \"paramValue\": \"item_level\",\n \"type\": \"EQUALS\"\n }\n ],\n \"help\": \"discount parameter KEY for input array\"\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"discOrderLevel\",\n \"displayName\": \"Order-level discount amount\",\n \"simpleValueType\": true,\n \"help\": \"order-level discount VALUE\",\n \"enablingConditions\": [\n {\n \"paramName\": \"discConfig\",\n \"paramValue\": \"order_level\",\n \"type\": \"EQUALS\"\n }\n ]\n }\n ],\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"rakuten\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"GROUP\",\n \"name\": \"rakTaxGroup\",\n \"displayName\": \"Tax Configuration\",\n \"groupStyle\": \"ZIPPY_OPEN\",\n \"subParams\": [\n {\n \"type\": \"SELECT\",\n \"name\": \"taxPriceConfig\",\n \"displayName\": \"Item price tax application\",\n \"macrosInSelect\": false,\n \"selectItems\": [\n {\n \"value\": \"priceTaxless\",\n \"displayValue\": \"Item price is taxless\"\n },\n {\n \"value\": \"priceDeduct\",\n \"displayValue\": \"Item price needs tax deduction\"\n }\n ],\n \"simpleValueType\": true\n },\n {\n \"type\": \"SELECT\",\n \"name\": \"taxDiscountConfig\",\n \"displayName\": \"Discount tax application\",\n \"macrosInSelect\": false,\n \"selectItems\": [\n {\n \"value\": \"discTaxless\",\n \"displayValue\": \"Discount is taxless\"\n },\n {\n \"value\": \"discDeduct\",\n \"displayValue\": \"Discount needs tax deduction\"\n }\n ],\n \"simpleValueType\": true\n },\n {\n \"type\": \"TEXT\",\n \"name\": \"taxDeductPercent\",\n \"displayName\": \"Tax %\",\n \"simpleValueType\": true,\n \"help\": \"just number, no % symbol\",\n \"valueValidators\": [],\n \"enablingConditions\": [\n {\n \"paramName\": \"taxPriceConfig\",\n \"paramValue\": \"priceDeduct\",\n \"type\": \"EQUALS\"\n },\n {\n \"paramName\": \"taxDiscountConfig\",\n \"paramValue\": \"discDeduct\",\n \"type\": \"EQUALS\"\n }\n ]\n }\n ],\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"rakuten\",\n \"type\": \"EQUALS\"\n }\n ]\n },\n {\n \"type\": \"GROUP\",\n \"name\": \"customParamsGroup\",\n \"displayName\": \"Additional/Optional Parameters\",\n \"groupStyle\": \"ZIPPY_OPEN\",\n \"subParams\": [\n {\n \"type\": \"SIMPLE_TABLE\",\n \"name\": \"customParams\",\n \"displayName\": \"\",\n \"simpleTableColumns\": [\n {\n \"defaultValue\": \"\",\n \"displayName\": \"Custom parameter key in your array\",\n \"name\": \"cusKey\",\n \"type\": \"TEXT\"\n },\n {\n \"defaultValue\": \"\",\n \"displayName\": \"Custom parameter name to return\",\n \"name\": \"cusName\",\n \"type\": \"TEXT\"\n }\n ],\n \"newRowButtonText\": \"Add Custom Parameter\",\n \"alwaysInSummary\": false\n }\n ],\n \"enablingConditions\": [\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"ga4\",\n \"type\": \"EQUALS\"\n },\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"klaviyo\",\n \"type\": \"EQUALS\"\n },\n {\n \"paramName\": \"platform\",\n \"paramValue\": \"rakuten\",\n \"type\": \"EQUALS\"\n }\n ]\n }\n]\n\n\n___SANDBOXED_JS_FOR_WEB_TEMPLATE___\n\nconst makeInteger = require('makeInteger');\nconst makeNumber = require('makeNumber');\nconst makeString = require('makeString');\nconst makeTableMap = require('makeTableMap');\nconst getType = require('getType');\nconst math = require('Math');\n\nlet keyId = data.keyId;\nlet keyPr = data.keyPr;\nlet keyNm = data.keyNm;\nlet keyQt = data.keyQt;\nlet keyVar = data.keyVar;\nlet keyCat = data.keyCat;\nlet keyImg = data.keyImg;\nlet contentType = data.contentType;\nlet taxDeductPercent = toFixed2(makeNumber(data.taxDeductPercent));\nlet task; \nconst customParamMap = data.customParams ? makeTableMap(data.customParams, 'cusKey', 'cusName') : {};\n\nlet keyDisc = data.keyDiscItemLevel;\n//let rakTax = makeNumber(data.rakTax);\n\nlet keyCatList = data.keyCatList ? data.keyCatList.split(',') : [];\n\nif (!data.orderItems || !data.orderItems.length)\n return ;\nelse\n return runTask();\n\n\nfunction runTask() {\n\n if (data.meta_task)\n task = data.meta_task;\n\n if (data.ga4_task)\n task = data.ga4_task;\n\n if (data.tiktok_task)\n task = data.tiktok_task;\n\n if (data.twitter_task)\n task = data.twitter_task;\n\n if (data.microsoft_task)\n task = data.microsoft_task;\n\n if (data.klaviyo_task)\n task = data.klaviyo_task;\n \n if (data.snap_task)\n task = data.snap_task;\n\n if (data.gAdsOff_task)\n task = data.gAdsOff_task;\n \n if (data.pinterest_task)\n task = data.pinterest_task;\n \n if (data.rakuten_task)\n task = data.rakuten_task;\n \n if (data.criteo_task)\n task = data.criteo_task;\n\n if (task === 'contents')\n return getContents(data.orderItems, data.platform);\n\n if (task === 'ids')\n return getContentIds(data.orderItems);\n\n if (task === 'name')\n return getContentName(data.orderItems);\n\n if (task === 'value')\n return getValue(data.orderItems);\n\n if (task === 'numitems')\n return getNumItems(data.orderItems);\n\n if (task === 'items')\n return getItems(data.orderItems, data.platform);\n \n if (task === 'item')\n return getItem(data.orderItems);\n} \n\n\nfunction toFixed2(num){\n return math.round(num * 100) / 100;\n}\n\n\nfunction makeNumberToFixed2(str) {\n \n const dotIndex = str.indexOf('.');\n \n if (dotIndex < 0)\n return makeNumber(str + '.00');\n \n let integerPart = str.substring(0, dotIndex);\n let decimalPart = str.substring(dotIndex + 1, dotIndex + 3);\n \n let a = decimalPart[0] ? decimalPart[0] : '0';\n let b = decimalPart[1] ? decimalPart[1] : '0';\n\n return makeNumber(integerPart + '.' + a + b);\n}\n\n\nfunction getItem(arr) {\n\n let cat = [];\n cat.push(arr[0][keyCat]);\n \n let item = {\n 'ProductID': arr[0][keyId],\n 'ProductName': arr[0][keyNm],\n 'Price': arr[0][keyPr],\n 'ImageURL': arr[0][keyImg],\n 'Categories': cat\n };\n\n return item;\n}\n\n\n\nfunction getContents(arr, platform) {\n \n let contents = [];\n \n for (let i = 0; i < arr.length; i++) {\n \n let qt = 1;\n if (arr[i][keyQt])\n qt = arr[i][keyQt];\n \n if (platform === 'meta') {\n contents.push({\n 'id': arr[i][keyId],\n 'quantity': qt,\n 'item_price': arr[i][keyPr]\n });\n }\n \n if (platform === 'tiktok') {\n contents.push({\n 'content_id': arr[i][keyId],\n 'content_type': contentType,\n 'content_category': arr[i][keyCat],\n 'content_name': arr[i][keyNm],\n 'quantity': qt,\n 'price': arr[i][keyPr] ? makeNumber(arr[i][keyPr]) : 0,\n });\n }\n \n if (platform === 'twitter') {\n contents.push({\n 'content_id': arr[i][keyId],\n 'content_name': arr[i][keyNm],\n 'content_type': arr[i][keyCat],\n 'num_items': qt,\n 'content_price': arr[i][keyPr]\n });\n }\n \n if (platform === 'pinterest') {\n contents.push({\n 'quantity': qt,\n 'item_price': arr[i][keyPr] ? makeString(arr[i][keyPr]) : '0'\n });\n }\n \n }\n\n return contents;\n}\n\n\nfunction getContentIds(arr) {\n \n let content_ids = [];\n\n for (let i = 0; i < arr.length; i++) {\n content_ids.push(arr[i][keyId]);\n }\n \n return content_ids;\n}\n\n\nfunction getValue(arr) {\n \n let value = 0; \n let price;\n \n for (let i = 0; i < arr.length; i++) {\n\n price = arr[i][keyPr] ? makeNumber(arr[i][keyPr]) : 0;\n \n \n if (arr[i][keyQt]) {\n\n if (getType(arr[i][keyQt]) === 'string')\n value = value + makeInteger(arr[i][keyQt]) * price; \n else \n value = value + arr[i][keyQt] * price;\n \n }\n else\n value = value + price;\n }\n \n let res = math.round(value * 100) / 100; \n return res;\n}\n\n\nfunction getItems(arr, platform) {\n\n let items = [];\n let totalDiscount = 0;\n if (data.discConfig === 'order_level') {\n \n totalDiscount = makeNumber(data.discOrderLevel);\n \n if (data.taxDiscountConfig == 'discDeduct') {\n totalDiscount = totalDiscount / ((taxDeductPercent / 100) + 1);\n }\n \n }\n \n for (let i = 0; i < arr.length; i++) {\n \n let qt = 1;\n if (arr[i][keyQt])\n qt = makeInteger(arr[i][keyQt]);\n\n if (platform === 'ga4') { \n \n let itemObj = {\n 'item_id': arr[i][keyId],\n 'item_name': arr[i][keyNm],\n 'quantity': qt,\n 'price': arr[i][keyPr],\n 'item_category': arr[i][keyCat]\n };\n \n for (let prop in customParamMap) {\n if (customParamMap[prop]) {\n if (prop === 'discountamountqty')\n itemObj[customParamMap[prop]] = arr[i][prop] * qt;\n else\n itemObj[customParamMap[prop]] = arr[i][prop];\n }\n } \n \n items.push(itemObj); \n \n }\n \n if (platform === 'klaviyo') { \n \n let cat = [];\n cat.push(arr[i][keyCat]);\n \n let itemObj = {\n 'ProductID': arr[i][keyId],\n 'ProductName': arr[i][keyNm],\n 'Quantity': qt,\n 'ItemPrice': arr[i][keyPr],\n 'ImageURL': arr[i][keyImg],\n 'ProductCategories': cat\n };\n\n for (let prop in customParamMap) {\n if (customParamMap[prop]) { \n itemObj[customParamMap[prop]] = arr[i][prop];\n }\n }\n \n items.push(itemObj);\n\n }\n \n \n if (platform === 'criteo') { \n \n let itemObj = {\n 'id': arr[i][keyId],\n 'quantity': qt,\n 'price': arr[i][keyPr]\n };\n \n items.push(itemObj); \n \n }\n \n \n if (platform === 'gAdsOff') { \n \n items.push({\n 'productId': makeString(arr[i][keyId]),\n 'quantity': qt,\n 'unitPrice': makeNumber(arr[i][keyPr])\n });\n }\n \n \n if (platform === 'pinterest') {\n items.push({\n 'product_id': arr[i][keyId],\n 'product_name': arr[i][keyNm],\n 'product_quantity': qt,\n 'product_price': arr[i][keyPr] ? makeNumber(arr[i][keyPr]) : 0\n });\n }\n \n if (platform === 'rakuten') {\n \n //let p = arr[i][keyPr];\n let p = toFixed2(makeNumber(arr[i][keyPr]));\n let price;\n\n if (data.taxPriceConfig === 'priceDeduct' && taxDeductPercent && taxDeductPercent > 0) { \n let tmp = p / ((taxDeductPercent / 100 ) + 1);\n price = (math.round(tmp * 100) / 100) * 100 * qt;\n price = math.round(price * 100) / 100;\n }\n \n \n if (data.discConfig === 'item_level' && arr[i][keyDisc]) {\n let tmp;\n let disc = makeNumber(arr[i][keyDisc]); //.replace(',','')\n if (data.taxDiscountConfig == 'discDeduct' && taxDeductPercent && taxDeductPercent > 0) {\n disc = disc / ((taxDeductPercent / 100) + 1);\n }\n \n totalDiscount = toFixed2(makeNumber(totalDiscount) + toFixed2(disc));\n \n }\n\n\n let itemObj = {\n 'sku': arr[i][keyId],\n 'product_name': arr[i][keyNm],\n 'quantity': qt,\n 'amount': price > 0 ? price : toFixed2(p * 100 * qt),\n 'optional_data': {}\n };\n \n \n if (keyCatList.length > 0) {\n let catArr = [];\n keyCatList.forEach(element => catArr.push(arr[i][element]));\n itemObj.optional_data = { 'category': catArr.join(' > ') }; \n } \n \n for (let prop in customParamMap) {\n if (customParamMap[prop]) { \n itemObj.optional_data[customParamMap[prop]] = arr[i][prop];\n }\n } \n \n items.push(itemObj);\n }\n \n } \n \n if (platform === 'rakuten' && totalDiscount > 0) {\n \n items.push({\n 'sku': \"Discount\",\n 'quantity': \"0\",\n 'amount': toFixed2(((totalDiscount - (totalDiscount * 2)) * 100)), \n 'product_name': \"Discount\"\n });\n }\n \n return items;\n}\n\n\nfunction getNumItems(arr) {\n\n let num_items = 0;\n \n for (let i = 0; i < arr.length; i++) {\n \n if (arr[i][keyQt]) {\n \n if (getType(arr[i][keyQt]) === 'string')\n num_items = num_items + makeInteger(arr[i][keyQt]);\n else\n num_items = num_items + arr[i][keyQt];\n }\n else\n num_items = num_items + 1;\n \n }\n \n return num_items;\n}\n\n\nfunction getContentName(arr) {\n\n let content_name = '';\n \n if (arr.length == 1)\n content_name = arr[0][keyNm];\n \n return content_name;\n}\n\n\n___TESTS___\n\nscenarios: []\n\n\n___NOTES___\n\nCreated on 12/10/2021, 11:11:20\n\n\n", 2139 | "galleryReference": { 2140 | "host": "github.com", 2141 | "owner": "stape-io", 2142 | "repository": "universal-conversions-variable", 2143 | "version": "dda3caf625190b07afc336100ccabda058242605", 2144 | "signature": "cb7ffac18634849c1c412b2ce1f3851a433733ec640732b23410eecad2ffdfe1" 2145 | } 2146 | } 2147 | ] 2148 | } 2149 | } --------------------------------------------------------------------------------