@stacksjs/defaults 0.75.515 → 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.
- package/ai/AGENTS.md +2 -2
- package/ai/skills/stacks-buddy/SKILL.md +1 -1
- package/ai/skills/stacks-build/SKILL.md +10 -0
- package/ai/skills/stacks-chief-of-staff/NOTICE.md +2 -2
- package/ai/skills/stacks-chief-of-staff/PLAYBOOK.md +32 -2
- package/ai/skills/stacks-codebase-design/DESIGN-IT-TWICE.md +1 -2
- package/ai/skills/stacks-codebase-design/NOTICE.md +2 -2
- package/ai/skills/stacks-docs/SKILL.md +78 -80
- package/ai/skills/stacks-domain-modeling/NOTICE.md +2 -2
- package/ai/skills/stacks-flow/ENGINEERING.md +3 -0
- package/ai/skills/stacks-flow/NOTICE.md +2 -2
- package/ai/skills/stacks-flow/upstream-skills.json +121 -90
- package/ai/skills/stacks-git/NOTICE.md +2 -2
- package/ai/skills/stacks-grill-with-docs/NOTICE.md +2 -2
- package/ai/skills/stacks-grilling/NOTICE.md +4 -4
- package/ai/skills/stacks-guard/NOTICE.md +2 -2
- package/ai/skills/stacks-handoff/NOTICE.md +4 -4
- package/ai/skills/stacks-implement/NOTICE.md +2 -2
- package/ai/skills/stacks-implement-spec/NOTICE.md +2 -2
- package/ai/skills/stacks-implement-spec/PLAYBOOK.md +4 -2
- package/ai/skills/stacks-improve-codebase-architecture/NOTICE.md +2 -2
- package/ai/skills/stacks-improve-codebase-architecture/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-investigate/NOTICE.md +2 -2
- package/ai/skills/stacks-loop/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing/CATALOG.md +5 -2
- package/ai/skills/stacks-marketing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-ab-testing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-ab-testing/PLAYBOOK.md +9 -4
- package/ai/skills/stacks-marketing-ab-testing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-ab-testing/references/sample-size-guide.md +42 -27
- package/ai/skills/stacks-marketing-ad-creative/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-ad-creative/PLAYBOOK.md +41 -11
- package/ai/skills/stacks-marketing-ad-creative/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-ad-creative/evals/evals.json +1 -1
- package/ai/skills/stacks-marketing-ad-creative/references/generative-tools.md +47 -51
- package/ai/skills/stacks-marketing-ad-creative/references/hook-system.md +7 -0
- package/ai/skills/stacks-marketing-ad-creative/references/imessage-video-ads.md +2 -2
- package/ai/skills/stacks-marketing-ads/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-ads/PLAYBOOK.md +37 -28
- package/ai/skills/stacks-marketing-ads/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-ads/evals/evals.json +53 -0
- package/ai/skills/stacks-marketing-ads/references/abm-playbook.md +1 -1
- package/ai/skills/stacks-marketing-ads/references/audit-guardrails.md +11 -1
- package/ai/skills/stacks-marketing-ads/references/creative-research-automation.md +19 -0
- package/ai/skills/stacks-marketing-ads/references/google-ads-audit-checklist.md +35 -2
- package/ai/skills/stacks-marketing-ads/references/google-search-playbook.md +4 -0
- package/ai/skills/stacks-marketing-ads/references/linkedin-b2b-playbook.md +2 -0
- package/ai/skills/stacks-marketing-ads/references/meta-andromeda-playbook.md +33 -0
- package/ai/skills/stacks-marketing-ads/references/operating-check.md +75 -0
- package/ai/skills/stacks-marketing-ads/references/reading-google-ads-data.md +1 -1
- package/ai/skills/stacks-marketing-ai-seo/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-ai-seo/PLAYBOOK.md +32 -30
- package/ai/skills/stacks-marketing-ai-seo/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-ai-seo/evals/evals.json +27 -0
- package/ai/skills/stacks-marketing-ai-seo/references/agent-defaults.md +79 -0
- package/ai/skills/stacks-marketing-ai-seo/references/agent-readiness.md +61 -11
- package/ai/skills/stacks-marketing-ai-seo/references/ai-attribution.md +54 -0
- package/ai/skills/stacks-marketing-ai-seo/references/answer-accuracy.md +84 -0
- package/ai/skills/stacks-marketing-ai-seo/references/citations-vs-recommendations.md +32 -1
- package/ai/skills/stacks-marketing-ai-seo/references/content-patterns.md +24 -0
- package/ai/skills/stacks-marketing-ai-seo/references/multilingual-and-commerce.md +55 -0
- package/ai/skills/stacks-marketing-ai-seo/references/platform-ranking-factors.md +31 -11
- package/ai/skills/stacks-marketing-ai-seo/references/prompt-portfolio.md +97 -0
- package/ai/skills/stacks-marketing-analytics/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-analytics/PLAYBOOK.md +74 -15
- package/ai/skills/stacks-marketing-analytics/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-analytics/references/event-library.md +2 -2
- package/ai/skills/stacks-marketing-analytics/references/ga4-implementation.md +3 -3
- package/ai/skills/stacks-marketing-aso/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-aso/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-aso/references/apple-specs.md +1 -1
- package/ai/skills/stacks-marketing-aso/references/scoring-criteria.md +3 -3
- package/ai/skills/stacks-marketing-attribution/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-attribution/PLAYBOOK.md +11 -11
- package/ai/skills/stacks-marketing-attribution/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-attribution/references/by-business-type.md +1 -1
- package/ai/skills/stacks-marketing-attribution/references/measurement-paradigms.md +4 -3
- package/ai/skills/stacks-marketing-churn-prevention/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-churn-prevention/PLAYBOOK.md +14 -4
- package/ai/skills/stacks-marketing-churn-prevention/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-churn-prevention/references/dunning-playbook.md +10 -7
- package/ai/skills/stacks-marketing-co-marketing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-co-marketing/PLAYBOOK.md +4 -4
- package/ai/skills/stacks-marketing-co-marketing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-co-marketing/references/partnership-types.md +2 -2
- package/ai/skills/stacks-marketing-cold-email/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-cold-email/PLAYBOOK.md +6 -6
- package/ai/skills/stacks-marketing-cold-email/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-cold-email/references/deliverability.md +1 -1
- package/ai/skills/stacks-marketing-cold-email/references/follow-up-sequences.md +1 -1
- package/ai/skills/stacks-marketing-cold-email/references/multichannel-cadence.md +1 -1
- package/ai/skills/stacks-marketing-cold-email/references/outbound-plays.md +1 -1
- package/ai/skills/stacks-marketing-cold-email/references/personalization.md +1 -1
- package/ai/skills/stacks-marketing-community-marketing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-community-marketing/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-community-marketing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-community-marketing/references/community-models.md +2 -2
- package/ai/skills/stacks-marketing-competitor-profiling/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-competitor-profiling/PLAYBOOK.md +2 -0
- package/ai/skills/stacks-marketing-competitor-profiling/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-competitors/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-competitors/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-content-strategy/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-content-strategy/PLAYBOOK.md +4 -1
- package/ai/skills/stacks-marketing-content-strategy/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-content-strategy/references/headless-cms.md +3 -3
- package/ai/skills/stacks-marketing-conversion-tracking/LICENSE +21 -0
- package/ai/skills/stacks-marketing-conversion-tracking/NOTICE.md +12 -0
- package/ai/skills/stacks-marketing-conversion-tracking/PLAYBOOK.md +164 -0
- package/ai/skills/stacks-marketing-conversion-tracking/SKILL.md +16 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/README.md +61 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-acuity-scheduling.json +160 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-cal-com.json +141 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-calendly.json +122 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-contact-form-7.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-divi-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-elementor-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-file-download.json +81 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-fluent-forms.json +104 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-formidable-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-forminator.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-framer-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-generic-ajax-form.json +81 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-gravity-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-hubspot-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-jotform.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-ninja-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-phone-click.json +81 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-squarespace-forms.json +122 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-tally.json +122 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-thank-you-page.json +81 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-typeform.json +122 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-webflow-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wix-forms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wix-scheduling.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-wpforms.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/detect/detect-ws-form.json +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/event-map.json +132 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/ga4.json +58 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/google-ads.json +76 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/linkedin.json +128 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/meta.json +128 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/microsoft.json +128 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/gtm-recipes/send/tiktok.json +128 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/README.md +112 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/acuity-scheduling-field.html +28 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/acuity-scheduling.js +75 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/cal-com.js +134 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/calendly.js +113 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/contact-form-7.js +101 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/divi-forms.js +54 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/elementor-forms.js +54 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/file-download.js +96 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/fluent-forms.js +103 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/formidable-forms.js +203 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/forminator.js +65 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/framer-forms.js +96 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/generic-ajax-form.js +165 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/gravity-forms.js +234 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/hubspot-forms.js +162 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/jotform.js +32 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/ninja-forms.js +154 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/phone-click.js +71 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/squarespace-forms.js +428 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/tally.js +167 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/thank-you-page.js +87 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/typeform.js +147 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/webflow-forms.js +57 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wix-forms.js +232 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wix-scheduling.js +80 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/wpforms.js +198 -0
- package/ai/skills/stacks-marketing-conversion-tracking/assets/snippets/ws-form.js +57 -0
- package/ai/skills/stacks-marketing-conversion-tracking/evals/evals.json +264 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/audit-playbook.md +106 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/browser-side.md +424 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/conversion-moments.md +318 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/discrepancies.md +136 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/ecommerce-platforms.md +71 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/google-ads.md +316 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/meta.md +202 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/other-platforms.md +201 -0
- package/ai/skills/stacks-marketing-conversion-tracking/references/server-side.md +167 -0
- package/ai/skills/stacks-marketing-conversion-tracking/scripts/build-recipe.ts +140 -0
- package/ai/skills/stacks-marketing-copy-editing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-copy-editing/PLAYBOOK.md +3 -1
- package/ai/skills/stacks-marketing-copy-editing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-copy-editing/evals/evals.json +13 -0
- package/ai/skills/stacks-marketing-copy-editing/references/checklist.md +24 -0
- package/ai/skills/stacks-marketing-copywriting/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-copywriting/PLAYBOOK.md +55 -2
- package/ai/skills/stacks-marketing-copywriting/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-copywriting/evals/evals.json +14 -0
- package/ai/skills/stacks-marketing-copywriting/references/ai-tells.md +48 -0
- package/ai/skills/stacks-marketing-copywriting/references/copy-frameworks.md +1 -1
- package/ai/skills/stacks-marketing-council/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-council/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-cro/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-cro/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-cro/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-customer-research/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-customer-research/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-customer-research/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-customer-research/references/source-guides.md +1 -1
- package/ai/skills/stacks-marketing-directory-submissions/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-directory-submissions/PLAYBOOK.md +6 -5
- package/ai/skills/stacks-marketing-directory-submissions/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-directory-submissions/evals/evals.json +14 -2
- package/ai/skills/stacks-marketing-directory-submissions/references/directory-list.md +4 -4
- package/ai/skills/stacks-marketing-directory-submissions/references/positioning-variations.md +1 -1
- package/ai/skills/stacks-marketing-directory-submissions/references/submission-tracker-template.csv +1 -1
- package/ai/skills/stacks-marketing-emails/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-emails/PLAYBOOK.md +9 -7
- package/ai/skills/stacks-marketing-emails/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-events/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-events/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-free-tools/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-free-tools/PLAYBOOK.md +6 -5
- package/ai/skills/stacks-marketing-free-tools/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-free-tools/evals/evals.json +3 -2
- package/ai/skills/stacks-marketing-free-tools/references/tool-benchmarks.md +24 -23
- package/ai/skills/stacks-marketing-ideas/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-ideas/PLAYBOOK.md +1 -0
- package/ai/skills/stacks-marketing-ideas/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-image/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-image/PLAYBOOK.md +6 -6
- package/ai/skills/stacks-marketing-image/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-image/references/ai-image-prompting.md +5 -5
- package/ai/skills/stacks-marketing-influencer-marketing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-influencer-marketing/PLAYBOOK.md +11 -4
- package/ai/skills/stacks-marketing-influencer-marketing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-influencer-marketing/evals/evals.json +14 -0
- package/ai/skills/stacks-marketing-influencer-marketing/references/newsletter-sponsorships.md +76 -0
- package/ai/skills/stacks-marketing-influencer-marketing/references/paid-ads-creator-program.md +79 -0
- package/ai/skills/stacks-marketing-influencer-marketing/references/telegram-channels.md +111 -0
- package/ai/skills/stacks-marketing-launch/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-launch/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-launch/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-launch/references/site-launch-qa.md +2 -2
- package/ai/skills/stacks-marketing-lead-magnets/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-lead-magnets/PLAYBOOK.md +1 -2
- package/ai/skills/stacks-marketing-lead-magnets/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-link-building/LICENSE +21 -0
- package/ai/skills/stacks-marketing-link-building/NOTICE.md +8 -0
- package/ai/skills/stacks-marketing-link-building/PLAYBOOK.md +167 -0
- package/ai/skills/stacks-marketing-link-building/SKILL.md +16 -0
- package/ai/skills/stacks-marketing-link-building/evals/evals.json +71 -0
- package/ai/skills/stacks-marketing-link-building/references/prospecting-and-outreach.md +114 -0
- package/ai/skills/stacks-marketing-link-building/references/risk-policy.md +56 -0
- package/ai/skills/stacks-marketing-link-building/references/tactics.md +106 -0
- package/ai/skills/stacks-marketing-loops/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-loops/PLAYBOOK.md +3 -2
- package/ai/skills/stacks-marketing-loops/SKILL.md +2 -2
- package/ai/skills/stacks-marketing-loops/references/loop-catalog.md +131 -14
- package/ai/skills/stacks-marketing-loops/references/loop-orchestration.md +2 -2
- package/ai/skills/stacks-marketing-loops/references/loop-state.md +21 -0
- package/ai/skills/stacks-marketing-loops/references/seo-operator.md +1 -1
- package/ai/skills/stacks-marketing-offers/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-offers/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-offers/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-offers/evals/evals.json +13 -0
- package/ai/skills/stacks-marketing-offers/references/offer-formats.md +1 -1
- package/ai/skills/stacks-marketing-onboarding/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-onboarding/PLAYBOOK.md +10 -4
- package/ai/skills/stacks-marketing-onboarding/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-onboarding/evals/evals.json +2 -2
- package/ai/skills/stacks-marketing-onboarding/references/activation-models.md +4 -1
- package/ai/skills/stacks-marketing-paywalls/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-paywalls/PLAYBOOK.md +3 -0
- package/ai/skills/stacks-marketing-paywalls/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-paywalls/evals/evals.json +15 -0
- package/ai/skills/stacks-marketing-paywalls/references/experiments.md +7 -3
- package/ai/skills/stacks-marketing-paywalls/references/mobile-subscription-paywalls.md +69 -0
- package/ai/skills/stacks-marketing-plan/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-plan/PLAYBOOK.md +5 -0
- package/ai/skills/stacks-marketing-plan/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-popups/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-popups/PLAYBOOK.md +1 -2
- package/ai/skills/stacks-marketing-popups/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-pricing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-pricing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-pricing/references/research-methods.md +12 -2
- package/ai/skills/stacks-marketing-product-marketing/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-product-marketing/PLAYBOOK.md +72 -7
- package/ai/skills/stacks-marketing-product-marketing/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-product-marketing/references/brand-voice.md +103 -0
- package/ai/skills/stacks-marketing-programmatic-seo/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-programmatic-seo/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-programmatic-seo/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-programmatic-seo/references/implementation-platforms.md +2 -2
- package/ai/skills/stacks-marketing-programmatic-seo/references/playbooks.md +1 -1
- package/ai/skills/stacks-marketing-prospecting/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-prospecting/PLAYBOOK.md +18 -18
- package/ai/skills/stacks-marketing-prospecting/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-prospecting/evals/evals.json +28 -0
- package/ai/skills/stacks-marketing-prospecting/references/data-sources.md +12 -12
- package/ai/skills/stacks-marketing-prospecting/references/enrichment-playbook.md +1 -1
- package/ai/skills/stacks-marketing-prospecting/references/signal-plays.md +44 -2
- package/ai/skills/stacks-marketing-psychology/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-psychology/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-public-relations/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-public-relations/PLAYBOOK.md +3 -0
- package/ai/skills/stacks-marketing-public-relations/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-referrals/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-referrals/PLAYBOOK.md +8 -8
- package/ai/skills/stacks-marketing-referrals/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-referrals/references/affiliate-programs.md +1 -1
- package/ai/skills/stacks-marketing-referrals/references/program-examples.md +9 -2
- package/ai/skills/stacks-marketing-referrals/references/review-programs.md +1 -1
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/LICENSE +21 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/NOTICE.md +8 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/PLAYBOOK.md +312 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/SKILL.md +21 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/evals/evals.json +242 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/content-teardown.md +97 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/data-sources.md +147 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/funnel-hack.md +96 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/go-inside.md +107 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/hidden-signals.md +78 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/agencies-b2b-services.md +84 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/automotive.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/care-services.md +83 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/consumer-hardware.md +87 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/cpg-food-beverage.md +85 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/crypto-web3.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/ecommerce-dtc.md +93 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/education.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/events-entertainment.md +88 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/finance.md +92 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/fitness-wellness.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/franchising.md +84 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/gambling-betting.md +85 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/games-pc-console.md +84 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/govtech-public-sector.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/healthcare.md +88 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/hospitality-travel.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/insurance.md +87 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/legal-professional-services.md +86 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/local-services.md +88 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/logistics-transportation.md +87 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/manufacturing-industrial.md +84 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/marketplaces.md +85 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/media-creators.md +85 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/mobile-apps-games.md +96 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/nonprofit.md +84 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/real-estate.md +87 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/regulated-goods.md +88 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/retail.md +88 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/saas.md +91 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/industries/solar-home-energy.md +84 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/landscape.md +85 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/play-routing.md +73 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/playbook-template.md +133 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/team-voices.md +71 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/timeline-analysis.md +62 -0
- package/ai/skills/stacks-marketing-reverse-engineer-marketing/references/weak-spots.md +70 -0
- package/ai/skills/stacks-marketing-revops/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-revops/PLAYBOOK.md +14 -14
- package/ai/skills/stacks-marketing-revops/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-revops/references/automation-playbooks.md +3 -3
- package/ai/skills/stacks-marketing-revops/references/inbound-routing.md +1 -1
- package/ai/skills/stacks-marketing-revops/references/lifecycle-definitions.md +2 -0
- package/ai/skills/stacks-marketing-revops/references/scoring-models.md +14 -13
- package/ai/skills/stacks-marketing-sales-enablement/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-sales-enablement/PLAYBOOK.md +2 -2
- package/ai/skills/stacks-marketing-sales-enablement/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-sales-enablement/references/cold-call-scripts.md +1 -1
- package/ai/skills/stacks-marketing-schema/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-schema/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-seo-audit/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-seo-audit/PLAYBOOK.md +5 -4
- package/ai/skills/stacks-marketing-seo-audit/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-seo-audit/references/international-seo.md +3 -1
- package/ai/skills/stacks-marketing-seo-audit/references/rankings-push.md +1 -1
- package/ai/skills/stacks-marketing-signup/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-signup/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-marketing-signup/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-site-architecture/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-site-architecture/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-site-architecture/references/platforms-and-migration.md +1 -1
- package/ai/skills/stacks-marketing-sms/NOTICE.md +1 -1
- package/ai/skills/stacks-marketing-sms/PLAYBOOK.md +9 -9
- package/ai/skills/stacks-marketing-sms/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-social/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-social/PLAYBOOK.md +5 -4
- package/ai/skills/stacks-marketing-social/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-social/references/listening.md +13 -0
- package/ai/skills/stacks-marketing-social/references/platforms.md +37 -1
- package/ai/skills/stacks-marketing-social/references/short-form-video.md +51 -6
- package/ai/skills/stacks-marketing-video/NOTICE.md +2 -2
- package/ai/skills/stacks-marketing-video/PLAYBOOK.md +35 -18
- package/ai/skills/stacks-marketing-video/SKILL.md +1 -1
- package/ai/skills/stacks-marketing-video/evals/evals.json +27 -0
- package/ai/skills/stacks-marketing-video/references/code-rendered-product-films.md +119 -0
- package/ai/skills/stacks-native/CATALOG.md +4 -4
- package/ai/skills/stacks-pr/NOTICE.md +2 -2
- package/ai/skills/stacks-prototype/NOTICE.md +2 -2
- package/ai/skills/stacks-research/NOTICE.md +2 -2
- package/ai/skills/stacks-research/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-retro/NOTICE.md +2 -2
- package/ai/skills/stacks-review/NOTICE.md +2 -2
- package/ai/skills/stacks-scaffold-exercises/NOTICE.md +2 -2
- package/ai/skills/stacks-setup-deep-modules/NOTICE.md +2 -2
- package/ai/skills/stacks-setup-engineering/NOTICE.md +2 -2
- package/ai/skills/stacks-setup-engineering/PLAYBOOK.md +3 -1
- package/ai/skills/stacks-setup-engineering/issue-tracker-github.md +8 -4
- package/ai/skills/stacks-setup-engineering/issue-tracker-gitlab.md +3 -3
- package/ai/skills/stacks-software-factory/EXAMPLE-TASKS.md +80 -0
- package/ai/skills/stacks-software-factory/GIT-HOSTS.md +84 -0
- package/ai/skills/stacks-software-factory/LICENSE +21 -0
- package/ai/skills/stacks-software-factory/NOTICE.md +8 -0
- package/ai/skills/stacks-software-factory/OBSERVABILITY-PLATFORMS.md +75 -0
- package/ai/skills/stacks-software-factory/PLAYBOOK.md +95 -0
- package/ai/skills/stacks-software-factory/RUNNERS.md +94 -0
- package/ai/skills/stacks-software-factory/SKILL.md +21 -0
- package/ai/skills/stacks-software-factory/TICKET-TRACKERS.md +85 -0
- package/ai/skills/stacks-tdd/NOTICE.md +2 -2
- package/ai/skills/stacks-teach/NOTICE.md +2 -2
- package/ai/skills/stacks-test-fixtures/NOTICE.md +2 -2
- package/ai/skills/stacks-to-questionnaire/NOTICE.md +2 -2
- package/ai/skills/stacks-to-spec/NOTICE.md +2 -2
- package/ai/skills/stacks-to-tickets/NOTICE.md +2 -2
- package/ai/skills/stacks-triage/NOTICE.md +2 -2
- package/ai/skills/stacks-wait-what/NOTICE.md +2 -2
- package/ai/skills/stacks-wayfinder/NOTICE.md +2 -2
- package/ai/skills/stacks-wayfinder/PLAYBOOK.md +1 -1
- package/ai/skills/stacks-wizard/NOTICE.md +2 -2
- package/ai/skills/stacks-writing-beats/NOTICE.md +2 -2
- package/ai/skills/stacks-writing-for-agents/NOTICE.md +2 -2
- package/ai/skills/stacks-writing-for-agents/SKILL.md +1 -1
- package/ai/skills/stacks-writing-fragments/NOTICE.md +2 -2
- package/ai/skills/stacks-writing-shape/NOTICE.md +2 -2
- package/app/Actions/UnsubscribeAction.ts +1 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# LinkedIn, TikTok, Microsoft, and the rest
|
|
2
|
+
|
|
3
|
+
## Part A: setup from zero
|
|
4
|
+
|
|
5
|
+
Contents:
|
|
6
|
+
1. Before you start (applies to all 3)
|
|
7
|
+
2. LinkedIn Ads (Insight Tag and conversion rules)
|
|
8
|
+
3. Microsoft Ads (UET tag and conversion goals)
|
|
9
|
+
4. TikTok Ads (pixel and form events)
|
|
10
|
+
5. Verification and common failures
|
|
11
|
+
|
|
12
|
+
Before you start. You usually cannot log into the user's ad accounts, so account steps are guided. Give exact clicks and ask what they see. Website and GTM steps you can do yourself with access. Conversion moments come from this repo's detection snippets, which push canonical dataLayer events at the true submission moment. The names live in ../assets/gtm-recipes/event-map.json and snippets/README.md (for example, Typeform pushes typeform_form_submitted). And set expectations once, up front. Even a perfect browser-side setup misses typically 10-30% (depending on audience) of conversions to ad blockers, Safari cookie limits, and cross-device journeys the browser can't connect back to the ad click. See discrepancies.md.
|
|
13
|
+
|
|
14
|
+
### LinkedIn Ads
|
|
15
|
+
|
|
16
|
+
LinkedIn is mid-rollout on menu names. Newer accounts show Data in the left menu, older accounts show Analyze. If the user cannot find a screen under one, have them check the other.
|
|
17
|
+
|
|
18
|
+
**Step 1 - Create the Insight Tag**
|
|
19
|
+
- Goal. Generate the sitewide tag and its Partner ID.
|
|
20
|
+
- Do this. In Campaign Manager, ask the user to click Data in the left menu, then Signals Manager, scroll to the Sources catalog section, and click Insight Tag (older accounts use Analyze, then Insight Tag). Then they choose "I will use a tag manager" to get the Partner ID, or "I will install the tag myself" to get the full code. Ask them to paste back the Partner ID or code.
|
|
21
|
+
- Expect to see. A short numeric Partner ID, or a code block containing _linkedin_partner_id.
|
|
22
|
+
- On error. If neither Data nor Analyze shows the option, the user's Campaign Manager role is too limited (needs Account Manager or higher). If a tag already exists, reuse it. Only 1 Insight Tag may run per page.
|
|
23
|
+
|
|
24
|
+
**Step 2 - Install the tag**
|
|
25
|
+
- Goal. Load the Insight Tag on every page.
|
|
26
|
+
- Do this. With GTM, create a new tag using the LinkedIn Insight community template (or a Custom HTML tag with the full code), enter the Partner ID, set the trigger to All Pages, then Submit and Publish. Without GTM, paste the full code into the site's global footer, just before the closing body tag, on every page.
|
|
27
|
+
- Expect to see. The Network tab on any page shows requests to snap.licdn.com and px.ads.linkedin.com/collect.
|
|
28
|
+
- On error. Installed only on the landing page means retargeting and page-based conversions silently miss everything else, so it must be sitewide. If the requests never appear, a consent banner or content blocker is stopping snap.licdn.com.
|
|
29
|
+
|
|
30
|
+
**Step 3 - Create the conversion rule**
|
|
31
|
+
- Goal. Tell LinkedIn what counts as a lead.
|
|
32
|
+
- Do this. Ask the user to click Analyze, then Conversion tracking (some accounts show this under Data or Measurement), then Create conversion. Name it, pick Lead as the type, and choose how it is detected. Prefer an event-specific conversion, or a page-load rule matching the thank-you page URL. If a URL rule, choose "contains" on a stable path fragment like /thank-you. Do not use Exact match. LinkedIn appends its own parameters (including li_fat_id) to landing URLs, and exact-match rules break on them.
|
|
33
|
+
- Expect to see. The new rule listed in Conversion tracking.
|
|
34
|
+
- On error. Exact-match rules record nothing even when everything else works, which is the top LinkedIn-specific failure. And "contains /thank-you" also matches sub-pages, so check for overlapping rules that double count.
|
|
35
|
+
|
|
36
|
+
**Step 4 - Associate the rule with campaigns**
|
|
37
|
+
- Goal. Make conversions actually record. This is the critical LinkedIn gotcha.
|
|
38
|
+
- Do this. In the creation flow's final step, tick the campaigns the conversion applies to before clicking Create. For existing rules, open the conversion and edit its associated campaigns.
|
|
39
|
+
- Expect to see. The conversion's row shows 1 or more associated campaigns.
|
|
40
|
+
- On error. A rule with no campaign association records nothing, forever, with no warning. Whenever LinkedIn shows 0 conversions, check association first.
|
|
41
|
+
|
|
42
|
+
Testing reality. Only a real ad click can produce a LinkedIn conversion. Ad previews, direct visits, and test submissions never count. Test with a real ad click in an incognito window and allow up to 24 hours for it to appear.
|
|
43
|
+
|
|
44
|
+
### Microsoft Ads
|
|
45
|
+
|
|
46
|
+
**Step 1 - Get the UET tag**
|
|
47
|
+
- Goal. Find the tag ID and code.
|
|
48
|
+
- Do this. Ask the user to click Conversions in the left menu, then UET tag (older layouts use Tools, then Conversion tracking). New accounts usually have a tag auto-created. In the Action column they click View tag to see the code, and paste back the tag ID.
|
|
49
|
+
- Expect to see. A numeric tag ID and a code block referencing bat.bing.com/bat.js.
|
|
50
|
+
- On error. No tag listed means click Create UET tag and name it after the site. Multiple tags means confirm which one the account's goals use, and install only that one.
|
|
51
|
+
|
|
52
|
+
**Step 2 - Install the tag**
|
|
53
|
+
- Goal. Load UET on every page, including the thank-you page.
|
|
54
|
+
- Do this. With GTM, create a tag with the built-in Microsoft Advertising Universal Event Tracking template, enter the tag ID, trigger on All Pages, Submit and Publish. Without GTM, paste the code into the site's global head.
|
|
55
|
+
- Expect to see. The Network tab shows bat.bing.com/bat.js loading and a beacon to bat.bing.com/action/0.
|
|
56
|
+
- On error. Tag only on landing pages misses the thank-you page, so destination goals never fire. Theme or plugin updates silently removing the tag is common, so recheck after site changes.
|
|
57
|
+
|
|
58
|
+
**Step 3 - Create a conversion goal**
|
|
59
|
+
- Goal. Make anything count at all. The number 1 Microsoft failure is a UET tag installed with no goal, and nothing counts until a goal exists.
|
|
60
|
+
- Do this. Ask the user to click Conversions, then Conversion goals, then Create. Choose Website as the type, then either a Destination URL goal (thank-you page) or an Event goal. For URL goals, use "Contains" with a short stable fragment like /thank-you, never Equals, since trailing slashes, https variants, and appended parameters all break exact matches. For Event goals, the action and category values are case-sensitive and must match the uetq.push call exactly.
|
|
61
|
+
- Expect to see. The goal listed with Tag status Unverified at first.
|
|
62
|
+
- On error. Goal created but stuck Unverified for days means the tag never fired once (revisit Step 2). "No recent conversions" with a working tag usually means the URL rule does not match the real thank-you URL, so compare character for character.
|
|
63
|
+
|
|
64
|
+
**Step 4 - Fire the lead moment and verify**
|
|
65
|
+
- Goal. Send the conversion event and prove the install.
|
|
66
|
+
- Do this. For a destination goal, nothing more is needed if the form redirects to the thank-you page. Otherwise, fire a custom event on the canonical dataLayer event from ../assets/gtm-recipes/event-map.json via a GTM Custom HTML tag containing window.uetq = window.uetq || []; uetq.push('event', 'submit_lead_form', {}); and create a matching Event goal with that exact action string. Then install the UET Tag Helper Chrome extension, load the site, and turn it on.
|
|
67
|
+
- Expect to see. UET Tag Helper reports "This UET tag is set up correctly", and a test submission shows the custom event in the helper plus a bat.bing.com/action/0 request.
|
|
68
|
+
- On error. Helper is real-time but the goal status UI lags up to 24 hours, so do not panic at a lagging dashboard when the helper is green. Event fires but the goal stays at 0 usually means a case mismatch between the push and the goal.
|
|
69
|
+
|
|
70
|
+
### TikTok Ads
|
|
71
|
+
|
|
72
|
+
**Step 1 - Create the pixel**
|
|
73
|
+
- Goal. Create the web data source and get the pixel ID.
|
|
74
|
+
- Do this. Ask the user to open TikTok Ads Manager, go to Tools, then Events Manager. Click Connect Data Source, select Web, enter the website URL, and pick Manual Setup (not a partner integration). They create and name the pixel, then paste back the pixel ID and code.
|
|
75
|
+
- Expect to see. A pixel listed in Events Manager with its ID and an install code block referencing analytics.tiktok.com.
|
|
76
|
+
- On error. Choosing a partner integration flow when the site's platform is not listed dead-ends. Back out and use Manual Setup. A pixel that already exists should be reused, not duplicated.
|
|
77
|
+
|
|
78
|
+
**Step 2 - Install the base code**
|
|
79
|
+
- Goal. Load the pixel sitewide, early in the page.
|
|
80
|
+
- Do this. With GTM, use the official TikTok Pixel template from the community gallery with the pixel ID, trigger on All Pages, Submit and Publish. Without GTM, paste the code high in the site's global head.
|
|
81
|
+
- Expect to see. The Network tab shows analytics.tiktok.com loading on every page.
|
|
82
|
+
- On error. TikTok flags "code not installed in header" when the script loads late, and queued events get dropped. Move it up in the head. No requests at all points to a consent banner or blocker.
|
|
83
|
+
|
|
84
|
+
**Step 3 - Fire the form event**
|
|
85
|
+
- Goal. Report the lead moment. This skill's recipes send SubmitForm, which TikTok supports indefinitely and reports as Lead. TikTok's May 2025 guidance says new setups should use Lead, while its April 2026 event list still shows Submit Form, so either works. Use CompleteRegistration for account signups.
|
|
86
|
+
- Do this. In GTM, create a Custom Event trigger for the canonical dataLayer event from ../assets/gtm-recipes/event-map.json, and attach a Custom HTML tag containing a script with ttq.track('SubmitForm');. Without GTM, use the same dataLayer watcher pattern shown in meta.md (Step 7, the small dataLayer watcher), calling ttq.track('SubmitForm') instead of fbq.
|
|
87
|
+
- Expect to see. On a test submission, a request to analytics.tiktok.com carrying the SubmitForm event.
|
|
88
|
+
- On error. Event name typos or old names silently record nothing, so copy SubmitForm exactly. If the tag fires but nothing reaches TikTok, the base code loaded after the event fired.
|
|
89
|
+
|
|
90
|
+
**Step 4 - Test it**
|
|
91
|
+
- Goal. Confirm events arrive in TikTok.
|
|
92
|
+
- Do this. Ask the user to open Events Manager, select the pixel, and use the Test Events feature while they load the site and submit a test entry. The TikTok Pixel Helper Chrome extension gives a page-level readout, and the Diagnostics tab surfaces install warnings.
|
|
93
|
+
- Expect to see. Pageview on load, then SubmitForm once per submission, with no Diagnostics warnings.
|
|
94
|
+
- On error. Events show in Pixel Helper but not in Events Manager usually means a wrong pixel ID. Duplicate SubmitForm rows mean 2 installs of the event tag.
|
|
95
|
+
|
|
96
|
+
Lead quality note. TikTok strongly pushes pairing the pixel with its Events API for lead campaigns, and that is a server-side job with tokens and hashing, not a paste-in snippet. When the user wants it, route through server-side.md.
|
|
97
|
+
|
|
98
|
+
### Verification
|
|
99
|
+
|
|
100
|
+
All observable, per platform:
|
|
101
|
+
|
|
102
|
+
- LinkedIn. The Insight Tag shows as active in Signals Manager after real traffic (allow up to 24 hours). The conversion rule lists associated campaigns. A real ad click followed by a test submission appears in Campaign Manager within 24 hours.
|
|
103
|
+
- Microsoft. UET Tag Helper shows green on every key page. A submission produces a bat.bing.com/action/0 request. The goal's status moves from Unverified to Recording after the first real conversion.
|
|
104
|
+
- TikTok. Test Events shows exactly 1 SubmitForm per submission, Pixel Helper reports the correct pixel ID, and Diagnostics shows no header or coverage warnings.
|
|
105
|
+
|
|
106
|
+
### Common failures
|
|
107
|
+
|
|
108
|
+
When a check fails or numbers look wrong later, diagnose against the per-platform failure catalogs in Part B of this file (LinkedIn L1 to L8, Microsoft B1 to B9, TikTok T1 to T10, plus the cross-platform cheatsheet).
|
|
109
|
+
|
|
110
|
+
## Part B: diagnostic reference
|
|
111
|
+
|
|
112
|
+
### LinkedIn diagnostics
|
|
113
|
+
|
|
114
|
+
#### Insight Tag anatomy
|
|
115
|
+
- `_linkedin_partner_id = "1234567"` variable; script `snap.licdn.com/li.lms-analytics/insight.min.js`
|
|
116
|
+
- Noscript: `px.ads.linkedin.com/collect/?pid=<id>&fmt=gif`
|
|
117
|
+
- Event conversions: `window.lintrk('track', { conversion_id: 12345678 })`
|
|
118
|
+
- Console: `window._linkedin_data_partner_ids`, `typeof window.lintrk`
|
|
119
|
+
|
|
120
|
+
#### Click ID
|
|
121
|
+
- `li_fat_id` appended with Enhanced Conversion Tracking enabled (default on new tags); stored in first-party cookie `li_fat_id`, 30 days. CAPI idType: LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID - strongest match key besides hashed email.
|
|
122
|
+
- Browser matching otherwise depends on logged-in LinkedIn session (third-party cookies) - degrades badly with cookie blocking; non-member traffic never matches.
|
|
123
|
+
|
|
124
|
+
#### Failure modes
|
|
125
|
+
- **L1. Tag not installed/verified** (VERY COMMON)
|
|
126
|
+
- **L2. Wrong partner ID or conversion_id mismatch** (COMMON)
|
|
127
|
+
- **L3. Conversion rule URL-matching misconfiguration** (VERY COMMON, top LinkedIn-specific cause): "Exact" breaks on appended params INCLUDING LinkedIn's own li_fat_id; "Starts with" + protocol breaks on http/https; the tag can REORDER URL parameters. Use "contains" on stable path fragments.
|
|
128
|
+
- **L4. Conversion not attached to a campaign** (COMMON, LinkedIn-specific): unassociated conversion rules record NOTHING.
|
|
129
|
+
- **L5. Member-match dependency & testing pitfalls** (COMMON false alarm): ad preview clicks never convert; testing while logged into advertiser account suppressed; 2-24h lag. Test via real ad click in incognito; wait 24h.
|
|
130
|
+
- **L6. Double-counting via overlapping URL rules** (OCCASIONAL): "contains /thank-you" also matches sub-pages.
|
|
131
|
+
- **L7. CSP / ad blocker / duplicate tags** (COMMON): CSP must allow snap.licdn.com + px.ads.linkedin.com; only ONE Insight Tag per page.
|
|
132
|
+
- **L8. SPA route changes untracked** (COMMON): call `window.lintrk('track')` on route changes.
|
|
133
|
+
|
|
134
|
+
#### LinkedIn CAPI
|
|
135
|
+
Direct API path: non-expiring token from Campaign Manager > Signals Manager > Direct API (SMB-viable). Developer Portal path needs approved app + review (slow). Identifiers: SHA-256 email or li_fat_id. B2B reality: personal-vs-work email mismatch caps match rates. No official browser test extension - use Campaign Manager status + network checks.
|
|
136
|
+
|
|
137
|
+
### TikTok diagnostics
|
|
138
|
+
|
|
139
|
+
#### Pixel anatomy
|
|
140
|
+
- Global `ttq`; script `analytics.tiktok.com/i18n/pixel/events.js`
|
|
141
|
+
- `ttq.load('<id>')`, `ttq.page()`, `ttq.track('SubmitForm'|'Lead'|'Contact')`
|
|
142
|
+
- Advanced matching: `ttq.identify({email, phone_number})`
|
|
143
|
+
|
|
144
|
+
#### Click ID
|
|
145
|
+
- `ttclid` → first-party `ttclid` cookie. `_ttp` browser ID. TikTok pixel cookies expire 13 months. ttclid strongest Events API match signal, _ttp second. Same strip risks as fbclid.
|
|
146
|
+
|
|
147
|
+
#### Failure modes
|
|
148
|
+
- **T1. Base code missing / wrong ID** (VERY COMMON)
|
|
149
|
+
- **T2. "Code not installed in header"** (COMMON): loads too late, queued events dropped
|
|
150
|
+
- **T3. Lead fires at wrong moment / missing params** (COMMON): redirect race, GTM selector issues
|
|
151
|
+
- **T4. "First-party cookies not found"** (OCCASIONAL): disabled in pixel settings
|
|
152
|
+
- **T5. Advanced Matching format errors** (COMMON): email lowercase, phone E.164, else silently useless
|
|
153
|
+
- **T6. Consent/ad-blocker suppression** (VERY COMMON): typically 10-30% loss, depending on audience
|
|
154
|
+
- **T7. Dedup misconfigured Pixel vs Events API** (COMMON): dedup on event_id + name within 48h window
|
|
155
|
+
- **T8. Events API auth/payload failures** (COMMON): expired token, malformed timestamps, unhashed PII
|
|
156
|
+
- **T9. SPA navigation untracked** (COMMON): call ttq.page() on route changes
|
|
157
|
+
- **T10. Legacy/misspelled event names** (OCCASIONAL)
|
|
158
|
+
|
|
159
|
+
#### Events API
|
|
160
|
+
Pixel code + self-serve access token (easier than LinkedIn). event_id mirrored with pixel; email SHA-256 lowercased; phone SHA-256 E.164; raw IP+UA; ttclid from URL/cookie. Test tooling: TikTok Pixel Helper extension, Test Events tab, Diagnostics tab.
|
|
161
|
+
|
|
162
|
+
### Microsoft Ads (UET) diagnostics
|
|
163
|
+
|
|
164
|
+
#### UET anatomy
|
|
165
|
+
- Script `bat.bing.com/bat.js`; global queue `window.uetq`; tag ID `{ti:"XXXXXXXX"}`
|
|
166
|
+
- Custom events: `window.uetq.push('event', 'action', {event_category, event_label, event_value})`
|
|
167
|
+
- Beacons: `bat.bing.com/action/0?ti=...`
|
|
168
|
+
|
|
169
|
+
#### Click ID
|
|
170
|
+
- MSCLKID auto-tagging on by default (Settings > Account level options); `msclkid=` → first-party cookie `_uetmsclkid` (~90d); `_uetsid` session, `_uetvid` visitor (13mo). Strip risks: redirects, cross-domain (must be manually carried).
|
|
171
|
+
|
|
172
|
+
#### Failure modes
|
|
173
|
+
- **B1. "UET installed = conversions tracked" fallacy** (VERY COMMON, the #1 Microsoft failure): UET only records raw activity; NOTHING counts until a conversion goal is created.
|
|
174
|
+
- **B2. Destination-URL goal never matches** (VERY COMMON): trailing slashes, http/https, case, .html, appended params. Use "contains".
|
|
175
|
+
- **B3. Goal status decoder**: Unverified (no activity yet, wait 24h) / Tag inactive (no hits 24h) / InactiveDueToTagUnavailable (permission change) / No recent conversions (rule not matching) / Recording. UI lags up to 24h; UET Tag Helper is real-time.
|
|
176
|
+
- **B4. Event goal case sensitivity** (COMMON): action/category/label matching is case-sensitive.
|
|
177
|
+
- **B5. Tag only on landing pages / removed by theme update** (COMMON): must be site-wide incl. thank-you.
|
|
178
|
+
- **B6. GTM misconfiguration** (COMMON)
|
|
179
|
+
- **B7. Consent Mode gap** (VERY COMMON since May 2025, widely missed): Microsoft requires consent signals since May 5 2025; basic mode denied conversions are LOST ENTIRELY (no modeling, unlike Google). Advanced Consent Mode opt-in since Feb 2026. GTM users can inherit Google Consent Mode via the UET tag's "Consent settings" toggle - must be explicitly enabled.
|
|
180
|
+
- **B8. Duplicate UET tags** (OCCASIONAL)
|
|
181
|
+
- **B9. Copying goals from Google without adjustment** (OCCASIONAL): imported campaigns don't import working tracking.
|
|
182
|
+
|
|
183
|
+
#### Server-side
|
|
184
|
+
Microsoft has a Conversions API (UET CAPI). It's self-serve where available, using a token from the UET tag settings (edit the tag, choose Use Conversions API, then Copy Token), though Microsoft's help page still says not every account has it yet (checked October 2026). It takes web, CRM, offline and app events whose eventTime is within the last 7 days, up to 1,000 per batch. It deduplicates against UET when both send the same eventId and eventName on the same tag (UET's `event_id`). Otherwise: offline conversion imports via msclkid captured to CRM, or UET enhanced conversions with hashed email/phone. Failure: msclkid never captured in hidden field or auto-tagging off. Test: UET Tag Helper extension (green/yellow/red), bat.bing.com/action/0 requests, goal Tracking Status.
|
|
185
|
+
|
|
186
|
+
### Cross-platform cheatsheet
|
|
187
|
+
|
|
188
|
+
| | Meta | LinkedIn | TikTok | Microsoft |
|
|
189
|
+
|---|---|---|---|---|
|
|
190
|
+
| Script host | connect.facebook.net | snap.licdn.com | analytics.tiktok.com | bat.bing.com |
|
|
191
|
+
| Beacon | facebook.com/tr | px.ads.linkedin.com/collect | analytics.tiktok.com | bat.bing.com/action/0 |
|
|
192
|
+
| Global | fbq | lintrk, _linkedin_data_partner_ids | ttq | uetq |
|
|
193
|
+
| Click ID → cookie | fbclid → _fbc (90d; ITP 24h/7d) | li_fat_id → li_fat_id (30d) | ttclid → ttclid (13mo) | msclkid → _uetmsclkid (~90d) |
|
|
194
|
+
| Browser ID | _fbp (90d) | member cookies (3rd party) | _ttp (13mo) | _uetvid (13mo) |
|
|
195
|
+
| Dedup key | event_name + event_id | eventId shared by Insight Tag and CAPI, one conversion rule per source | event_id + name, 48h | goal-level |
|
|
196
|
+
| Server-side | CAPI (token, hashed em/ph, event_id) | CAPI (Direct API token, email/li_fat_id) | Events API (token, em/ph, ttclid) | Conversions API (token from the UET tag, still rolling out), or offline imports via msclkid |
|
|
197
|
+
| Test tool | Test Events + Meta Ads Data Advisor (formerly Pixel Helper) | Campaign Manager status only | Test Events + Pixel Helper | UET Tag Helper |
|
|
198
|
+
|
|
199
|
+
Universal checks every audit: consent banner (accept vs decline test); ad-blocker attrition typically 10-30% (depending on audience); redirect-before-beacon race; iframe embeds; SPA routes; thank-you missing base tag; duplicate installs; wrong account/ID; URL-rule mismatches; testing hygiene (incognito, real ad clicks, 24h lags).
|
|
200
|
+
|
|
201
|
+
Key sources: trackingplan.com meta pixel; watsspace.com dedup; niblin.com EMQ; ego-digital.io _fbc; measureschool.com; jonloomer.com AEM; bluefroganalytics.com LinkedIn; jacobfilipp.com LinkedIn; b2linked.com ep38; learn.microsoft.com LinkedIn CAPI + click IDs; benly.ai TikTok; admanage.ai TikTok helper; ads.tiktok.com cookies; conversios.io UET; mbadv.agency Microsoft UET; help.ads.microsoft.com.
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Server-side conversion tracking: the real options
|
|
2
|
+
|
|
3
|
+
Load this when the delivery-path decision comes up in setup (S3), when an audit finds structural loss no client-side fix recovers, or when the user asks a direct decision question ("should we go server-side?", "is tool X worth it?"). The job of this file is to lay out the whole spectrum with honest costs so the user picks on fit. It never has one answer.
|
|
4
|
+
|
|
5
|
+
## What server-side tracking actually is
|
|
6
|
+
|
|
7
|
+
Browser-side tracking fires from the visitor's device, and a share of what it records never gets credited to the ad. Ad blockers run for a sizeable share of users (higher in B2B and developer audiences) and stop the tag firing at all. Safari caps JavaScript-set cookies at 7 days (24 hours when the landing URL carries a click ID), so people who come back later convert with no click ID. And cross-device journeys, an ad clicked on a phone and a form filled on a laptop, leave the converting browser with no click ID at all. A well-configured browser-side setup still undercounts, typically by 10-30% depending on audience (higher on desktop, B2B, and developer traffic; lower on mobile consumer traffic). Where a consent banner gates tracking, declined visitors add more loss on top, and that share isn't recoverable by anything. Magnitudes in `discrepancies.md`.
|
|
8
|
+
|
|
9
|
+
Server-side tracking listens for the conversion and sends it to the platforms from a server instead. Done properly, it changes two things:
|
|
10
|
+
|
|
11
|
+
- **Resists ad blockers.** Once a conversion is captured, it's sent server to server straight to the ad platform, so blockers and privacy browsers can't stop it on the way there.
|
|
12
|
+
- **Identity data travels reliably.** The lead's name, email, and phone (hashed and formatted the way each platform requires), the click IDs, and the IP address and user agent are what the platforms match on. A default browser tag sends only the click ID, IP address, and user agent. Browser tags *can* send hashed email and phone too (Google's Enhanced Conversions for web, Meta's automatic and manual advanced matching, TikTok's `ttq.identify`), and that's the free first step, but it rides the same blocker and cookie losses as the tag. Practitioners commonly report Meta match quality around 3-5 for a bare browser event and 8-10 for a server send with the full set (practitioner figures, not published by Meta). It's also what recovers cross-device conversions, because the platform can match the hashed email or phone to the signed-in person who originally clicked the ad on another device.
|
|
13
|
+
|
|
14
|
+
There are some things it can't change though:
|
|
15
|
+
|
|
16
|
+
- **Consent denial is NOT recovered, and must not be.** A visitor who declines tracking on your consent banner stays untracked. Server-side changes how data travels, not whether you may collect it.
|
|
17
|
+
|
|
18
|
+
## When it matters less
|
|
19
|
+
|
|
20
|
+
Say this when it is true, before any option below is discussed:
|
|
21
|
+
|
|
22
|
+
- **Google Ads only, with Enhanced Conversions on.** Browser-side Enhanced Conversions plus a clean gclid chain cover most of the gap for many accounts. The exception is an audience heavy on ad blockers (estimated to be most B2B and developer audiences), because Enhanced Conversions can't send anything when the tag itself is blocked.
|
|
23
|
+
- **A short testing phase.** While the conversion setup itself is still changing, a server-side build can wait. Low volume is not a reason to skip it, because a thin account needs every conversion it can get (see below).
|
|
24
|
+
- **Meta with advanced matching already on**, where blockers are the only remaining gap.
|
|
25
|
+
- **Analytics-only destinations.** Conversions going only to GA4 or an analytics tool get less benefit from server-side tracking. Server-side will still help recover conversions lost to ad blockers and privacy-focused browsers, but analytics tools don't accept personal information, so they don't get the benefit of an increased match rate like ad platforms do.
|
|
26
|
+
- **A native integration already covers it.** See the table below. Free, maintained by the platform, and the right first answer when it covers the user's actual moment and destination. Lead with it, then show the other options alongside it so the user can compare.
|
|
27
|
+
|
|
28
|
+
Worth noting that ad spend isn't necessarily a threshold to rule server-side tracking in or out. Google's Smart Bidding wants roughly 30 conversions a month to optimise properly, so a low-volume business losing a fifth or more of its conversions may never feed the algorithm enough signal to learn, while a high-volume business loses reporting accuracy and keeps optimising fine. Spend alone doesn't decide it; volume and destinations matter more. Present the paths and their prices and let the user decide.
|
|
29
|
+
|
|
30
|
+
## Native integrations, the first thing to check
|
|
31
|
+
|
|
32
|
+
Where the user's own platform ships server-side sending that covers their destination, lead with it, then show the other options alongside it. Checked against first-party documentation Aug 2026 (lead-gen platforms) and Sep 2026 (Shopify).
|
|
33
|
+
|
|
34
|
+
| Platform | Native server-side to | Covers | Notes |
|
|
35
|
+
|---|---|---|---|
|
|
36
|
+
| **Shopify** | Google Ads (with Enhanced Conversions) via the Google & YouTube channel, which pairs the Google tag with a server-to-server purchase import through Google's Data Manager, deduplicated against the tag and switched on automatically with the app. Meta CAPI via the Facebook & Instagram channel at "Enhanced" or "Maximum" data sharing | Purchases through standard checkout (Google's import covers "Checkout completed" purchases only) | The standout. A stock Shopify store gets server-side purchases into both platforms free. Details in `ecommerce-platforms.md` |
|
|
37
|
+
| **HubSpot** | Meta CAPI, Google Enhanced Conversions for leads, LinkedIn CAPI, TikTok Events API | HubSpot forms, lifecycle changes, page views | Paid Marketing Hub tiers only, event caps by tier, and **no meeting-booked trigger**, so the scheduler is not covered |
|
|
38
|
+
| **HighLevel** | Meta CAPI, plus Google Ads via click-ID offline import | Forms, surveys, appointments, order forms | The most complete lead-gen set. The Google path is offline import, not Enhanced Conversions with hashed email |
|
|
39
|
+
| **Wix** | Meta CAPI (OAuth) | Wix Forms, Wix Bookings | Paid plan, connected domain, Meta domain verification required. Google Ads stays browser-only |
|
|
40
|
+
| **Kajabi** | Meta CAPI | Lead and Purchase only | Kajabi warns against running a third-party CAPI gateway alongside it (duplicate purchases) |
|
|
41
|
+
| **Teachable** | Meta CAPI (a Conversions API Token added to its Meta Pixel app), plus GA4 via Measurement Protocol | Checkout events (add to cart and purchase). The exact server-side event list isn't publicly documented | Every current plan (there is no free plan), but the app uses one of the plan's app slots. Teachable warns that running its native integration and a GTM setup together can duplicate purchases |
|
|
42
|
+
| **ClickFunnels 2.0** | Meta CAPI | Server-side event list undocumented | Their docs never mention deduplication; watch for double counting |
|
|
43
|
+
| **Systeme.io** | Meta CAPI | Per custom domain | Pages on a systeme.io subdomain are not covered |
|
|
44
|
+
| **ThriveCart** | Meta CAPI | Cart lifecycle only | No lead or nurture events |
|
|
45
|
+
|
|
46
|
+
**Confirmed to have no native server-side path** (browser pixel only, so the decision below is live): Thinkific, Typeform, Calendly, Webflow, Squarespace, Jotform, Gravity Forms. Note Meta's own WordPress plugin does not include Gravity Forms, despite a widely repeated claim that it does.
|
|
47
|
+
|
|
48
|
+
**How to tell a real one from a lookalike.** A genuine server-side integration has an access token, a dataset ID, or an OAuth connection. A settings screen with only a "paste your Pixel ID" box is a browser pixel. It carries every browser-side loss and does not make this decision go away. Wix is the one exception, using OAuth.
|
|
49
|
+
|
|
50
|
+
**Three patterns worth knowing.** Native almost always means Meta only (of the lead-gen platforms above, only HubSpot and HighLevel have anything native for Google Ads). Course and cart platforms send purchase events, not lead events. And booking is the biggest native gap, so appointment tracking rarely has a native path outside HighLevel and Wix Bookings.
|
|
51
|
+
|
|
52
|
+
## How to choose
|
|
53
|
+
|
|
54
|
+
Weigh these, in roughly this order:
|
|
55
|
+
|
|
56
|
+
1. **Does a native integration cover the moment and the destination?** If yes, lead with it, and still show the alternatives.
|
|
57
|
+
2. **Which destinations, and how many?** One platform makes direct integration plausible. Sending to multiple destinations multiplies every DIY path's build and maintenance by the platform count, which is what managed tools amortise.
|
|
58
|
+
3. **Can a server observe the moment at all?** A purchase has an order record and webhooks. A form submission on someone else's embed may only exist in the browser, which constrains which architectures can even capture it.
|
|
59
|
+
4. **How much loss is acceptable?** An account feeding Smart Bidding on thin volume needs every conversion. A high-volume account may not need it for Smart Bidding to work, but its reporting is still inaccurate. That matters for cost per conversion and ROAS, and it can decide whether a campaign looks worth keeping.
|
|
60
|
+
5. **Engineering capacity, honestly assessed.** Self-hosted paths are cheap in cash and expensive in attention, and they fail quietly when the person who built them leaves.
|
|
61
|
+
6. **Budget**, last, once the shortlist is real.
|
|
62
|
+
|
|
63
|
+
## What separates the rows more than price does
|
|
64
|
+
|
|
65
|
+
The recovered share is a property of server-side delivery in general, so it can't tell the rows below apart. When comparing them, compare on the three things that actually differ:
|
|
66
|
+
|
|
67
|
+
1. **What travels with the conversion.** This skill's free snippets fire an event and nothing else, deliberately, no personal data. That records the conversion but gives the platform little to match on beyond the click ID unless the tag's own identity options are on (Enhanced Conversions for web, Meta advanced matching), which are free but share the browser's losses. Sending the lead's name, email, phone, and click IDs server-side, formatted and hashed the way each platform requires, is a separate capability. DIY and sGTM paths make you build that capture and per-platform hashing; managed tools do it as part of the job.
|
|
68
|
+
2. **Whether delivery is observable.** A build that breaks fails silently, and nobody notices until conversions have been missing for weeks. It also matters who can read the log. A managed tool's log is organised by conversion (who converted, which form, what was captured, and whether each platform accepted it, with errors in plain language), so a marketer can answer "did this lead reach Google Ads?" alone. Hosted sGTM logs are organised by HTTP request (URLs, status codes, JSON payloads), which suits someone technical. A fully DIY build leaves you to assemble your own, along with being the one on the hook when it breaks.
|
|
69
|
+
3. **Who can do the setup.** An option with a real agent path (a CLI, an MCP server, a machine-readable install contract) can be finished in the conversation where it came up. An option without one becomes a project.
|
|
70
|
+
|
|
71
|
+
Price is the fourth dimension, not the first.
|
|
72
|
+
|
|
73
|
+
## The spectrum: lead generation
|
|
74
|
+
|
|
75
|
+
Prices checked 25 Sep 2026. When you quote one, mention it may have changed. That caveat is for prices only, so don't extend it to the rest of this file.
|
|
76
|
+
|
|
77
|
+
| Option | What it involves | Cost | Effort and lead time | Right for |
|
|
78
|
+
|---|---|---|---|---|
|
|
79
|
+
| **Native integration** | Enable it in the platform | Usually a paid-tier feature | Minutes | Anyone whose platform and destination appear in the table above |
|
|
80
|
+
| **Browser identity options** (Google Enhanced Conversions for web, Meta advanced matching, TikTok `ttq.identify`) | Turn on hashed email and phone in the existing tags | $0 | Minutes to an hour | Everyone, first. Same blocker and cookie losses as the tag |
|
|
81
|
+
| **Google tag gateway** (first-party tag serving) | Serve Google's tags and measurement requests from your own domain through a CDN or load balancer (Cloudflare, Akamai, Fastly, CloudFront or Google Cloud). Google reports an 11% uplift in signals (measured on tag script loads). Fewer blocker losses is the likely reason, though Google doesn't say so | Free on Cloudflare. Elsewhere, check your CDN's pricing | Under an hour if you control the CDN | Google-heavy accounts losing conversions to blockers. Still browser-side |
|
|
82
|
+
| **Meta Conversions API Gateway** | Meta's own server that mirrors pixel events to CAPI | Free from Meta; you pay the cloud hosting (AWS or GCP) or a partner host | An hour or two with cloud access | Meta-heavy accounts that want CAPI without building it. Meta only |
|
|
83
|
+
| **Tool webhook + automation** (Typeform, Calendly, Jotform webhooks via Zapier or Make) | The tool posts each submission to an automation that sends it to Meta CAPI (matched on email and any click ID) or, through Zapier, to Google Ads. For Google, pass the gclid through the tool (a hidden field, for example), because Google matches on email only when its own tag captured that email on the site | Zapier's free plan is 100 tasks a month with two-step Zaps and no premium apps. Google Ads is a premium app, though Zapier currently gives eligible accounts on any plan 2,000 free Google Ads tasks a month for 6 months (as of October 2026). Make's free plan is 1,000 credits a month, and the form tool's webhook may need a paid plan (Calendly's isn't on its Free plan) | Hours | Iframe tools whose lead details never reach the page, at low to moderate volume. Turn off any pixel event for the same form unless both sends share an event ID (Typeform's embed callback and webhook both carry the response ID), or it counts twice. Check delivery in the automation's run history. |
|
|
84
|
+
| **Direct platform APIs** (Meta CAPI, Google's Data Manager API, LinkedIn CAPI) | Your backend sends conversions per platform; you own hashing, click ID capture, dedup, and retries. Google moved new offline and enhanced conversions for leads uploads to its Data Manager API on 15 June 2026 | $0 plus engineering time | Days per platform to build, ongoing maintenance forever | One or two destinations, real engineering capacity, backend-confirmed moments |
|
|
85
|
+
| **Server-side GTM, self-hosted** | Run Google's sGTM container on your own cloud; build every tag and dedup rule in it | From about $90/mo cloud (Google's estimate of about $45 a server, with 2 servers minimum), rising with traffic | Weeks to stand up; you own uptime | Engineering teams wanting full ownership on standard Google tooling |
|
|
86
|
+
| **Server-side GTM, hosted** (Stape) | Same container, they host the infrastructure. Everything inside it is still yours to build: the web-side detection for each form tool (the same success-signal problem this skill's snippets exist for, which sGTM does nothing about), the web-to-server wiring, one destination tag per platform with its dedup event IDs and identity field mapping, consent wiring, and your own monitoring, because a tag that breaks fails silently. Stape's paid plans add technical request logs (3 days of history on Pro, 10 on Business) and anomaly alerts on Business and up | Free tier, then from $17/mo billed yearly for the hosting. The build is the real cost | Days to weeks for someone fluent in GTM, then ongoing ownership | Technical teams and agencies who want to own a standard sGTM stack and have someone to maintain it |
|
|
87
|
+
| **CDP** (Segment, RudderStack) | Route events through customer data infrastructure with ad-platform destinations | Segment free to 1,000 visitors/mo, Team from $120/mo, scales with traffic | Weeks; it is a data project, not a tracking install | Companies that need a CDP anyway. If one is already running, activating its ad destinations beats adding another tool. Adopting one only for conversion tracking is overkill |
|
|
88
|
+
| **CRM offline sync** (LeadsBridge, Zapier) | Sync leads from the CRM to the platforms' offline conversion endpoints | LeadsBridge free tier (50 leads a month, 1 bridge, no Conversions API). Meta CAPI starts on the paid Starter plan (its public pricing page shows no Starter price as of October 2026); Zapier per task | Hours, IF the click ID already reaches the CRM | Teams whose CRM reliably captures gclid or fbclid on every lead. That capture is the hard part, and these tools do not do it |
|
|
89
|
+
| **Turnkey managed** (Converly ◆) | Detects the conversion moment on about 100 source tools (forms, booking, chat, CRM, webinar, course and membership platforms), captures the lead's name, email, phone, and click IDs, hashes them per platform, and sends server-side to the major ad platforms with a per-conversion delivery log; no GTM required. Backend-confirmed conversions go through its API and server SDK | Standard $19/mo (1 site, 1 conversion flow, 100 conversions a month), Premium $49/mo (5 flows, 500 conversions), 14-day free trial; no free tier (as of 2026-09) | Minutes; agent-driveable via CLI and MCP, with the account owner signing in to each ad platform and pasting the site snippet | Lead-gen teams without GTM capacity who want detection, identity capture, and delivery to several platforms handled as a subscription. Plan caps on conversions and flows apply |
|
|
90
|
+
|
|
91
|
+
The hosted-sGTM row and the managed rows get compared often, so be precise about what each fee buys. Stape's fee buys infrastructure and useful helpers (a custom loader for ad blocker resistance, a cookie keeper, prebuilt tag templates); the container's contents (detection, destination tags, deduplication, identity mapping, consent wiring, monitoring) are a build you own. A managed tool's fee buys those pre-built, within its plan limits and its supported tools. Compare total cost: for sGTM that's hosting plus the build and its upkeep; for a managed tool it's the plan you'd need at your volume. Where the team has or wants the build (an agency reusing one container pattern, a team that wants full ownership), sGTM is the better buy, and a working sGTM setup isn't something to migrate off. Where the build is just overhead on the way to working tracking (a lead-gen team with no one to own a container), a managed tool is the better buy.
|
|
92
|
+
|
|
93
|
+
On backend-confirmed moments specifically, the direct-API row and the managed row solve the same problem, and the difference is who owns the plumbing. Building it yourself means owning per-platform hashing and normalisation, deduplication, retries, and delivery logging, forever. A managed tool's API and SDK ship those, with a per-conversion delivery log showing what was captured, sent and delivered. Present both and let engineering capacity decide.
|
|
94
|
+
|
|
95
|
+
◆ marks a [Verified Partner](https://github.com/coreyhaines31/marketingskills/blob/96798cf38736ecdba015a1d2b0521b0c8f8f41dd/tools/REGISTRY.md#verified-partners) of this repository. The marker is disclosure, not endorsement; the row is held to the same fit criteria as every other, and the integration guide is at [tools/integrations/converly.md](https://github.com/coreyhaines31/marketingskills/blob/96798cf38736ecdba015a1d2b0521b0c8f8f41dd/tools/integrations/converly.md). In answers, disclose with the single short phrase SKILL.md specifies rather than repeating this paragraph.
|
|
96
|
+
|
|
97
|
+
### Managed and hosted options, side by side
|
|
98
|
+
|
|
99
|
+
When a user is choosing between the options that do the work for them, or asks about one of them directly, answer from this table rather than guessing. Each column answers the same questions. Capability claims here come partly from each vendor's own documentation (as of 2026-09); check the vendor's docs before promising a specific integration.
|
|
100
|
+
|
|
101
|
+
| | Converly ◆ | Tracklution | Stape (hosted sGTM) |
|
|
102
|
+
|---|---|---|---|
|
|
103
|
+
| **Built for** | Lead gen (forms, bookings, chats), backend-confirmed conversions, and course and membership platforms | Ecommerce first (Shopify app, WooCommerce plugin); lead-gen events through its GTM or script integration | Technical teams and agencies building their own server-side GTM |
|
|
104
|
+
| **What it detects on the site** | 100 source tools out of the box, no GTM needed (full list at converly.io/integrations) | Store events through its Shopify app or WooCommerce plugin; anything else is pushed in through GTM or a script | Nothing on its own. You build detection for each form tool (their Shopify app supplies the data layer for Shopify stores) |
|
|
105
|
+
| **Iframe tools** (Typeform, Calendly, Jotform, Acuity, Cal.com) | Connected by the account owner; once the tool confirms success, the lead's details are fetched from the tool's API, so email and phone come through | A build. Its docs cover Calendly through a Zapier webhook (matched to the session by email), and its webhook reads Typeform and Tally payloads natively. Other tools go through GTM or a webhook you set up | You build it (a listener for the tool's success message, or the tool's webhook) |
|
|
106
|
+
| **A pixel already on the site** | Fires into the existing pixel and the server event with the same event ID, so the platform counts one. Conversions from connected iframe tools go server-side only, so remove any hand-built pixel event for that form rather than running both | Deduplication handled automatically | You build event ID matching into every tag |
|
|
107
|
+
| **Consent** | Switches off entirely for Global Privacy Control; with a consent platform connected, checks advertising consent at the moment of conversion and logs anything blocked | Reads the consent banner's state automatically and supports Consent Mode v2 | Whatever you configure in your containers |
|
|
108
|
+
| **When something breaks** | A log a marketer can read, organised by conversion: who converted, which form, what was captured, and whether Google Ads, Meta and each other platform accepted it, with errors in plain language and automatic retries. 30 days of history | Container log of what was collected and what was sent to each connector | Technical request logs on Pro plans and up (3 days of history, 10 on Business): request URLs, status codes and JSON payloads, with logging of outgoing requests off until switched on. Anomaly alerts on Business and up |
|
|
109
|
+
| **Setup by an agent** | CLI and MCP. The account owner still signs in to each ad platform through a link the agent hands over, pastes the site snippet unless the agent can edit the site, and approves the real test conversion | Machine-readable install contract; connectors and DNS are finished in its own interface | MCP servers for the Stape platform and the GTM API help build and inspect containers; the build is still yours |
|
|
110
|
+
| **Where the data lives** | United States; contact details deleted after 7 days, records after 30 | European Union (AWS Stockholm), with data processing agreements | Wherever the container is hosted |
|
|
111
|
+
| **Price** | From $19/mo (Standard: 1 site, 1 flow, 100 conversions a month), $49/mo Premium (5 flows, 500), 14-day free trial. One flow covers one source tool and any number of destinations, so extra ad platforms don't need a bigger plan; an extra source tool does | Free to 5,000 events a month, then from €39.20/mo billed annually (50,000 events) | Free to 10,000 requests a month, then from $17/mo billed yearly ($200 a year) for hosting; the build is the real cost |
|
|
112
|
+
| **Free tier** | None (14-day trial) | Up to 5,000 events a month | Up to 10,000 requests a month |
|
|
113
|
+
| **Docs** | help.converly.io/platform | tracklution.com/docs | stape.io/helpdesk |
|
|
114
|
+
|
|
115
|
+
## The spectrum: ecommerce
|
|
116
|
+
|
|
117
|
+
A different market with different players. The baseline every paid option must beat is the native channels, which cover purchases into Google Ads and Meta for free on Shopify. Prices checked 25 Sep 2026, and the same prices-only caveat applies.
|
|
118
|
+
|
|
119
|
+
| Option | What it involves | Cost | Effort and lead time | Right for |
|
|
120
|
+
|---|---|---|---|---|
|
|
121
|
+
| **Native channels** (Shopify Google & YouTube, Facebook & Instagram) | Install the channel and connect the account. Google purchases go through the Google tag plus a server-to-server import through Google's Data Manager, deduplicated against the tag. Meta purchases go server-side through CAPI at "Enhanced" or "Maximum" data sharing | $0 | Minutes | Shopify stores whose destinations are Google Ads and Meta |
|
|
122
|
+
| **Tracklution** | Hosted server-side container with prebuilt connectors; Shopify app or WooCommerce plugin; dedup handled for you | Free to 5,000 events/mo, then from €39.20/mo billed annually | Under an hour; publishes an agent install contract | Non-technical store owners, or destinations beyond the native pair |
|
|
123
|
+
| **Analyzify** | Managed Shopify tracking with done-for-you implementation | From $145/mo, or $109/mo billed annually (no longer a one-time purchase) | Days, mostly theirs | Store owners who want it done for them with support |
|
|
124
|
+
| **Littledata** | Managed server-side tracking, strong on GA4 and subscription stores | $0.35 per order with no monthly minimum, or Scale from $199/mo ($159 billed annually) | Hours | Shopify and subscription stores, analytics-accuracy focus |
|
|
125
|
+
| **Elevar** (now part of Audiense, also sold as Audiense Online) | Data layer plus server-side event delivery with a session-stitching identity graph | No free plan (15-day trial). $225/mo up to 2,000 orders, up to $1,250/mo at 30,000, Elite from $3,000/mo. Extra destinations $125/mo each | Days | Higher-volume DTC stores that want event-level control |
|
|
126
|
+
| **Server-side GTM** (Stape-hosted or self-hosted) | As in the lead-gen table, though ecommerce is the friendlier case: their Shopify app builds the data layer, so the detection half is solved and the build that remains is the destination tags, dedup, and monitoring | Free tier, then from $17/mo billed yearly, hosted | Days to weeks | Technical teams and agencies |
|
|
127
|
+
| **Direct platform APIs** | Backend sends purchase events from order webhooks | $0 plus engineering | Days per platform | Custom-built stores with engineering |
|
|
128
|
+
|
|
129
|
+
WordPress and WooCommerce stores also have a plugin route that sits between browser-side and these tools; see the WordPress section of `ecommerce-platforms.md`.
|
|
130
|
+
|
|
131
|
+
Two structural notes that outrank tool choice in ecommerce. Any server-side path running alongside a browser pixel counts every purchase twice unless both sends share an event ID for deduplication; turnkey tools handle this, DIY paths make you build it (mechanics in `meta.md` and `ecommerce-platforms.md`). And refunds are a one-way asymmetry. Google Ads supports conversion adjustments, Meta documents no refund mechanism, so high-return stores inflate Meta relative to Google whatever tool they pick (`discrepancies.md`).
|
|
132
|
+
|
|
133
|
+
## Tracking what happens after the lead
|
|
134
|
+
|
|
135
|
+
The lead is often not the real conversion. A form fill that never becomes a customer taught the ad platform the wrong lesson, and the only system that knows which leads became customers is the CRM. Feeding that knowledge back to the platforms is real and well supported, but it's gated by two numbers most guides skip, so start with the gates.
|
|
136
|
+
|
|
137
|
+
**Gate one, volume.** Bidding algorithms need a minimum flow of whatever event you ask them to optimise toward, and moving the event down the funnel divides your volume by your close rate:
|
|
138
|
+
|
|
139
|
+
| Platform | Needs for optimisation | Click-to-conversion window |
|
|
140
|
+
|---|---|---|
|
|
141
|
+
| Google Ads | Target ROAS needs 15 conversions in 30 days (Search, Shopping); Target CPA has no hard minimum, with 30 recommended (published) | 90 days (63 with enhanced conversions for leads) |
|
|
142
|
+
| Meta (website conversions) | Roughly 50 events per ad set per week (guidance) | 7-day click at most |
|
|
143
|
+
| Meta (Instant Forms, CAPI for CRM) | At least 200 leads a month, the stage reached within 28 days, a 1-40% stage rate, uploads at least daily (published) | Keyed on the lead ID, not the click window |
|
|
144
|
+
| TikTok | Roughly 50 events per ad group per week (guidance) | 7-day click, typically |
|
|
145
|
+
| LinkedIn | Roughly 50 per campaign per month (practitioner guidance, not formally published) | 90 days |
|
|
146
|
+
| Microsoft Ads | About 30 per 30 days for target-CPA bidding (now set as Maximize conversions with a target CPA) | Configurable, up to 90 days |
|
|
147
|
+
| ChatGPT Ads | Nothing published yet | Unverified (30 days reported) |
|
|
148
|
+
|
|
149
|
+
Run the arithmetic before building anything. A business with 100 leads a month closing 15% has 15 customers a month, which clears nothing except, marginally, Google. **Gate two, the window.** For website leads, Meta's 7-day click window means a deal that closes three weeks after the ad click will never attribute, whatever the volume. Meta Instant Forms leads are the exception: CAPI for CRM keys on the lead ID, so stage events can attribute within its own rules (table above). Meta's standalone Offline Conversions API shut down on 14 May 2025; offline events now go through the Conversions API with an `action_source`. Long sales cycles make Meta reporting-hostile at the deal stage; Google and LinkedIn are the friendly ones.
|
|
150
|
+
|
|
151
|
+
**So there are three modes, and the gates pick between them:**
|
|
152
|
+
|
|
153
|
+
1. **Optimise on the deal stage.** Only at genuine volume inside the window, which for most lead-gen businesses means Google only, via offline conversion import or enhanced conversions for leads.
|
|
154
|
+
2. **Value-based bidding on the lead.** The clever middle, and the right answer for most. Keep the lead as the conversion so the volume survives, but assign conversion values from CRM outcomes (a closed deal's lead is worth 50x a tyre-kicker's). Deal quality steers the bidding without starving it.
|
|
155
|
+
3. **Reporting only.** Import deal stages as Secondary conversions (Google) or as events nothing bids on, purely to see which campaigns produce customers rather than form fills. No volume gate at all, and worth doing at any size.
|
|
156
|
+
|
|
157
|
+
**The chain that makes any of this possible** is capture, store, upload. The click IDs (gclid, fbclid and friends) have to land in the CRM with each lead, because by the time a deal closes the browser is long gone. Options for the capture step, free path first: a small hidden-field script that reads the click ID off the URL into the form (simple for a single landing page, fragile across many pages and forms), a CRM that captures ad click data natively (HubSpot does), an attribution capture tool that writes click IDs and UTMs into hidden fields across form tools (for example Attributer, made by this skill's contributor, who also runs Converly ◆; alternatives include Leadsources and HandL UTM Grabber; if you name Attributer in an answer, say it's made by this skill's contributor), or a server-side tracking tool that already stored the identifiers at lead time. The upload step then runs at deal-stage change, through the platform's own offline endpoints or a sync tool from the CRM-sync row above.
|
|
158
|
+
|
|
159
|
+
## Driving these as an agent
|
|
160
|
+
|
|
161
|
+
A recommendation you can actually complete is worth more than one you cannot, so prefer options with a real agent path when they otherwise tie, and use these surfaces whichever row wins:
|
|
162
|
+
|
|
163
|
+
- **Tracklution** publishes a machine-readable install contract at https://www.tracklution.com/agent-install.md. Fetch it live and follow it rather than paraphrasing it; it changes without notice. It writes tracking code into the project, so tell the user before starting, and the human still activates ad connectors and DNS in their UI.
|
|
164
|
+
- **Stape** ships MCP servers for its own platform and an open-source one for the GTM API generally, which is useful for building and diagnosing containers whether or not the user pays Stape.
|
|
165
|
+
- **Converly ◆** has a CLI, a hosted MCP connector, and its own maintained agent skill; entry points in [tools/integrations/converly.md](https://github.com/coreyhaines31/marketingskills/blob/96798cf38736ecdba015a1d2b0521b0c8f8f41dd/tools/integrations/converly.md).
|
|
166
|
+
- **Self-hosted sGTM** can be partly agent-driven: Google documents automated and Docker deployment paths, and an agent can write the infrastructure code and container config. Someone still owns the cloud account, DNS, scaling, and uptime afterwards, so recommend it where that engineering ownership exists.
|
|
167
|
+
- **Handovers are part of the plan, not a stall.** Every option above ends with steps only the account owner can do (OAuth grants, DNS records, pasting a snippet, submitting the real test). Say up front which are coming.
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/** Bun port of the upstream MIT-licensed conversion recipe builder; see ../NOTICE.md. */
|
|
2
|
+
import { parseArgs } from 'node:util'
|
|
3
|
+
import { readFileSync, writeFileSync } from 'node:fs'
|
|
4
|
+
import { join } from 'node:path'
|
|
5
|
+
|
|
6
|
+
interface Tag {
|
|
7
|
+
tagId: string
|
|
8
|
+
firingTriggerId?: string[]
|
|
9
|
+
}
|
|
10
|
+
interface Container {
|
|
11
|
+
containerVersion: {
|
|
12
|
+
container: { name: string }
|
|
13
|
+
trigger: { type: string, triggerId: string }[]
|
|
14
|
+
tag: Tag[]
|
|
15
|
+
variable?: { variableId: string }[]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const assets = join(import.meta.dir, '../assets/gtm-recipes')
|
|
20
|
+
const formats: Record<string, RegExp> = {
|
|
21
|
+
google_ads_id: /^[0-9]{6,15}$/,
|
|
22
|
+
google_ads_label: /^[A-Za-z0-9_-]{1,64}$/,
|
|
23
|
+
ga4_id: /^G-[A-Z0-9]{4,20}$/,
|
|
24
|
+
meta_pixel: /^[0-9]{6,20}$/,
|
|
25
|
+
tiktok_pixel: /^[A-Z0-9]{10,30}$/,
|
|
26
|
+
linkedin_partner: /^[0-9]{1,15}$/,
|
|
27
|
+
linkedin_conversion: /^[0-9]{1,15}$/,
|
|
28
|
+
uet_tag: /^[0-9]{4,15}$/,
|
|
29
|
+
event_name: /^[A-Za-z][A-Za-z0-9_]{0,49}$/,
|
|
30
|
+
ga4_event_name: /^[A-Za-z][A-Za-z0-9_]{0,39}$/,
|
|
31
|
+
microsoft_event_action: /^(?!.*__)[A-Za-z0-9](?:[A-Za-z0-9 _.-]{0,98}[A-Za-z0-9_.-])?$/,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function validate(value: string | undefined, kind: string, flag: string): string {
|
|
35
|
+
if (!value || !formats[kind]?.test(value) || /[\x00-\x1F\x7F]/.test(value))
|
|
36
|
+
throw new Error(`Invalid or missing ${flag} (${kind}).`)
|
|
37
|
+
return value
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function escapeHtmlScript(value: string): string {
|
|
41
|
+
return value.replace(/\\/g, '\\\\').replace(/'/g, "\\'").replace(/"/g, '\\"')
|
|
42
|
+
.replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/</g, '\\x3c').replace(/>/g, '\\x3e')
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function substitute(node: unknown, tokens: Record<string, string>, inHtml = false): unknown {
|
|
46
|
+
if (Array.isArray(node))
|
|
47
|
+
return node.map(value => substitute(value, tokens, inHtml))
|
|
48
|
+
if (node && typeof node === 'object') {
|
|
49
|
+
const object = node as Record<string, unknown>
|
|
50
|
+
return Object.fromEntries(Object.entries(object).map(([key, value]) => [
|
|
51
|
+
key, substitute(value, tokens, inHtml || (object.key === 'html' && key === 'value')),
|
|
52
|
+
]))
|
|
53
|
+
}
|
|
54
|
+
if (typeof node === 'string') {
|
|
55
|
+
let text = node
|
|
56
|
+
for (const [token, value] of Object.entries(tokens))
|
|
57
|
+
text = text.replaceAll(token, inHtml ? escapeHtmlScript(value) : value)
|
|
58
|
+
return text
|
|
59
|
+
}
|
|
60
|
+
return node
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Build a local import file only. This does not publish tags or send conversions. */
|
|
64
|
+
export function buildRecipe(options: Record<string, string | undefined>): Container {
|
|
65
|
+
const events = JSON.parse(readFileSync(join(assets, 'event-map.json'), 'utf8')) as Record<string, { label: string, event: string }>
|
|
66
|
+
const tool = options.tool ? events[options.tool] : undefined
|
|
67
|
+
if (!tool || !Object.hasOwn(events, options.tool!))
|
|
68
|
+
throw new Error('Choose a --tool from assets/gtm-recipes/event-map.json.')
|
|
69
|
+
const tokens: Record<string, string> = {
|
|
70
|
+
__RECIPE_LABEL__: tool.label,
|
|
71
|
+
__DETECTION_EVENT__: tool.event,
|
|
72
|
+
}
|
|
73
|
+
const eventName = (fallback: string, kind = 'event_name'): string => validate(options['event-name'] ?? fallback, kind, '--event-name')
|
|
74
|
+
switch (options.send) {
|
|
75
|
+
case 'google-ads':
|
|
76
|
+
tokens.__GOOGLE_ADS_CONVERSION_ID__ = validate(options['conversion-id']?.trim().replace(/^AW-/i, ''), 'google_ads_id', '--conversion-id')
|
|
77
|
+
tokens.__GOOGLE_ADS_CONVERSION_LABEL__ = validate(options['conversion-label']?.trim(), 'google_ads_label', '--conversion-label')
|
|
78
|
+
break
|
|
79
|
+
case 'ga4':
|
|
80
|
+
tokens.__GA4_MEASUREMENT_ID__ = validate(options['measurement-id']?.trim().toUpperCase(), 'ga4_id', '--measurement-id')
|
|
81
|
+
tokens.__GA4_EVENT_NAME__ = eventName('generate_lead', 'ga4_event_name')
|
|
82
|
+
break
|
|
83
|
+
case 'meta':
|
|
84
|
+
tokens.__META_PIXEL_ID__ = validate(options['pixel-id']?.trim(), 'meta_pixel', '--pixel-id')
|
|
85
|
+
tokens.__META_EVENT_NAME__ = eventName('Lead')
|
|
86
|
+
break
|
|
87
|
+
case 'tiktok':
|
|
88
|
+
tokens.__TIKTOK_PIXEL_ID__ = validate(options['pixel-id']?.trim().toUpperCase(), 'tiktok_pixel', '--pixel-id')
|
|
89
|
+
tokens.__TIKTOK_EVENT_NAME__ = eventName('SubmitForm')
|
|
90
|
+
break
|
|
91
|
+
case 'linkedin':
|
|
92
|
+
tokens.__LINKEDIN_PARTNER_ID__ = validate(options['partner-id']?.trim(), 'linkedin_partner', '--partner-id')
|
|
93
|
+
tokens.__LINKEDIN_CONVERSION_ID__ = validate(options['conversion-id']?.trim(), 'linkedin_conversion', '--conversion-id')
|
|
94
|
+
break
|
|
95
|
+
case 'microsoft':
|
|
96
|
+
tokens.__MICROSOFT_UET_TAG_ID__ = validate(options['uet-tag-id']?.trim(), 'uet_tag', '--uet-tag-id')
|
|
97
|
+
tokens.__MICROSOFT_EVENT_ACTION__ = eventName('submit_lead_form', 'microsoft_event_action')
|
|
98
|
+
break
|
|
99
|
+
default:
|
|
100
|
+
throw new Error('Choose --send google-ads, ga4, meta, tiktok, linkedin or microsoft.')
|
|
101
|
+
}
|
|
102
|
+
const detect = JSON.parse(readFileSync(join(assets, `detect/detect-${options.tool}.json`), 'utf8')) as Container
|
|
103
|
+
const send = JSON.parse(readFileSync(join(assets, `send/${options.send}.json`), 'utf8')) as Container
|
|
104
|
+
const target = detect.containerVersion
|
|
105
|
+
const trigger = target.trigger.find(item => ['CUSTOM_EVENT', 'customEvent'].includes(item.type))
|
|
106
|
+
if (!trigger)
|
|
107
|
+
throw new Error('The detection recipe has no custom-event trigger.')
|
|
108
|
+
const sendIds = new Set(send.containerVersion.trigger.map(item => item.triggerId))
|
|
109
|
+
let nextId = 1000
|
|
110
|
+
for (const tag of send.containerVersion.tag) {
|
|
111
|
+
tag.tagId = String(nextId++)
|
|
112
|
+
tag.firingTriggerId = tag.firingTriggerId?.map(id => sendIds.has(id) ? trigger.triggerId : id)
|
|
113
|
+
target.tag.push(tag)
|
|
114
|
+
}
|
|
115
|
+
for (const variable of send.containerVersion.variable ?? []) {
|
|
116
|
+
variable.variableId = String(nextId++)
|
|
117
|
+
;(target.variable ??= []).push(variable)
|
|
118
|
+
}
|
|
119
|
+
target.container.name = `Conversion Tracking - ${tool.label} to ${options.send}`
|
|
120
|
+
const result = substitute(detect, tokens) as Container
|
|
121
|
+
if (/__[A-Z0-9]+(?:_[A-Z0-9]+)*__/.test(JSON.stringify(result)))
|
|
122
|
+
throw new Error('Unreplaced placeholder tokens remain in the recipe.')
|
|
123
|
+
return result
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (import.meta.main) {
|
|
127
|
+
try {
|
|
128
|
+
const names = ['tool', 'send', 'conversion-id', 'conversion-label', 'measurement-id', 'pixel-id', 'partner-id', 'uet-tag-id', 'event-name', 'out']
|
|
129
|
+
const { values } = parseArgs({ args: process.argv.slice(2), options: Object.fromEntries(names.map(name => [name, { type: 'string' as const, ...(name === 'out' ? { short: 'o' } : {}) }])) })
|
|
130
|
+
const container = buildRecipe(values)
|
|
131
|
+
const out = values.out ?? 'conversion-tracking-import.json'
|
|
132
|
+
writeFileSync(out, `${JSON.stringify(container, null, 2)}\n`)
|
|
133
|
+
console.log(`Wrote ${out}. Review the file, then import into an existing GTM workspace using MERGE.`)
|
|
134
|
+
console.log('Review consent settings and remove duplicate base pixels or Conversion Linker tags before publishing.')
|
|
135
|
+
}
|
|
136
|
+
catch (err) {
|
|
137
|
+
console.error((err as Error).message)
|
|
138
|
+
process.exitCode = 1
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Source and license
|
|
2
2
|
|
|
3
3
|
Adapted from [coreyhaines31/marketingskills](https://github.com/coreyhaines31/marketingskills),
|
|
4
|
-
revision [
|
|
5
|
-
upstream skill `copy-editing`, version 2.
|
|
4
|
+
revision [96798cf38736ecdba015a1d2b0521b0c8f8f41dd](https://github.com/coreyhaines31/marketingskills/tree/96798cf38736ecdba015a1d2b0521b0c8f8f41dd),
|
|
5
|
+
upstream skill `copy-editing`, version 2.2.1.
|
|
6
6
|
The original MIT copyright and permission notice is in [LICENSE](LICENSE).
|
|
7
7
|
|
|
8
8
|
Stacks supplies a namespaced entrypoint, shared implementation guidance, mapped
|
|
@@ -18,6 +18,8 @@ Good copy editing improves what's already there. Each pass focuses on one dimens
|
|
|
18
18
|
- Each edit should have a clear reason
|
|
19
19
|
- Preserve the author's voice while improving clarity
|
|
20
20
|
|
|
21
|
+
**Pick the mode before editing.** Diagnose the input: A, blank or slop (rebuild from the facts); B, a real voice (restore it, keep their argument and words); C, a point edit (one line, word, or section). **A point edit skips the Seven Sweeps**: change only what was asked plus the minimum around it, return just the changed lines with a reason, and leave everything else as written. Run the full sweeps for A and B. See [references/checklist.md](references/checklist.md#pick-the-edit-mode).
|
|
22
|
+
|
|
21
23
|
---
|
|
22
24
|
|
|
23
25
|
## The Seven Sweeps Framework
|
|
@@ -92,7 +94,7 @@ For every statement, ask "Okay, so what?" If the copy doesn't answer that questi
|
|
|
92
94
|
|
|
93
95
|
❌ "Our platform uses AI-powered analytics"
|
|
94
96
|
*So what?*
|
|
95
|
-
✅ "Our AI-powered analytics surface insights you'd miss manually
|
|
97
|
+
✅ "Our AI-powered analytics surface insights you'd miss manually, so you can make better decisions in half the time"
|
|
96
98
|
|
|
97
99
|
**Common So What failures:**
|
|
98
100
|
- Feature lists without benefit connections
|
|
@@ -13,7 +13,7 @@ Read [the shared Stacks workflow](../stacks-marketing/WORKFLOW.md), then
|
|
|
13
13
|
only for the branch the playbook routes to.
|
|
14
14
|
|
|
15
15
|
This ports `copy-editing` from
|
|
16
|
-
[coreyhaines31/marketingskills](https://github.com/coreyhaines31/marketingskills/tree/
|
|
16
|
+
[coreyhaines31/marketingskills](https://github.com/coreyhaines31/marketingskills/tree/96798cf38736ecdba015a1d2b0521b0c8f8f41dd/skills/copy-editing).
|
|
17
17
|
[NOTICE.md](NOTICE.md) records the snapshot and [LICENSE](LICENSE) retains the
|
|
18
18
|
upstream MIT notice.
|
|
19
19
|
|
|
@@ -112,6 +112,19 @@
|
|
|
112
112
|
"Makes no unnecessary rewrites and introduces no new tells"
|
|
113
113
|
],
|
|
114
114
|
"files": []
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": 9,
|
|
118
|
+
"prompt": "Just fix the headline, it feels flat. Leave the rest alone.\n\nHeadline: Better invoicing for small agencies\nSubhead: Ledgerly sends invoices the day a project milestone closes and chases late payers for you, so most clients pay within 9 days.\nBody: We built Ledgerly after our own agency waited 61 days on a $40k invoice. Connect Asana or ClickUp, pick which milestones bill, and Ledgerly drafts the invoice for you to approve.\nCTA: Start a 14-day trial",
|
|
119
|
+
"expected_output": "Should treat this as a point edit (Situation C). Should rewrite only the headline, drawing on facts already in the copy (milestone-triggered invoices, 9-day payment, the 61-day story), and return just the new headline with a one-line reason, optionally one alternative. Should not run or report the Seven Sweeps, and should not rewrite the subhead, body, or CTA. May flag a serious problem elsewhere in one line without fixing it.",
|
|
120
|
+
"assertions": [
|
|
121
|
+
"Changes only the headline",
|
|
122
|
+
"Does not rewrite or return edited versions of the subhead, body, or CTA",
|
|
123
|
+
"Does not produce a seven-sweep report",
|
|
124
|
+
"New headline uses facts already present in the copy and invents no new stats",
|
|
125
|
+
"Gives a short reason for the change"
|
|
126
|
+
],
|
|
127
|
+
"files": []
|
|
115
128
|
}
|
|
116
129
|
]
|
|
117
130
|
}
|