@stacksjs/defaults 0.75.514 → 0.75.518

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/ai/AGENTS.md +2 -2
  2. package/ai/skills/stacks-buddy/SKILL.md +1 -1
  3. package/ai/skills/stacks-build/SKILL.md +10 -0
  4. package/ai/skills/stacks-chief-of-staff/NOTICE.md +2 -2
  5. package/ai/skills/stacks-chief-of-staff/PLAYBOOK.md +32 -2
  6. package/ai/skills/stacks-codebase-design/DESIGN-IT-TWICE.md +1 -2
  7. package/ai/skills/stacks-codebase-design/NOTICE.md +2 -2
  8. package/ai/skills/stacks-deploy/SKILL.md +17 -0
  9. package/ai/skills/stacks-docs/SKILL.md +78 -80
  10. package/ai/skills/stacks-domain-modeling/NOTICE.md +2 -2
  11. package/ai/skills/stacks-flow/ENGINEERING.md +3 -0
  12. package/ai/skills/stacks-flow/NOTICE.md +2 -2
  13. package/ai/skills/stacks-flow/upstream-skills.json +121 -90
  14. package/ai/skills/stacks-git/NOTICE.md +2 -2
  15. package/ai/skills/stacks-grill-with-docs/NOTICE.md +2 -2
  16. package/ai/skills/stacks-grilling/NOTICE.md +4 -4
  17. package/ai/skills/stacks-guard/NOTICE.md +2 -2
  18. package/ai/skills/stacks-handoff/NOTICE.md +4 -4
  19. package/ai/skills/stacks-implement/NOTICE.md +2 -2
  20. package/ai/skills/stacks-implement-spec/NOTICE.md +2 -2
  21. package/ai/skills/stacks-implement-spec/PLAYBOOK.md +4 -2
  22. package/ai/skills/stacks-improve-codebase-architecture/NOTICE.md +2 -2
  23. package/ai/skills/stacks-improve-codebase-architecture/PLAYBOOK.md +1 -1
  24. package/ai/skills/stacks-investigate/NOTICE.md +2 -2
  25. package/ai/skills/stacks-loop/NOTICE.md +2 -2
  26. package/ai/skills/stacks-marketing/CATALOG.md +5 -2
  27. package/ai/skills/stacks-marketing/NOTICE.md +2 -2
  28. package/ai/skills/stacks-marketing/SKILL.md +1 -1
  29. package/ai/skills/stacks-marketing-ab-testing/NOTICE.md +2 -2
  30. package/ai/skills/stacks-marketing-ab-testing/PLAYBOOK.md +9 -4
  31. package/ai/skills/stacks-marketing-ab-testing/SKILL.md +1 -1
  32. package/ai/skills/stacks-marketing-ab-testing/references/sample-size-guide.md +42 -27
  33. package/ai/skills/stacks-marketing-ad-creative/NOTICE.md +2 -2
  34. package/ai/skills/stacks-marketing-ad-creative/PLAYBOOK.md +41 -11
  35. package/ai/skills/stacks-marketing-ad-creative/SKILL.md +1 -1
  36. package/ai/skills/stacks-marketing-ad-creative/evals/evals.json +1 -1
  37. package/ai/skills/stacks-marketing-ad-creative/references/generative-tools.md +47 -51
  38. package/ai/skills/stacks-marketing-ad-creative/references/hook-system.md +7 -0
  39. package/ai/skills/stacks-marketing-ad-creative/references/imessage-video-ads.md +2 -2
  40. package/ai/skills/stacks-marketing-ads/NOTICE.md +2 -2
  41. package/ai/skills/stacks-marketing-ads/PLAYBOOK.md +37 -28
  42. package/ai/skills/stacks-marketing-ads/SKILL.md +1 -1
  43. package/ai/skills/stacks-marketing-ads/evals/evals.json +53 -0
  44. package/ai/skills/stacks-marketing-ads/references/abm-playbook.md +1 -1
  45. package/ai/skills/stacks-marketing-ads/references/audit-guardrails.md +11 -1
  46. package/ai/skills/stacks-marketing-ads/references/creative-research-automation.md +19 -0
  47. package/ai/skills/stacks-marketing-ads/references/google-ads-audit-checklist.md +35 -2
  48. package/ai/skills/stacks-marketing-ads/references/google-search-playbook.md +4 -0
  49. package/ai/skills/stacks-marketing-ads/references/linkedin-b2b-playbook.md +2 -0
  50. package/ai/skills/stacks-marketing-ads/references/meta-andromeda-playbook.md +33 -0
  51. package/ai/skills/stacks-marketing-ads/references/operating-check.md +75 -0
  52. package/ai/skills/stacks-marketing-ads/references/reading-google-ads-data.md +1 -1
  53. package/ai/skills/stacks-marketing-ai-seo/NOTICE.md +2 -2
  54. package/ai/skills/stacks-marketing-ai-seo/PLAYBOOK.md +32 -30
  55. package/ai/skills/stacks-marketing-ai-seo/SKILL.md +1 -1
  56. package/ai/skills/stacks-marketing-ai-seo/evals/evals.json +27 -0
  57. package/ai/skills/stacks-marketing-ai-seo/references/agent-defaults.md +79 -0
  58. package/ai/skills/stacks-marketing-ai-seo/references/agent-readiness.md +61 -11
  59. package/ai/skills/stacks-marketing-ai-seo/references/ai-attribution.md +54 -0
  60. package/ai/skills/stacks-marketing-ai-seo/references/answer-accuracy.md +84 -0
  61. package/ai/skills/stacks-marketing-ai-seo/references/citations-vs-recommendations.md +32 -1
  62. package/ai/skills/stacks-marketing-ai-seo/references/content-patterns.md +24 -0
  63. package/ai/skills/stacks-marketing-ai-seo/references/multilingual-and-commerce.md +55 -0
  64. package/ai/skills/stacks-marketing-ai-seo/references/platform-ranking-factors.md +31 -11
  65. package/ai/skills/stacks-marketing-ai-seo/references/prompt-portfolio.md +97 -0
  66. package/ai/skills/stacks-marketing-analytics/NOTICE.md +2 -2
  67. package/ai/skills/stacks-marketing-analytics/PLAYBOOK.md +74 -15
  68. package/ai/skills/stacks-marketing-analytics/SKILL.md +1 -1
  69. package/ai/skills/stacks-marketing-analytics/references/event-library.md +2 -2
  70. package/ai/skills/stacks-marketing-analytics/references/ga4-implementation.md +3 -3
  71. package/ai/skills/stacks-marketing-aso/NOTICE.md +2 -2
  72. package/ai/skills/stacks-marketing-aso/SKILL.md +1 -1
  73. package/ai/skills/stacks-marketing-aso/references/apple-specs.md +1 -1
  74. package/ai/skills/stacks-marketing-aso/references/scoring-criteria.md +3 -3
  75. package/ai/skills/stacks-marketing-attribution/NOTICE.md +2 -2
  76. package/ai/skills/stacks-marketing-attribution/PLAYBOOK.md +11 -11
  77. package/ai/skills/stacks-marketing-attribution/SKILL.md +1 -1
  78. package/ai/skills/stacks-marketing-attribution/references/by-business-type.md +1 -1
  79. package/ai/skills/stacks-marketing-attribution/references/measurement-paradigms.md +4 -3
  80. package/ai/skills/stacks-marketing-churn-prevention/NOTICE.md +2 -2
  81. package/ai/skills/stacks-marketing-churn-prevention/PLAYBOOK.md +14 -4
  82. package/ai/skills/stacks-marketing-churn-prevention/SKILL.md +1 -1
  83. package/ai/skills/stacks-marketing-churn-prevention/references/dunning-playbook.md +10 -7
  84. package/ai/skills/stacks-marketing-co-marketing/NOTICE.md +2 -2
  85. package/ai/skills/stacks-marketing-co-marketing/PLAYBOOK.md +4 -4
  86. package/ai/skills/stacks-marketing-co-marketing/SKILL.md +1 -1
  87. package/ai/skills/stacks-marketing-co-marketing/references/partnership-types.md +2 -2
  88. package/ai/skills/stacks-marketing-cold-email/NOTICE.md +2 -2
  89. package/ai/skills/stacks-marketing-cold-email/PLAYBOOK.md +6 -6
  90. package/ai/skills/stacks-marketing-cold-email/SKILL.md +1 -1
  91. package/ai/skills/stacks-marketing-cold-email/references/deliverability.md +1 -1
  92. package/ai/skills/stacks-marketing-cold-email/references/follow-up-sequences.md +1 -1
  93. package/ai/skills/stacks-marketing-cold-email/references/multichannel-cadence.md +1 -1
  94. package/ai/skills/stacks-marketing-cold-email/references/outbound-plays.md +1 -1
  95. package/ai/skills/stacks-marketing-cold-email/references/personalization.md +1 -1
  96. package/ai/skills/stacks-marketing-community-marketing/NOTICE.md +2 -2
  97. package/ai/skills/stacks-marketing-community-marketing/PLAYBOOK.md +1 -1
  98. package/ai/skills/stacks-marketing-community-marketing/SKILL.md +1 -1
  99. package/ai/skills/stacks-marketing-community-marketing/references/community-models.md +2 -2
  100. package/ai/skills/stacks-marketing-competitor-profiling/NOTICE.md +2 -2
  101. package/ai/skills/stacks-marketing-competitor-profiling/PLAYBOOK.md +2 -0
  102. package/ai/skills/stacks-marketing-competitor-profiling/SKILL.md +1 -1
  103. package/ai/skills/stacks-marketing-competitors/NOTICE.md +1 -1
  104. package/ai/skills/stacks-marketing-competitors/SKILL.md +1 -1
  105. package/ai/skills/stacks-marketing-content-strategy/NOTICE.md +2 -2
  106. package/ai/skills/stacks-marketing-content-strategy/PLAYBOOK.md +4 -1
  107. package/ai/skills/stacks-marketing-content-strategy/SKILL.md +1 -1
  108. package/ai/skills/stacks-marketing-content-strategy/references/headless-cms.md +3 -3
  109. package/ai/skills/stacks-marketing-conversion-tracking/LICENSE +21 -0
  110. package/ai/skills/stacks-marketing-conversion-tracking/NOTICE.md +12 -0
  111. package/ai/skills/stacks-marketing-conversion-tracking/PLAYBOOK.md +164 -0
  112. package/ai/skills/stacks-marketing-conversion-tracking/SKILL.md +16 -0
  113. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/README.md +61 -0
  114. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-acuity-scheduling.json +160 -0
  115. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-cal-com.json +141 -0
  116. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-calendly.json +122 -0
  117. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-contact-form-7.json +103 -0
  118. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-divi-forms.json +103 -0
  119. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-elementor-forms.json +103 -0
  120. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-file-download.json +81 -0
  121. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-fluent-forms.json +104 -0
  122. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-formidable-forms.json +103 -0
  123. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-forminator.json +103 -0
  124. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-framer-forms.json +103 -0
  125. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-generic-ajax-form.json +81 -0
  126. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-gravity-forms.json +103 -0
  127. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-hubspot-forms.json +103 -0
  128. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-jotform.json +103 -0
  129. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-ninja-forms.json +103 -0
  130. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-phone-click.json +81 -0
  131. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-squarespace-forms.json +122 -0
  132. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-tally.json +122 -0
  133. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-thank-you-page.json +81 -0
  134. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-typeform.json +122 -0
  135. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-webflow-forms.json +103 -0
  136. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wix-forms.json +103 -0
  137. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wix-scheduling.json +103 -0
  138. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wpforms.json +103 -0
  139. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-ws-form.json +103 -0
  140. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/event-map.json +132 -0
  141. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/ga4.json +58 -0
  142. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/google-ads.json +76 -0
  143. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/linkedin.json +128 -0
  144. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/meta.json +128 -0
  145. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/microsoft.json +128 -0
  146. package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/tiktok.json +128 -0
  147. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/README.md +112 -0
  148. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/acuity-scheduling-field.html +28 -0
  149. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/acuity-scheduling.js +75 -0
  150. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/cal-com.js +134 -0
  151. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/calendly.js +113 -0
  152. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/contact-form-7.js +101 -0
  153. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/divi-forms.js +54 -0
  154. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/elementor-forms.js +54 -0
  155. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/file-download.js +96 -0
  156. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/fluent-forms.js +103 -0
  157. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/formidable-forms.js +203 -0
  158. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/forminator.js +65 -0
  159. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/framer-forms.js +96 -0
  160. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/generic-ajax-form.js +165 -0
  161. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/gravity-forms.js +234 -0
  162. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/hubspot-forms.js +162 -0
  163. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/jotform.js +32 -0
  164. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/ninja-forms.js +154 -0
  165. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/phone-click.js +71 -0
  166. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/squarespace-forms.js +428 -0
  167. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/tally.js +167 -0
  168. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/thank-you-page.js +87 -0
  169. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/typeform.js +147 -0
  170. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/webflow-forms.js +57 -0
  171. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wix-forms.js +232 -0
  172. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wix-scheduling.js +80 -0
  173. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wpforms.js +198 -0
  174. package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/ws-form.js +57 -0
  175. package/ai/skills/stacks-marketing-conversion-tracking/evals/evals.json +264 -0
  176. package/ai/skills/stacks-marketing-conversion-tracking/references/audit-playbook.md +106 -0
  177. package/ai/skills/stacks-marketing-conversion-tracking/references/browser-side.md +424 -0
  178. package/ai/skills/stacks-marketing-conversion-tracking/references/conversion-moments.md +318 -0
  179. package/ai/skills/stacks-marketing-conversion-tracking/references/discrepancies.md +136 -0
  180. package/ai/skills/stacks-marketing-conversion-tracking/references/ecommerce-platforms.md +71 -0
  181. package/ai/skills/stacks-marketing-conversion-tracking/references/google-ads.md +316 -0
  182. package/ai/skills/stacks-marketing-conversion-tracking/references/meta.md +202 -0
  183. package/ai/skills/stacks-marketing-conversion-tracking/references/other-platforms.md +201 -0
  184. package/ai/skills/stacks-marketing-conversion-tracking/references/server-side.md +167 -0
  185. package/ai/skills/stacks-marketing-conversion-tracking/scripts/build-recipe.ts +140 -0
  186. package/ai/skills/stacks-marketing-copy-editing/NOTICE.md +2 -2
  187. package/ai/skills/stacks-marketing-copy-editing/PLAYBOOK.md +3 -1
  188. package/ai/skills/stacks-marketing-copy-editing/SKILL.md +1 -1
  189. package/ai/skills/stacks-marketing-copy-editing/evals/evals.json +13 -0
  190. package/ai/skills/stacks-marketing-copy-editing/references/checklist.md +24 -0
  191. package/ai/skills/stacks-marketing-copywriting/NOTICE.md +2 -2
  192. package/ai/skills/stacks-marketing-copywriting/PLAYBOOK.md +55 -2
  193. package/ai/skills/stacks-marketing-copywriting/SKILL.md +1 -1
  194. package/ai/skills/stacks-marketing-copywriting/evals/evals.json +14 -0
  195. package/ai/skills/stacks-marketing-copywriting/references/ai-tells.md +48 -0
  196. package/ai/skills/stacks-marketing-copywriting/references/copy-frameworks.md +1 -1
  197. package/ai/skills/stacks-marketing-council/NOTICE.md +1 -1
  198. package/ai/skills/stacks-marketing-council/SKILL.md +1 -1
  199. package/ai/skills/stacks-marketing-cro/NOTICE.md +1 -1
  200. package/ai/skills/stacks-marketing-cro/PLAYBOOK.md +1 -1
  201. package/ai/skills/stacks-marketing-cro/SKILL.md +1 -1
  202. package/ai/skills/stacks-marketing-customer-research/NOTICE.md +2 -2
  203. package/ai/skills/stacks-marketing-customer-research/PLAYBOOK.md +1 -1
  204. package/ai/skills/stacks-marketing-customer-research/SKILL.md +1 -1
  205. package/ai/skills/stacks-marketing-customer-research/references/source-guides.md +1 -1
  206. package/ai/skills/stacks-marketing-directory-submissions/NOTICE.md +2 -2
  207. package/ai/skills/stacks-marketing-directory-submissions/PLAYBOOK.md +6 -5
  208. package/ai/skills/stacks-marketing-directory-submissions/SKILL.md +1 -1
  209. package/ai/skills/stacks-marketing-directory-submissions/evals/evals.json +14 -2
  210. package/ai/skills/stacks-marketing-directory-submissions/references/directory-list.md +4 -4
  211. package/ai/skills/stacks-marketing-directory-submissions/references/positioning-variations.md +1 -1
  212. package/ai/skills/stacks-marketing-directory-submissions/references/submission-tracker-template.csv +1 -1
  213. package/ai/skills/stacks-marketing-emails/NOTICE.md +2 -2
  214. package/ai/skills/stacks-marketing-emails/PLAYBOOK.md +9 -7
  215. package/ai/skills/stacks-marketing-emails/SKILL.md +1 -1
  216. package/ai/skills/stacks-marketing-events/NOTICE.md +1 -1
  217. package/ai/skills/stacks-marketing-events/SKILL.md +1 -1
  218. package/ai/skills/stacks-marketing-free-tools/NOTICE.md +2 -2
  219. package/ai/skills/stacks-marketing-free-tools/PLAYBOOK.md +6 -5
  220. package/ai/skills/stacks-marketing-free-tools/SKILL.md +1 -1
  221. package/ai/skills/stacks-marketing-free-tools/evals/evals.json +3 -2
  222. package/ai/skills/stacks-marketing-free-tools/references/tool-benchmarks.md +24 -23
  223. package/ai/skills/stacks-marketing-ideas/NOTICE.md +2 -2
  224. package/ai/skills/stacks-marketing-ideas/PLAYBOOK.md +1 -0
  225. package/ai/skills/stacks-marketing-ideas/SKILL.md +1 -1
  226. package/ai/skills/stacks-marketing-image/NOTICE.md +2 -2
  227. package/ai/skills/stacks-marketing-image/PLAYBOOK.md +6 -6
  228. package/ai/skills/stacks-marketing-image/SKILL.md +1 -1
  229. package/ai/skills/stacks-marketing-image/references/ai-image-prompting.md +5 -5
  230. package/ai/skills/stacks-marketing-influencer-marketing/NOTICE.md +2 -2
  231. package/ai/skills/stacks-marketing-influencer-marketing/PLAYBOOK.md +11 -4
  232. package/ai/skills/stacks-marketing-influencer-marketing/SKILL.md +1 -1
  233. package/ai/skills/stacks-marketing-influencer-marketing/evals/evals.json +14 -0
  234. package/ai/skills/stacks-marketing-influencer-marketing/references/newsletter-sponsorships.md +76 -0
  235. package/ai/skills/stacks-marketing-influencer-marketing/references/paid-ads-creator-program.md +79 -0
  236. package/ai/skills/stacks-marketing-influencer-marketing/references/telegram-channels.md +111 -0
  237. package/ai/skills/stacks-marketing-launch/NOTICE.md +1 -1
  238. package/ai/skills/stacks-marketing-launch/PLAYBOOK.md +1 -1
  239. package/ai/skills/stacks-marketing-launch/SKILL.md +1 -1
  240. package/ai/skills/stacks-marketing-launch/references/site-launch-qa.md +2 -2
  241. package/ai/skills/stacks-marketing-lead-magnets/NOTICE.md +2 -2
  242. package/ai/skills/stacks-marketing-lead-magnets/PLAYBOOK.md +1 -2
  243. package/ai/skills/stacks-marketing-lead-magnets/SKILL.md +1 -1
  244. package/ai/skills/stacks-marketing-link-building/LICENSE +21 -0
  245. package/ai/skills/stacks-marketing-link-building/NOTICE.md +8 -0
  246. package/ai/skills/stacks-marketing-link-building/PLAYBOOK.md +167 -0
  247. package/ai/skills/stacks-marketing-link-building/SKILL.md +16 -0
  248. package/ai/skills/stacks-marketing-link-building/evals/evals.json +71 -0
  249. package/ai/skills/stacks-marketing-link-building/references/prospecting-and-outreach.md +114 -0
  250. package/ai/skills/stacks-marketing-link-building/references/risk-policy.md +56 -0
  251. package/ai/skills/stacks-marketing-link-building/references/tactics.md +106 -0
  252. package/ai/skills/stacks-marketing-loops/NOTICE.md +2 -2
  253. package/ai/skills/stacks-marketing-loops/PLAYBOOK.md +3 -2
  254. package/ai/skills/stacks-marketing-loops/SKILL.md +2 -2
  255. package/ai/skills/stacks-marketing-loops/references/loop-catalog.md +131 -14
  256. package/ai/skills/stacks-marketing-loops/references/loop-orchestration.md +2 -2
  257. package/ai/skills/stacks-marketing-loops/references/loop-state.md +21 -0
  258. package/ai/skills/stacks-marketing-loops/references/seo-operator.md +1 -1
  259. package/ai/skills/stacks-marketing-offers/NOTICE.md +2 -2
  260. package/ai/skills/stacks-marketing-offers/PLAYBOOK.md +1 -1
  261. package/ai/skills/stacks-marketing-offers/SKILL.md +1 -1
  262. package/ai/skills/stacks-marketing-offers/evals/evals.json +13 -0
  263. package/ai/skills/stacks-marketing-offers/references/offer-formats.md +1 -1
  264. package/ai/skills/stacks-marketing-onboarding/NOTICE.md +2 -2
  265. package/ai/skills/stacks-marketing-onboarding/PLAYBOOK.md +10 -4
  266. package/ai/skills/stacks-marketing-onboarding/SKILL.md +1 -1
  267. package/ai/skills/stacks-marketing-onboarding/evals/evals.json +2 -2
  268. package/ai/skills/stacks-marketing-onboarding/references/activation-models.md +4 -1
  269. package/ai/skills/stacks-marketing-paywalls/NOTICE.md +2 -2
  270. package/ai/skills/stacks-marketing-paywalls/PLAYBOOK.md +3 -0
  271. package/ai/skills/stacks-marketing-paywalls/SKILL.md +1 -1
  272. package/ai/skills/stacks-marketing-paywalls/evals/evals.json +15 -0
  273. package/ai/skills/stacks-marketing-paywalls/references/experiments.md +7 -3
  274. package/ai/skills/stacks-marketing-paywalls/references/mobile-subscription-paywalls.md +69 -0
  275. package/ai/skills/stacks-marketing-plan/NOTICE.md +2 -2
  276. package/ai/skills/stacks-marketing-plan/PLAYBOOK.md +5 -0
  277. package/ai/skills/stacks-marketing-plan/SKILL.md +1 -1
  278. package/ai/skills/stacks-marketing-popups/NOTICE.md +2 -2
  279. package/ai/skills/stacks-marketing-popups/PLAYBOOK.md +1 -2
  280. package/ai/skills/stacks-marketing-popups/SKILL.md +1 -1
  281. package/ai/skills/stacks-marketing-pricing/NOTICE.md +2 -2
  282. package/ai/skills/stacks-marketing-pricing/SKILL.md +1 -1
  283. package/ai/skills/stacks-marketing-pricing/references/research-methods.md +12 -2
  284. package/ai/skills/stacks-marketing-product-marketing/NOTICE.md +2 -2
  285. package/ai/skills/stacks-marketing-product-marketing/PLAYBOOK.md +72 -7
  286. package/ai/skills/stacks-marketing-product-marketing/SKILL.md +1 -1
  287. package/ai/skills/stacks-marketing-product-marketing/references/brand-voice.md +103 -0
  288. package/ai/skills/stacks-marketing-programmatic-seo/NOTICE.md +2 -2
  289. package/ai/skills/stacks-marketing-programmatic-seo/PLAYBOOK.md +1 -1
  290. package/ai/skills/stacks-marketing-programmatic-seo/SKILL.md +1 -1
  291. package/ai/skills/stacks-marketing-programmatic-seo/references/implementation-platforms.md +2 -2
  292. package/ai/skills/stacks-marketing-programmatic-seo/references/playbooks.md +1 -1
  293. package/ai/skills/stacks-marketing-prospecting/NOTICE.md +2 -2
  294. package/ai/skills/stacks-marketing-prospecting/PLAYBOOK.md +18 -18
  295. package/ai/skills/stacks-marketing-prospecting/SKILL.md +1 -1
  296. package/ai/skills/stacks-marketing-prospecting/evals/evals.json +28 -0
  297. package/ai/skills/stacks-marketing-prospecting/references/data-sources.md +12 -12
  298. package/ai/skills/stacks-marketing-prospecting/references/enrichment-playbook.md +1 -1
  299. package/ai/skills/stacks-marketing-prospecting/references/signal-plays.md +44 -2
  300. package/ai/skills/stacks-marketing-psychology/NOTICE.md +1 -1
  301. package/ai/skills/stacks-marketing-psychology/SKILL.md +1 -1
  302. package/ai/skills/stacks-marketing-public-relations/NOTICE.md +2 -2
  303. package/ai/skills/stacks-marketing-public-relations/PLAYBOOK.md +3 -0
  304. package/ai/skills/stacks-marketing-public-relations/SKILL.md +1 -1
  305. package/ai/skills/stacks-marketing-referrals/NOTICE.md +2 -2
  306. package/ai/skills/stacks-marketing-referrals/PLAYBOOK.md +8 -8
  307. package/ai/skills/stacks-marketing-referrals/SKILL.md +1 -1
  308. package/ai/skills/stacks-marketing-referrals/references/affiliate-programs.md +1 -1
  309. package/ai/skills/stacks-marketing-referrals/references/program-examples.md +9 -2
  310. package/ai/skills/stacks-marketing-referrals/references/review-programs.md +1 -1
  311. package/ai/skills/stacks-marketing-reverse-engineer-marketing/LICENSE +21 -0
  312. package/ai/skills/stacks-marketing-reverse-engineer-marketing/NOTICE.md +8 -0
  313. package/ai/skills/stacks-marketing-reverse-engineer-marketing/PLAYBOOK.md +312 -0
  314. package/ai/skills/stacks-marketing-reverse-engineer-marketing/SKILL.md +21 -0
  315. package/ai/skills/stacks-marketing-reverse-engineer-marketing/evals/evals.json +242 -0
  316. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/content-teardown.md +97 -0
  317. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/data-sources.md +147 -0
  318. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/funnel-hack.md +96 -0
  319. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/go-inside.md +107 -0
  320. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/hidden-signals.md +78 -0
  321. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/agencies-b2b-services.md +84 -0
  322. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/automotive.md +86 -0
  323. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/care-services.md +83 -0
  324. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/consumer-hardware.md +87 -0
  325. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/cpg-food-beverage.md +85 -0
  326. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/crypto-web3.md +86 -0
  327. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/ecommerce-dtc.md +93 -0
  328. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/education.md +86 -0
  329. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/events-entertainment.md +88 -0
  330. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/finance.md +92 -0
  331. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/fitness-wellness.md +86 -0
  332. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/franchising.md +84 -0
  333. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/gambling-betting.md +85 -0
  334. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/games-pc-console.md +84 -0
  335. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/govtech-public-sector.md +86 -0
  336. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/healthcare.md +88 -0
  337. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/hospitality-travel.md +86 -0
  338. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/insurance.md +87 -0
  339. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/legal-professional-services.md +86 -0
  340. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/local-services.md +88 -0
  341. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/logistics-transportation.md +87 -0
  342. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/manufacturing-industrial.md +84 -0
  343. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/marketplaces.md +85 -0
  344. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/media-creators.md +85 -0
  345. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/mobile-apps-games.md +96 -0
  346. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/nonprofit.md +84 -0
  347. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/real-estate.md +87 -0
  348. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/regulated-goods.md +88 -0
  349. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/retail.md +88 -0
  350. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/saas.md +91 -0
  351. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/solar-home-energy.md +84 -0
  352. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/landscape.md +85 -0
  353. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/play-routing.md +73 -0
  354. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/playbook-template.md +133 -0
  355. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/team-voices.md +71 -0
  356. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/timeline-analysis.md +62 -0
  357. package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/weak-spots.md +70 -0
  358. package/ai/skills/stacks-marketing-revops/NOTICE.md +2 -2
  359. package/ai/skills/stacks-marketing-revops/PLAYBOOK.md +14 -14
  360. package/ai/skills/stacks-marketing-revops/SKILL.md +1 -1
  361. package/ai/skills/stacks-marketing-revops/references/automation-playbooks.md +3 -3
  362. package/ai/skills/stacks-marketing-revops/references/inbound-routing.md +1 -1
  363. package/ai/skills/stacks-marketing-revops/references/lifecycle-definitions.md +2 -0
  364. package/ai/skills/stacks-marketing-revops/references/scoring-models.md +14 -13
  365. package/ai/skills/stacks-marketing-sales-enablement/NOTICE.md +1 -1
  366. package/ai/skills/stacks-marketing-sales-enablement/PLAYBOOK.md +2 -2
  367. package/ai/skills/stacks-marketing-sales-enablement/SKILL.md +1 -1
  368. package/ai/skills/stacks-marketing-sales-enablement/references/cold-call-scripts.md +1 -1
  369. package/ai/skills/stacks-marketing-schema/NOTICE.md +1 -1
  370. package/ai/skills/stacks-marketing-schema/SKILL.md +1 -1
  371. package/ai/skills/stacks-marketing-seo-audit/NOTICE.md +2 -2
  372. package/ai/skills/stacks-marketing-seo-audit/PLAYBOOK.md +5 -4
  373. package/ai/skills/stacks-marketing-seo-audit/SKILL.md +1 -1
  374. package/ai/skills/stacks-marketing-seo-audit/references/international-seo.md +3 -1
  375. package/ai/skills/stacks-marketing-seo-audit/references/rankings-push.md +1 -1
  376. package/ai/skills/stacks-marketing-signup/NOTICE.md +1 -1
  377. package/ai/skills/stacks-marketing-signup/PLAYBOOK.md +1 -1
  378. package/ai/skills/stacks-marketing-signup/SKILL.md +1 -1
  379. package/ai/skills/stacks-marketing-site-architecture/NOTICE.md +1 -1
  380. package/ai/skills/stacks-marketing-site-architecture/SKILL.md +1 -1
  381. package/ai/skills/stacks-marketing-site-architecture/references/platforms-and-migration.md +1 -1
  382. package/ai/skills/stacks-marketing-sms/NOTICE.md +1 -1
  383. package/ai/skills/stacks-marketing-sms/PLAYBOOK.md +9 -9
  384. package/ai/skills/stacks-marketing-sms/SKILL.md +1 -1
  385. package/ai/skills/stacks-marketing-social/NOTICE.md +2 -2
  386. package/ai/skills/stacks-marketing-social/PLAYBOOK.md +5 -4
  387. package/ai/skills/stacks-marketing-social/SKILL.md +1 -1
  388. package/ai/skills/stacks-marketing-social/references/listening.md +13 -0
  389. package/ai/skills/stacks-marketing-social/references/platforms.md +37 -1
  390. package/ai/skills/stacks-marketing-social/references/short-form-video.md +51 -6
  391. package/ai/skills/stacks-marketing-video/NOTICE.md +2 -2
  392. package/ai/skills/stacks-marketing-video/PLAYBOOK.md +35 -18
  393. package/ai/skills/stacks-marketing-video/SKILL.md +1 -1
  394. package/ai/skills/stacks-marketing-video/evals/evals.json +27 -0
  395. package/ai/skills/stacks-marketing-video/references/code-rendered-product-films.md +119 -0
  396. package/ai/skills/stacks-native/CATALOG.md +6 -6
  397. package/ai/skills/stacks-pr/NOTICE.md +2 -2
  398. package/ai/skills/stacks-prototype/NOTICE.md +2 -2
  399. package/ai/skills/stacks-research/NOTICE.md +2 -2
  400. package/ai/skills/stacks-research/PLAYBOOK.md +1 -1
  401. package/ai/skills/stacks-retro/NOTICE.md +2 -2
  402. package/ai/skills/stacks-review/NOTICE.md +2 -2
  403. package/ai/skills/stacks-scaffold-exercises/NOTICE.md +2 -2
  404. package/ai/skills/stacks-setup-deep-modules/NOTICE.md +2 -2
  405. package/ai/skills/stacks-setup-engineering/NOTICE.md +2 -2
  406. package/ai/skills/stacks-setup-engineering/PLAYBOOK.md +3 -1
  407. package/ai/skills/stacks-setup-engineering/issue-tracker-github.md +8 -4
  408. package/ai/skills/stacks-setup-engineering/issue-tracker-gitlab.md +3 -3
  409. package/ai/skills/stacks-software-factory/EXAMPLE-TASKS.md +80 -0
  410. package/ai/skills/stacks-software-factory/GIT-HOSTS.md +84 -0
  411. package/ai/skills/stacks-software-factory/LICENSE +21 -0
  412. package/ai/skills/stacks-software-factory/NOTICE.md +8 -0
  413. package/ai/skills/stacks-software-factory/OBSERVABILITY-PLATFORMS.md +75 -0
  414. package/ai/skills/stacks-software-factory/PLAYBOOK.md +95 -0
  415. package/ai/skills/stacks-software-factory/RUNNERS.md +94 -0
  416. package/ai/skills/stacks-software-factory/SKILL.md +21 -0
  417. package/ai/skills/stacks-software-factory/TICKET-TRACKERS.md +85 -0
  418. package/ai/skills/stacks-tdd/NOTICE.md +2 -2
  419. package/ai/skills/stacks-teach/NOTICE.md +2 -2
  420. package/ai/skills/stacks-test-fixtures/NOTICE.md +2 -2
  421. package/ai/skills/stacks-to-questionnaire/NOTICE.md +2 -2
  422. package/ai/skills/stacks-to-spec/NOTICE.md +2 -2
  423. package/ai/skills/stacks-to-tickets/NOTICE.md +2 -2
  424. package/ai/skills/stacks-triage/NOTICE.md +2 -2
  425. package/ai/skills/stacks-wait-what/NOTICE.md +2 -2
  426. package/ai/skills/stacks-wayfinder/NOTICE.md +2 -2
  427. package/ai/skills/stacks-wayfinder/PLAYBOOK.md +1 -1
  428. package/ai/skills/stacks-wizard/NOTICE.md +2 -2
  429. package/ai/skills/stacks-writing-beats/NOTICE.md +2 -2
  430. package/ai/skills/stacks-writing-for-agents/NOTICE.md +2 -2
  431. package/ai/skills/stacks-writing-for-agents/SKILL.md +1 -1
  432. package/ai/skills/stacks-writing-fragments/NOTICE.md +2 -2
  433. package/ai/skills/stacks-writing-shape/NOTICE.md +2 -2
  434. package/app/Actions/UnsubscribeAction.ts +1 -0
  435. package/ide/vscode/package.json +1 -1
  436. package/package.json +3 -3
  437. package/resources/views/index.stx +7 -7
@@ -0,0 +1,103 @@
1
+ {
2
+ "exportFormatVersion": 2,
3
+ "exportTime": "2026-09-24 00:00:00",
4
+ "containerVersion": {
5
+ "path": "accounts/0/containers/0/versions/0",
6
+ "accountId": "0",
7
+ "containerId": "0",
8
+ "containerVersionId": "0",
9
+ "container": {
10
+ "path": "accounts/0/containers/0",
11
+ "accountId": "0",
12
+ "containerId": "0",
13
+ "name": "Conversion Detection - HubSpot Forms",
14
+ "publicId": "GTM-XXXXXXX",
15
+ "usageContext": [
16
+ "WEB"
17
+ ],
18
+ "fingerprint": "0",
19
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
20
+ },
21
+ "tag": [
22
+ {
23
+ "accountId": "0",
24
+ "containerId": "0",
25
+ "tagId": "1",
26
+ "name": "Conversion Detection - HubSpot Forms Submission Listener",
27
+ "type": "html",
28
+ "parameter": [
29
+ {
30
+ "type": "TEMPLATE",
31
+ "key": "html",
32
+ "value": "<script>\n(function () {\n if (window.__ctDetectHubspotForms) return;\n window.__ctDetectHubspotForms = true;\n window.dataLayer = window.dataLayer || [];\n\n // Updated-editor conversions are keyed by HubSpot's documented conversion\n // ID. Legacy messages use event-object identity because their documented\n // callback payload has no conversion ID.\n var seenConversions = {};\n var seenLegacyEvents = typeof WeakSet === 'function' ? new WeakSet() : [];\n\n function fireConversion(formId, conversionId, acceptedContext) {\n var id = formId ? String(formId) : '';\n if (typeof conversionId !== 'string' || !conversionId) return false;\n var key = '$' + conversionId;\n if (seenConversions[key]) return false;\n seenConversions[key] = true;\n var handled = false;\n var adapter = window.__ctHubspotMethod2Handler;\n if (typeof adapter === 'function') {\n try {\n handled = adapter({\n formId: id,\n instanceId: acceptedContext && acceptedContext.instanceId || '',\n conversionId: conversionId,\n form: acceptedContext && acceptedContext.form || null\n }) === true;\n } catch (e) {\n handled = false;\n }\n }\n // The push is contained, and a conversion whose push failed is\n // forgotten, so a repeat of HubSpot's event can still count it.\n if (!handled) {\n try {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({ event: 'hubspot_form_submitted', form_id: id });\n } catch (e) {\n delete seenConversions[key];\n return false;\n }\n }\n return true;\n }\n\n function claimLegacyEvent(event) {\n if (!event || typeof event !== 'object') return false;\n if (seenLegacyEvents && typeof seenLegacyEvents.has === 'function') {\n if (seenLegacyEvents.has(event)) return false;\n seenLegacyEvents.add(event);\n return true;\n }\n if (seenLegacyEvents.indexOf(event) !== -1) return false;\n seenLegacyEvents.push(event);\n return true;\n }\n\n function releaseLegacyEvent(event) {\n try {\n if (typeof seenLegacyEvents.delete === 'function') { seenLegacyEvents.delete(event); return; }\n var i = seenLegacyEvents.indexOf(event);\n if (i !== -1) seenLegacyEvents.splice(i, 1);\n } catch (e) {}\n }\n\n // ------------------------------------------------------------\n // Path 1: current forms editor (live-verified)\n // ------------------------------------------------------------\n // HubSpot dispatches this on the .hs-form-frame container and lets it bubble\n // (or on document itself when it cannot find the container), with\n // detail = { formId, instanceId }. It only ever follows a submission\n // HubSpot's server accepted. Listening on document in the capture phase\n // catches both dispatch points and cannot be silenced by page code that\n // stops the event's propagation further down.\n function hubspotFormsApi() {\n return window.HubSpotFormsV4 || window.HubspotFormsV4 || null;\n }\n\n function handleSubmissionSuccess(event) {\n try {\n var detail = event && event.detail;\n if (!detail || typeof detail.formId !== 'string' || !detail.formId) return;\n if (typeof detail.instanceId !== 'string' || !detail.instanceId) return;\n // When HubSpot's forms API is on the page, the event must name a form\n // instance HubSpot actually rendered here. A stray or malformed event\n // with a made-up instance id is ignored.\n var api = hubspotFormsApi();\n if (!api || typeof api.getFormFromEvent !== 'function') return;\n var form = api.getFormFromEvent(event);\n if (!form || typeof form.getFormId !== 'function' ||\n typeof form.getInstanceId !== 'function' ||\n typeof form.getConversionId !== 'function') return;\n if (form.getFormId() !== detail.formId ||\n form.getInstanceId() !== detail.instanceId) return;\n // HubSpot documents getConversionId as valid after successful\n // submission. It is the stable key for event replay and repeated submits.\n fireConversion(detail.formId, form.getConversionId(), { form: form, instanceId: detail.instanceId });\n } catch (e) {\n // Never throw back into HubSpot's own event dispatch.\n }\n }\n\n // ------------------------------------------------------------\n // Path 2: legacy forms editor (ported from the production module)\n // ------------------------------------------------------------\n // Legacy forms announce each lifecycle step with a postMessage of\n // { type: 'hsFormCallback', eventName, id, data }. Only 'onFormSubmitted'\n // means the submission was accepted; 'onFormSubmit' also fires for\n // submissions that then fail validation, so it is ignored.\n //\n // The legacy callback payload documents its form ID but not a safe mapping\n // from a cross-origin source WindowProxy to that ID. Accept only the inline\n // same-window callback; cross-origin iframe messages fail closed until a\n // vendor-supported source/form binding can be verified.\n function isTrustedOrigin(event) {\n return !!(event && event.source === window &&\n event.origin === window.location.origin);\n }\n\n function handleMessage(event) {\n try {\n // Reject an unbound source before even reading its structured-clone data.\n if (!isTrustedOrigin(event)) return;\n var data = event && event.data;\n if (!data || typeof data !== 'object') return;\n if (data.type !== 'hsFormCallback') return;\n if (data.eventName !== 'onFormSubmitted') return;\n var formId = data.id;\n if (typeof formId !== 'string' || !/^[A-Za-z0-9_-]{1,128}$/.test(formId)) return;\n if (!claimLegacyEvent(event)) return;\n // The documented legacy callback runs after persistence, but has no\n // stable conversion ID. The local guard only recognizes replay of this\n // exact MessageEvent object; a distinct event object may be a replay or a\n // new conversion, so cross-event deduplication is not claimed.\n var handled = false;\n var adapter = window.__ctHubspotMethod2Handler;\n if (typeof adapter === 'function') {\n try {\n handled = adapter({ formId: formId, legacyEvent: event }) === true;\n } catch (e) { handled = false; }\n }\n if (!handled) {\n try {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({ event: 'hubspot_form_submitted', form_id: formId });\n } catch (e) {\n releaseLegacyEvent(event);\n }\n }\n } catch (e) {\n // Never throw back into the page's own message handling.\n }\n }\n\n document.addEventListener('hs-form-event:on-submission:success', handleSubmissionSuccess, true);\n window.addEventListener('message', handleMessage, false);\n})();\n</script>"
33
+ },
34
+ {
35
+ "type": "BOOLEAN",
36
+ "key": "supportDocumentWrite",
37
+ "value": "false"
38
+ }
39
+ ],
40
+ "firingTriggerId": [
41
+ "2147479553"
42
+ ],
43
+ "tagFiringOption": "ONCE_PER_EVENT",
44
+ "monitoringMetadata": {
45
+ "type": "MAP"
46
+ },
47
+ "consentSettings": {
48
+ "consentStatus": "NOT_SET"
49
+ }
50
+ }
51
+ ],
52
+ "trigger": [
53
+ {
54
+ "accountId": "0",
55
+ "containerId": "0",
56
+ "triggerId": "2",
57
+ "name": "CE - HubSpot Form Submitted",
58
+ "type": "CUSTOM_EVENT",
59
+ "customEventFilter": [
60
+ {
61
+ "type": "EQUALS",
62
+ "parameter": [
63
+ {
64
+ "type": "TEMPLATE",
65
+ "key": "arg0",
66
+ "value": "{{_event}}"
67
+ },
68
+ {
69
+ "type": "TEMPLATE",
70
+ "key": "arg1",
71
+ "value": "hubspot_form_submitted"
72
+ }
73
+ ]
74
+ }
75
+ ],
76
+ "filter": []
77
+ }
78
+ ],
79
+ "variable": [
80
+ {
81
+ "accountId": "0",
82
+ "containerId": "0",
83
+ "variableId": "1",
84
+ "name": "DLV - HubSpot Form ID",
85
+ "type": "v",
86
+ "parameter": [
87
+ {
88
+ "type": "TEMPLATE",
89
+ "key": "name",
90
+ "value": "form_id"
91
+ },
92
+ {
93
+ "type": "INTEGER",
94
+ "key": "dataLayerVersion",
95
+ "value": "2"
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "fingerprint": "0",
101
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
102
+ }
103
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "exportFormatVersion": 2,
3
+ "exportTime": "2026-07-02 00:00:00",
4
+ "containerVersion": {
5
+ "path": "accounts/0/containers/0/versions/0",
6
+ "accountId": "0",
7
+ "containerId": "0",
8
+ "containerVersionId": "0",
9
+ "container": {
10
+ "path": "accounts/0/containers/0",
11
+ "accountId": "0",
12
+ "containerId": "0",
13
+ "name": "Conversion Detection - Jotform",
14
+ "publicId": "GTM-XXXXXXX",
15
+ "usageContext": [
16
+ "WEB"
17
+ ],
18
+ "fingerprint": "0",
19
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
20
+ },
21
+ "tag": [
22
+ {
23
+ "accountId": "0",
24
+ "containerId": "0",
25
+ "tagId": "1",
26
+ "name": "Conversion Detection - Jotform Submission Listener",
27
+ "type": "html",
28
+ "parameter": [
29
+ {
30
+ "type": "TEMPLATE",
31
+ "key": "html",
32
+ "value": "<script>\n/* Jotform iframe completion listener. Reads no form answers.\n * Counts once per embedded frame on this page. */\n(function () {\n 'use strict';\n if (window.__ctDetectJotform || window.__ctJotformMethod2Installed) return;\n window.__ctDetectJotform = true;\n window.__ctJotformMethod2Installed = true;\n var completed = [];\n window.addEventListener('message', function (event) {\n if (!event.source || event.source === window) return;\n if (!/^https:\\/\\/(form|submit)\\.jotform\\.com$/.test(event.origin)) return;\n var data = event.data;\n if (!data || typeof data !== 'object' || Array.isArray(data) || data.action !== 'submission-completed') return;\n var frames = document.querySelectorAll('iframe');\n for (var i = 0; i < frames.length; i++) {\n var frame = frames[i];\n if (frame.contentWindow !== event.source) continue;\n var match = /^https:\\/\\/form\\.jotform\\.com\\/(\\d+)(?:[/?#]|$)/.exec(frame.getAttribute('src') || '');\n if (!match || (data.formID != null && String(data.formID) !== match[1])) return;\n if (completed.indexOf(frame) !== -1) return;\n completed.push(frame);\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({ event: 'jotform_form_submitted', form_id: match[1] });\n return;\n }\n });\n})();\n</script>"
33
+ },
34
+ {
35
+ "type": "BOOLEAN",
36
+ "key": "supportDocumentWrite",
37
+ "value": "false"
38
+ }
39
+ ],
40
+ "firingTriggerId": [
41
+ "2147479553"
42
+ ],
43
+ "tagFiringOption": "ONCE_PER_EVENT",
44
+ "monitoringMetadata": {
45
+ "type": "MAP"
46
+ },
47
+ "consentSettings": {
48
+ "consentStatus": "NOT_SET"
49
+ }
50
+ }
51
+ ],
52
+ "trigger": [
53
+ {
54
+ "accountId": "0",
55
+ "containerId": "0",
56
+ "triggerId": "2",
57
+ "name": "CE - Jotform Submitted",
58
+ "type": "CUSTOM_EVENT",
59
+ "customEventFilter": [
60
+ {
61
+ "type": "EQUALS",
62
+ "parameter": [
63
+ {
64
+ "type": "TEMPLATE",
65
+ "key": "arg0",
66
+ "value": "{{_event}}"
67
+ },
68
+ {
69
+ "type": "TEMPLATE",
70
+ "key": "arg1",
71
+ "value": "jotform_form_submitted"
72
+ }
73
+ ]
74
+ }
75
+ ],
76
+ "filter": []
77
+ }
78
+ ],
79
+ "variable": [
80
+ {
81
+ "accountId": "0",
82
+ "containerId": "0",
83
+ "variableId": "1",
84
+ "name": "DLV - Jotform Form ID",
85
+ "type": "v",
86
+ "parameter": [
87
+ {
88
+ "type": "TEMPLATE",
89
+ "key": "name",
90
+ "value": "form_id"
91
+ },
92
+ {
93
+ "type": "INTEGER",
94
+ "key": "dataLayerVersion",
95
+ "value": "2"
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "fingerprint": "0",
101
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
102
+ }
103
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "exportFormatVersion": 2,
3
+ "exportTime": "2026-07-02 00:00:00",
4
+ "containerVersion": {
5
+ "path": "accounts/0/containers/0/versions/0",
6
+ "accountId": "0",
7
+ "containerId": "0",
8
+ "containerVersionId": "0",
9
+ "container": {
10
+ "path": "accounts/0/containers/0",
11
+ "accountId": "0",
12
+ "containerId": "0",
13
+ "name": "Conversion Detection - Ninja Forms",
14
+ "publicId": "GTM-XXXXXXX",
15
+ "usageContext": [
16
+ "WEB"
17
+ ],
18
+ "fingerprint": "0",
19
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
20
+ },
21
+ "tag": [
22
+ {
23
+ "accountId": "0",
24
+ "containerId": "0",
25
+ "tagId": "1",
26
+ "name": "Conversion Detection - Ninja Forms Submission Listener",
27
+ "type": "html",
28
+ "parameter": [
29
+ {
30
+ "type": "TEMPLATE",
31
+ "key": "html",
32
+ "value": "<script>\n(function () {\n 'use strict';\n var runtime = window.__ctNinjaFormsRuntime;\n if (runtime && runtime.installed) return;\n\n // Preserve the recipe's public duplicate-install guard. If a superseded\n // snippet already set it without this runtime, fail closed: don't layer a\n // second listener over an unknown old detector.\n if (!runtime && window.__ctDetectNinjaForms) return;\n\n if (!runtime) {\n runtime = { seenEntryIds: Object.create(null), installed: false };\n window.__ctNinjaFormsRuntime = runtime;\n }\n window.__ctDetectNinjaForms = true;\n window.dataLayer = window.dataLayer || [];\n\n var MISSING = {};\n var MAX_SAFE_INTEGER = 9007199254740991;\n\n // Read only own data properties. Callback payloads are normally parsed JSON,\n // but a filter or another page script can supply accessor-backed objects.\n // Do not execute getters while deciding whether a response proves a save.\n function ownDataValue(object, key) {\n if (!object || typeof object !== 'object' || !Object.prototype.hasOwnProperty.call(object, key)) return MISSING;\n if (typeof Object.getOwnPropertyDescriptor !== 'function') return MISSING;\n var descriptor = Object.getOwnPropertyDescriptor(object, key);\n if (!descriptor || !Object.prototype.hasOwnProperty.call(descriptor, 'value')) return MISSING;\n return descriptor.value;\n }\n\n function emptyErrors(value) {\n if (Object.prototype.toString.call(value) === '[object Array]') return value.length === 0;\n if (!value || typeof value !== 'object') return false;\n for (var key in value) {\n if (Object.prototype.hasOwnProperty.call(value, key)) return false;\n }\n return true;\n }\n\n // Accept only primitive safe integers or canonical decimal strings. Never\n // coerce booleans, arrays, objects, boxed numbers, or accessor-backed IDs.\n function positiveIntegerId(value) {\n if (typeof value === 'number') {\n if (!isFinite(value) || value <= 0 || Math.floor(value) !== value || value > MAX_SAFE_INTEGER) return null;\n return String(value);\n }\n if (typeof value !== 'string' || !/^[1-9]\\d*$/.test(value)) return null;\n var number = Number(value);\n if (!isFinite(number) || number > MAX_SAFE_INTEGER || String(number) !== value) return null;\n return value;\n }\n\n function canonicalFormId(value) {\n var formId;\n if (typeof value === 'number') {\n if (!isFinite(value) || value <= 0 || Math.floor(value) !== value || value > MAX_SAFE_INTEGER) return null;\n formId = String(value);\n } else if (typeof value === 'string') {\n formId = value;\n } else {\n return null;\n }\n if (!/^[1-9]\\d*(?:_(?:0|[1-9]\\d*))*$/.test(formId)) return null;\n var parts = formId.split('_');\n for (var i = 0; i < parts.length; i++) {\n var part = Number(parts[i]);\n if (!isFinite(part) || part > MAX_SAFE_INTEGER || String(part) !== parts[i]) return null;\n }\n return formId;\n }\n\n function inspectResponse(response, callbackFormId) {\n var errors = ownDataValue(response, 'errors');\n if (errors === MISSING || !emptyErrors(errors)) return null;\n var data = ownDataValue(response, 'data');\n if (!data || typeof data !== 'object') return null;\n var halt = ownDataValue(data, 'halt');\n if (halt !== MISSING && halt) return null;\n var nestedErrors = ownDataValue(data, 'errors');\n if (nestedErrors !== MISSING && !emptyErrors(nestedErrors)) return null;\n var formValue = ownDataValue(data, 'form_id');\n var formId = formValue === MISSING ? null : canonicalFormId(formValue);\n if (!formId || canonicalFormId(callbackFormId) !== formId) return null;\n var actions = ownDataValue(data, 'actions');\n if (!actions || typeof actions !== 'object') return null;\n var save = ownDataValue(actions, 'save');\n if (!save || typeof save !== 'object') return null;\n var saveValue = ownDataValue(save, 'sub_id');\n var entryId = saveValue === MISSING ? null : positiveIntegerId(saveValue);\n if (!entryId) return null;\n return { formId: formId, entryId: entryId };\n }\n\n runtime.inspectResponse = inspectResponse;\n\n function handleSubmitResponse(response, textStatus, jqXHR, callbackFormId) {\n var accepted = inspectResponse(response, callbackFormId);\n if (!accepted) {\n if (typeof window.__ctNinjaMethod2AfterResponse === 'function') {\n window.__ctNinjaMethod2AfterResponse(callbackFormId, false, false);\n }\n return;\n }\n\n var key = '$' + accepted.entryId;\n if (runtime.seenEntryIds[key]) {\n if (typeof window.__ctNinjaMethod2AfterResponse === 'function') {\n window.__ctNinjaMethod2AfterResponse(accepted.formId, false, true);\n }\n return;\n }\n runtime.seenEntryIds[key] = true;\n\n var enriched = false;\n if (typeof window.__ctNinjaMethod2Emit === 'function') {\n try {\n enriched = window.__ctNinjaMethod2Emit(accepted.formId, accepted.entryId) === true;\n } catch (e) {\n enriched = false;\n }\n }\n if (!enriched) {\n window.dataLayer.push({ event: 'ninja_forms_submitted', form_id: accepted.formId });\n }\n if (typeof window.__ctNinjaMethod2AfterResponse === 'function') {\n window.__ctNinjaMethod2AfterResponse(accepted.formId, true, false);\n }\n }\n\n function hookNfRadio() {\n if (runtime.installed) return true;\n var radio = typeof nfRadio !== 'undefined' && nfRadio.channel ? nfRadio :\n (typeof Backbone !== 'undefined' && Backbone.Radio ? Backbone.Radio : null);\n if (!radio) return false;\n try {\n radio.channel('forms').on('submit:response', handleSubmitResponse);\n runtime.installed = true;\n return true;\n } catch (e) {\n return false;\n }\n }\n\n if (!hookNfRadio()) {\n document.addEventListener('DOMContentLoaded', hookNfRadio);\n window.addEventListener('load', hookNfRadio);\n }\n})();\n</script>"
33
+ },
34
+ {
35
+ "type": "BOOLEAN",
36
+ "key": "supportDocumentWrite",
37
+ "value": "false"
38
+ }
39
+ ],
40
+ "firingTriggerId": [
41
+ "2147479553"
42
+ ],
43
+ "tagFiringOption": "ONCE_PER_EVENT",
44
+ "monitoringMetadata": {
45
+ "type": "MAP"
46
+ },
47
+ "consentSettings": {
48
+ "consentStatus": "NOT_SET"
49
+ }
50
+ }
51
+ ],
52
+ "trigger": [
53
+ {
54
+ "accountId": "0",
55
+ "containerId": "0",
56
+ "triggerId": "2",
57
+ "name": "CE - Ninja Forms Submitted",
58
+ "type": "CUSTOM_EVENT",
59
+ "customEventFilter": [
60
+ {
61
+ "type": "EQUALS",
62
+ "parameter": [
63
+ {
64
+ "type": "TEMPLATE",
65
+ "key": "arg0",
66
+ "value": "{{_event}}"
67
+ },
68
+ {
69
+ "type": "TEMPLATE",
70
+ "key": "arg1",
71
+ "value": "ninja_forms_submitted"
72
+ }
73
+ ]
74
+ }
75
+ ],
76
+ "filter": []
77
+ }
78
+ ],
79
+ "variable": [
80
+ {
81
+ "accountId": "0",
82
+ "containerId": "0",
83
+ "variableId": "1",
84
+ "name": "DLV - Ninja Forms Form ID",
85
+ "type": "v",
86
+ "parameter": [
87
+ {
88
+ "type": "TEMPLATE",
89
+ "key": "name",
90
+ "value": "form_id"
91
+ },
92
+ {
93
+ "type": "INTEGER",
94
+ "key": "dataLayerVersion",
95
+ "value": "2"
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "fingerprint": "0",
101
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
102
+ }
103
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "exportFormatVersion": 2,
3
+ "containerVersion": {
4
+ "path": "accounts/0/containers/0",
5
+ "accountId": "0",
6
+ "containerId": "0",
7
+ "containerVersionId": "0",
8
+ "container": {
9
+ "path": "accounts/0/containers/0",
10
+ "accountId": "0",
11
+ "containerId": "0",
12
+ "name": "Conversion Detection - Phone call click",
13
+ "publicId": "GTM-XXXXXXX",
14
+ "usageContext": [
15
+ "WEB"
16
+ ],
17
+ "fingerprint": "0",
18
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
19
+ },
20
+ "tag": [
21
+ {
22
+ "accountId": "0",
23
+ "containerId": "0",
24
+ "tagId": "1",
25
+ "name": "Conversion Detection - Phone call click Listener",
26
+ "type": "html",
27
+ "parameter": [
28
+ {
29
+ "type": "TEMPLATE",
30
+ "key": "html",
31
+ "value": "<script>\n(function () {\n if (window.__ctDetectPhoneClick) return;\n window.__ctDetectPhoneClick = true;\n window.dataLayer = window.dataLayer || [];\n\n // A click is a call INTENT, not a completed call. On desktop especially,\n // many tel: clicks never become a conversation. Count it as a lead signal,\n // and prefer a call tracking number if you need answered-call accuracy.\n\n // Ignore a repeat click on the same number inside this window. Impatient\n // double-taps on mobile are common and would otherwise double count.\n var DEDUPE_MS = 2000;\n var lastNumber = null;\n var lastAt = 0;\n\n function normalise(href) {\n // tel:+61 (2) 1234-5678 -> +61212345678 . Keeps a leading +, drops the\n // punctuation humans put in phone numbers so dedupe compares like for like.\n var raw = String(href || '').replace(/^tel:/i, '');\n try { raw = decodeURIComponent(raw); } catch (e) { /* leave as-is */ }\n var plus = raw.trim().charAt(0) === '+' ? '+' : '';\n return plus + raw.replace(/[^0-9]/g, '');\n }\n\n function handleClick(event) {\n try {\n // Left click only, and not a modified click that opens elsewhere.\n if (event.button !== undefined && event.button !== 0) return;\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n\n var target = event.target;\n if (!target || !target.closest) return;\n\n // closest() because the click usually lands on an icon or span INSIDE\n // the anchor, not the anchor itself.\n var link = target.closest('a[href^=\"tel:\"], a[href^=\"TEL:\"]');\n if (!link) return;\n\n var number = normalise(link.getAttribute('href'));\n if (!number) return;\n\n var now = new Date().getTime();\n if (number === lastNumber && (now - lastAt) < DEDUPE_MS) return;\n lastNumber = number;\n lastAt = now;\n\n // PII: if the site shows visitor-specific numbers (an account page, a\n // CRM-driven \"your rep\" number), drop phone_number and link_text here.\n window.dataLayer.push({\n event: 'phone_click',\n phone_number: number,\n // The visible text, useful when a site shows different numbers per\n // location or campaign. Trimmed and capped so a whole button's worth\n // of markup text never lands in the dataLayer.\n link_text: (link.textContent || '').trim().slice(0, 100),\n page_path: window.location.pathname\n });\n } catch (e) {\n // Never throw back into the page's own click handling.\n }\n }\n\n // Bubble phase: a tel: click has no validation to lose a race with, and\n // bubbling means anything that legitimately cancels the click wins first.\n document.addEventListener('click', handleClick, false);\n})();\n</script>"
32
+ },
33
+ {
34
+ "type": "BOOLEAN",
35
+ "key": "supportDocumentWrite",
36
+ "value": "false"
37
+ }
38
+ ],
39
+ "firingTriggerId": [
40
+ "2147479553"
41
+ ],
42
+ "tagFiringOption": "ONCE_PER_EVENT",
43
+ "monitoringMetadata": {
44
+ "type": "MAP"
45
+ },
46
+ "consentSettings": {
47
+ "consentStatus": "NOT_SET"
48
+ }
49
+ }
50
+ ],
51
+ "trigger": [
52
+ {
53
+ "accountId": "0",
54
+ "containerId": "0",
55
+ "triggerId": "2",
56
+ "name": "CE - Phone call click",
57
+ "type": "CUSTOM_EVENT",
58
+ "customEventFilter": [
59
+ {
60
+ "type": "EQUALS",
61
+ "parameter": [
62
+ {
63
+ "type": "TEMPLATE",
64
+ "key": "arg0",
65
+ "value": "{{_event}}"
66
+ },
67
+ {
68
+ "type": "TEMPLATE",
69
+ "key": "arg1",
70
+ "value": "phone_click"
71
+ }
72
+ ]
73
+ }
74
+ ],
75
+ "filter": []
76
+ }
77
+ ],
78
+ "variable": [],
79
+ "fingerprint": "0"
80
+ }
81
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "exportFormatVersion": 2,
3
+ "exportTime": "2026-10-15 00:00:00",
4
+ "containerVersion": {
5
+ "path": "accounts/0/containers/0/versions/0",
6
+ "accountId": "0",
7
+ "containerId": "0",
8
+ "containerVersionId": "0",
9
+ "container": {
10
+ "path": "accounts/0/containers/0",
11
+ "accountId": "0",
12
+ "containerId": "0",
13
+ "name": "Conversion Detection - Squarespace Forms",
14
+ "publicId": "GTM-XXXXXXX",
15
+ "usageContext": [
16
+ "WEB"
17
+ ],
18
+ "fingerprint": "0",
19
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
20
+ },
21
+ "tag": [
22
+ {
23
+ "accountId": "0",
24
+ "containerId": "0",
25
+ "tagId": "1",
26
+ "name": "Conversion Detection - Squarespace Forms Submission Listener",
27
+ "type": "html",
28
+ "parameter": [
29
+ {
30
+ "type": "TEMPLATE",
31
+ "key": "html",
32
+ "value": "<script>\n(function () {\n 'use strict';\n // Install once, even if GTM injects this tag more than once on the page.\n if (window.__ctDetectSquarespaceForms) return;\n window.__ctDetectSquarespaceForms = true;\n window.dataLayer = window.dataLayer || [];\n\n // Ported from a production module (cdn/v1/modules/\n // squarespace-forms.js, measured against a live Squarespace 7.1 site in\n // October 2026). Event only: it never reads what the visitor typed.\n //\n // What Squarespace does:\n // - The Form block renders a React form in the page (no iframe):\n // .sqs-block-form ... form.react-form-contents[novalidate]. It mounts\n // after DOMContentLoaded, so submits are caught on document.\n // - There is no check in the browser. Every submit posts\n // /api/form/FormSubmissionKey then /api/form/SaveFormSubmission, and the\n // server decides: 204 on success, 400 for a field error, 401 for a failed\n // reCAPTCHA. A submit is never a conversion on its own.\n // - On success it marks the form (react-form-contents--submitted), shows a\n // .form-submission-text message and gives the button the class\n // \"success\". A form set to redirect leaves for its page about 1.3\n // seconds after the 204, before that message renders in Chromium.\n // - The Newsletter block posts to the same SaveFormSubmission address, and\n // that request carries no form identity, so a save only counts for a\n // form that provably owns it.\n //\n // It fires once per form, on the first confirmed success for an attempt:\n // 1. a success marker that was not there when the attempt started, or\n // 2. the SaveFormSubmission request answering 2xx (read from the\n // browser's resource timing, where it exposes responseStatus), when\n // no other form's submit could own that save, or\n // 3. as the page leaves (a redirect form), either of the above.\n // It never fires on a 400 or 401, on a filled anti-spam field, or when it\n // cannot tell which form a save belongs to.\n\n var EVENT_NAME = 'squarespace_form_submitted';\n var BLOCK_SELECTOR = '.sqs-block-form, [data-sqsp-block=\"form\"], [data-definition-name=\"website.components.form\"]';\n var SAVE_PATH = '/api/form/SaveFormSubmission';\n // Long enough for a visitor to solve a reCAPTCHA picture challenge.\n var WATCH_MS = 180000;\n\n function now() {\n try {\n if (window.performance && typeof window.performance.now === 'function') return window.performance.now();\n } catch (e) {}\n return 0;\n }\n\n function hasToken(el, token) {\n if (!el || !el.getAttribute) return false;\n var cls = el.getAttribute('class') || '';\n return (' ' + cls + ' ').indexOf(' ' + token + ' ') !== -1;\n }\n\n function isConnected(el) {\n try {\n if (typeof el.isConnected === 'boolean') return el.isConnected;\n return !!(el.ownerDocument && el.ownerDocument.documentElement.contains(el));\n } catch (e) {\n return false;\n }\n }\n\n // ---- Which forms are Squarespace forms ----\n\n function blockFor(formEl) {\n try {\n return (formEl && formEl.closest) ? formEl.closest(BLOCK_SELECTOR) : null;\n } catch (e) {\n return null;\n }\n }\n\n function isSquarespaceForm(formEl) {\n if (!formEl || (formEl.tagName || '').toLowerCase() !== 'form') return false;\n return !!blockFor(formEl);\n }\n\n // The block's own form definition (the site owner's settings, not the\n // visitor's answers): { formId, formName, ... }.\n function formIdentity(block) {\n var id = { formId: '', formName: '' };\n try {\n var script = block && block.querySelector('script.sqs-form-block-context');\n if (!script) return id;\n var parsed = JSON.parse(script.textContent || '{}');\n if (parsed && typeof parsed.formId === 'string') id.formId = parsed.formId;\n if (parsed && typeof parsed.formName === 'string') id.formName = parsed.formName;\n } catch (e) {}\n return id;\n }\n\n // The honeypot is a text input visitors cannot see or reach (measured id\n // \"message-field\", inside an aria-hidden wrapper). Squarespace answers a\n // filled one with a 204 and its thank-you message, so a filled honeypot\n // means a bot. Only whether it is empty is checked.\n function honeypotFilled(formEl) {\n try {\n var hp = formEl.querySelector('#message-field');\n if (!hp) return false;\n var wrap = hp.closest && hp.closest('[aria-hidden=\"true\"]');\n if (!wrap || !formEl.contains(wrap)) return false;\n return hp.value !== '';\n } catch (e) {\n return false;\n }\n }\n\n function submitButtonOf(formEl) {\n try { return formEl.querySelector('button[type=\"submit\"]'); } catch (e) { return null; }\n }\n\n // ---- Which form a save request belongs to ----\n\n var seenSaves = []; // SaveFormSubmission resource entries seen so far\n var claimed = []; // entries already credited to a form\n var submitLog = []; // every form submit on the page, with its time\n\n function pageOrigin() {\n try {\n var l = window.location;\n return l.origin || (l.protocol + '//' + l.host);\n } catch (e) {\n return '';\n }\n }\n\n // The save request's address is checked for its origin and path only.\n function isSaveEntry(e) {\n var n = (e && e.name) || '';\n var origin = pageOrigin();\n if (!origin || n.indexOf(origin + '/') !== 0) return false;\n return n.slice(origin.length).split(/[?#]/)[0] === SAVE_PATH;\n }\n\n function prune() {\n // An attempt is watched for WATCH_MS, and submits up to WATCH_MS before\n // it still count when deciding who owns a save.\n var cutoff = now() - 2 * WATCH_MS;\n var i;\n for (i = submitLog.length - 1; i >= 0; i--) if (submitLog[i].at < cutoff) submitLog.splice(i, 1);\n for (i = seenSaves.length - 1; i >= 0; i--) if (seenSaves[i].startTime < cutoff) seenSaves.splice(i, 1);\n if (seenSaves.length > 100) seenSaves.splice(0, seenSaves.length - 100);\n if (claimed.length > 100) claimed.splice(0, claimed.length - 100);\n }\n\n function allSaveEntries() {\n var all = seenSaves.slice();\n try {\n if (window.performance && typeof window.performance.getEntriesByType === 'function') {\n var buffered = window.performance.getEntriesByType('resource');\n for (var b = 0; b < buffered.length; b++) if (all.indexOf(buffered[b]) === -1) all.push(buffered[b]);\n }\n } catch (err) {}\n var out = [];\n for (var i = 0; i < all.length; i++) if (isSaveEntry(all[i])) out.push(all[i]);\n return out;\n }\n\n function saveEntriesSince(since) {\n var all = allSaveEntries();\n var out = [];\n for (var i = 0; i < all.length; i++) {\n if (all[i].startTime >= since && claimed.indexOf(all[i]) === -1) out.push(all[i]);\n }\n out.sort(function (x, y) { return x.startTime - y.startTime; });\n return out;\n }\n\n // A save's owner is ambiguous when another form (a Newsletter block\n // included) was submitted during this attempt. It is also ambiguous when\n // another form was submitted earlier in the watch window and may still be\n // waiting for its save, because a slow reCAPTCHA can hold that save back\n // until after this attempt starts. Each submit gets at most one save, so\n // fewer saves than submits before this attempt means one is outstanding.\n function saveOwnershipAmbiguous(formEl, since, until) {\n var other = false;\n var first = null;\n var submits = 0;\n for (var i = 0; i < submitLog.length; i++) {\n var s = submitLog[i];\n if (s.at > until || s.at < since - WATCH_MS) continue;\n if (s.at >= since) {\n if (s.form !== formEl) return true;\n continue;\n }\n if (s.form !== formEl) other = true;\n submits++;\n if (first === null || s.at < first) first = s.at;\n }\n if (!other) return false;\n var saves = allSaveEntries();\n var answered = 0;\n for (var j = 0; j < saves.length; j++) {\n if (saves[j].startTime >= first && saves[j].startTime < since) answered++;\n }\n return answered < submits;\n }\n\n function statusOf(entry) {\n var s = entry && entry.responseStatus;\n return (typeof s === 'number' && s > 0) ? s : null;\n }\n\n // ---- One watcher per form ----\n\n var watchers = [];\n var firedForms = [];\n\n function findWatcher(formEl) {\n for (var i = 0; i < watchers.length; i++) if (watchers[i].form === formEl) return watchers[i];\n return null;\n }\n\n function removeWatcher(w) {\n for (var i = 0; i < watchers.length; i++) if (watchers[i] === w) { watchers.splice(i, 1); return; }\n }\n\n function dropStaleWatchers(formEl, block) {\n for (var i = watchers.length - 1; i >= 0; i--) {\n var w = watchers[i];\n if (w.form === formEl) continue;\n if (!isConnected(w.form) || (block && w.block === block)) w.cleanup();\n }\n }\n\n function createWatcher(formEl, block) {\n var scope = (formEl.closest && formEl.closest('.form-wrapper')) || block;\n function markers() {\n var text = false;\n try { text = !!(scope && scope.querySelector('.form-submission-text')); } catch (e) {}\n return {\n submitted: hasToken(formEl, 'react-form-contents--submitted'),\n button: hasToken(submitButtonOf(formEl), 'success'),\n text: text\n };\n }\n var w = {\n form: formEl,\n block: block,\n identity: formIdentity(block),\n armed: false,\n submitAt: 0,\n answered: true,\n done: false,\n timer: null,\n observer: null,\n pagehideArmed: false,\n staleError: false,\n had: markers()\n };\n\n function redirectConfigured() {\n try { return !!(formEl.getAttribute && formEl.getAttribute('data-success-redirect')); } catch (e) { return false; }\n }\n\n function cleanup() {\n w.done = true;\n if (w.timer) { try { clearTimeout(w.timer); } catch (e) {} w.timer = null; }\n if (w.observer) { try { w.observer.disconnect(); } catch (e) {} w.observer = null; }\n if (w.pagehideArmed) {\n try { window.removeEventListener('pagehide', onPageHide, true); } catch (e) {}\n w.pagehideArmed = false;\n }\n removeWatcher(w);\n }\n\n // The push comes first. The form is marked done only once the push went\n // through, so a dataLayer that throws (a broken wrapper) loses nothing,\n // and the next confirmation tries again.\n function fire() {\n if (w.done) return false;\n var payload = { event: EVENT_NAME, form_id: w.identity.formId };\n if (w.identity.formName) payload.form_name = w.identity.formName;\n try {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push(payload);\n } catch (e) {\n return false;\n }\n cleanup();\n firedForms.push(formEl);\n return true;\n }\n\n function domConfirmsSuccess() {\n var m = markers();\n return (m.submitted && !w.had.submitted) || (m.button && !w.had.button) || (m.text && !w.had.text);\n }\n\n function check() {\n if (w.done || !w.armed) return;\n if (!isConnected(formEl)) { cleanup(); return; }\n if (domConfirmsSuccess()) { fire(); return; }\n if (w.answered) return;\n // A fresh error state on the button is Squarespace refusing this\n // attempt; one left over from an earlier attempt is not.\n var errorShowing = hasToken(submitButtonOf(formEl), 'error');\n if (!errorShowing) w.staleError = false;\n else if (!w.staleError) w.answered = true;\n }\n\n // A failure in any callback stays inside this listener and never\n // reaches Squarespace's page.\n function onPageHide() {\n try { pageHideCheck(); } catch (e) {}\n }\n\n function pageHideCheck() {\n if (w.done || !w.armed) return;\n if (!isConnected(formEl)) { cleanup(); return; }\n if (domConfirmsSuccess()) { fire(); return; }\n if (saveOwnershipAmbiguous(formEl, w.submitAt, now())) { cleanup(); return; }\n var entries = saveEntriesSince(w.submitAt);\n var last = entries[entries.length - 1];\n var status = statusOf(last);\n if (status !== null && status >= 200 && status < 300) {\n if (fire()) claimed.push(last);\n else cleanup();\n return;\n }\n cleanup();\n }\n\n w.refresh = function (submitAt) {\n // A new attempt replaces the old one once the old one was answered\n // (or its save has been seen); a double submit keeps the first.\n if (!w.armed || w.answered || saveEntriesSince(w.submitAt).length > 0) {\n w.submitAt = submitAt;\n w.answered = false;\n w.staleError = hasToken(submitButtonOf(formEl), 'error');\n }\n w.armed = true;\n if (w.timer) { try { clearTimeout(w.timer); } catch (e) {} }\n try { w.timer = setTimeout(cleanup, WATCH_MS); } catch (e) {}\n if (!w.pagehideArmed && redirectConfigured()) {\n try {\n window.addEventListener('pagehide', onPageHide, true);\n w.pagehideArmed = true;\n } catch (e) {}\n }\n };\n w.check = check;\n w.fire = fire;\n w.cleanup = cleanup;\n w.alive = function () { return isConnected(formEl); };\n w.markAnswered = function () { w.answered = true; };\n\n try {\n if (typeof MutationObserver !== 'undefined' && block) {\n w.observer = new MutationObserver(function () {\n try { check(); } catch (e) {}\n });\n w.observer.observe(block, { childList: true, subtree: true, attributes: true, attributeFilter: ['class'] });\n }\n } catch (e) {}\n watchers.push(w);\n return w;\n }\n\n // ---- The save request's verdict, from resource timing ----\n\n function onResourceEntries(list) {\n var entries;\n try { entries = list.getEntries(); } catch (e) { return; }\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i];\n if (!e || !isSaveEntry(e)) continue;\n if (seenSaves.indexOf(e) === -1) { seenSaves.push(e); prune(); }\n var status = statusOf(e);\n if (status === null || claimed.indexOf(e) !== -1) continue;\n var candidates = [];\n for (var j = 0; j < watchers.length; j++) {\n var w = watchers[j];\n if (!w.done && w.armed && !w.answered && w.alive() && e.startTime >= w.submitAt) candidates.push(w);\n }\n if (candidates.length !== 1) continue;\n var c = candidates[0];\n if (saveOwnershipAmbiguous(c.form, c.submitAt, e.startTime)) continue;\n if (status >= 200 && status < 300) {\n if (c.fire()) claimed.push(e);\n } else {\n c.markAnswered();\n }\n }\n }\n\n // ---- Submits ----\n\n function handleSubmit(event) {\n try {\n var formEl = event.target;\n if (!formEl || (formEl.tagName || '').toLowerCase() !== 'form') return;\n submitLog.push({ form: formEl, at: now() });\n prune();\n if (!isSquarespaceForm(formEl)) return;\n var block = blockFor(formEl);\n dropStaleWatchers(formEl, block);\n // Squarespace allows one success per page view.\n if (firedForms.indexOf(formEl) !== -1) return;\n if (hasToken(formEl, 'react-form-contents--submitted')) return;\n if (honeypotFilled(formEl)) {\n var old = findWatcher(formEl);\n if (old) old.cleanup();\n return;\n }\n var w = findWatcher(formEl) || createWatcher(formEl, block);\n w.refresh(now());\n } catch (e) {\n // Never throw back into Squarespace's own form handling.\n }\n }\n\n document.addEventListener('submit', handleSubmit, true);\n try {\n if (typeof PerformanceObserver !== 'undefined') {\n new PerformanceObserver(function (list) {\n try { onResourceEntries(list); } catch (e) {}\n }).observe({ type: 'resource' });\n }\n } catch (e) {}\n})();\n</script>"
33
+ },
34
+ {
35
+ "type": "BOOLEAN",
36
+ "key": "supportDocumentWrite",
37
+ "value": "false"
38
+ }
39
+ ],
40
+ "firingTriggerId": [
41
+ "2147479553"
42
+ ],
43
+ "tagFiringOption": "ONCE_PER_EVENT",
44
+ "monitoringMetadata": {
45
+ "type": "MAP"
46
+ },
47
+ "consentSettings": {
48
+ "consentStatus": "NOT_SET"
49
+ }
50
+ }
51
+ ],
52
+ "trigger": [
53
+ {
54
+ "accountId": "0",
55
+ "containerId": "0",
56
+ "triggerId": "2",
57
+ "name": "CE - Squarespace Form Submitted",
58
+ "type": "CUSTOM_EVENT",
59
+ "customEventFilter": [
60
+ {
61
+ "type": "EQUALS",
62
+ "parameter": [
63
+ {
64
+ "type": "TEMPLATE",
65
+ "key": "arg0",
66
+ "value": "{{_event}}"
67
+ },
68
+ {
69
+ "type": "TEMPLATE",
70
+ "key": "arg1",
71
+ "value": "squarespace_form_submitted"
72
+ }
73
+ ]
74
+ }
75
+ ],
76
+ "filter": []
77
+ }
78
+ ],
79
+ "variable": [
80
+ {
81
+ "accountId": "0",
82
+ "containerId": "0",
83
+ "variableId": "1",
84
+ "name": "DLV - Squarespace Form ID",
85
+ "type": "v",
86
+ "parameter": [
87
+ {
88
+ "type": "TEMPLATE",
89
+ "key": "name",
90
+ "value": "form_id"
91
+ },
92
+ {
93
+ "type": "INTEGER",
94
+ "key": "dataLayerVersion",
95
+ "value": "2"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "accountId": "0",
101
+ "containerId": "0",
102
+ "variableId": "2",
103
+ "name": "DLV - Squarespace Form Name",
104
+ "type": "v",
105
+ "parameter": [
106
+ {
107
+ "type": "TEMPLATE",
108
+ "key": "name",
109
+ "value": "form_name"
110
+ },
111
+ {
112
+ "type": "INTEGER",
113
+ "key": "dataLayerVersion",
114
+ "value": "2"
115
+ }
116
+ ]
117
+ }
118
+ ],
119
+ "fingerprint": "0",
120
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
121
+ }
122
+ }