coreyhaines31/marketingskills / skills/conversion-tracking
conversion-tracking
VerifiedWhen the user wants to set up, audit, or fix conversion tracking to Google Ads, Meta, GA4, LinkedIn, and TikTok, or asks why conversions are missing or doubled: GTM, pixels, CAPI, Enhanced Conversions, offline imports. Fire on confirmed success, not the submit click; verify a test conversion arrives; diagnose before changing; offer free paths and disclose partner tools. For tracking plans, see analytics. For attribution, see attribution. For bidding, see ads.
assets/gtm-recipes/send/meta.json
View on GitHub{
"exportFormatVersion": 2,
"containerVersion": {
"path": "accounts/0/containers/0",
"accountId": "0",
"containerId": "0",
"containerVersionId": "0",
"container": {
"path": "accounts/0/containers/0",
"accountId": "0",
"containerId": "0",
"name": "Conversion Send - Meta Lead Conversion",
"publicId": "GTM-XXXXXXX",
"usageContext": [
"WEB"
],
"fingerprint": "0",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
},
"tag": [
{
"accountId": "0",
"containerId": "0",
"tagId": "101",
"name": "Meta Base Pixel",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script>\n(function () {\n /* Guard: never initialise a second pixel. Two fbq('init') calls on one page\n is a top cause of doubled Meta conversions. If a pixel already exists,\n delete this tag after import rather than relying on the guard alone. */\n if (window.fbq) { return; }\n !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;\n n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\n document,'script','https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '__META_PIXEL_ID__');\n fbq('track', 'PageView');\n})();\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"firingTriggerId": [
"2147479553"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NEEDED",
"consentType": {
"type": "LIST",
"list": [
{
"type": "TEMPLATE",
"value": "ad_storage"
}
]
}
}
},
{
"accountId": "0",
"containerId": "0",
"tagId": "102",
"name": "Meta Conversion - __RECIPE_LABEL__",
"type": "html",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script>\n(function () {\n if (typeof window.fbq !== 'function') { return; }\n /* eventID lets a server-side Conversions API copy of this same conversion\n deduplicate against the browser copy. Harmless if no CAPI is connected. */\n var eventId = 'ck-' + Date.now() + '-' + Math.random().toString(36).slice(2, 10);\n window.fbq('track', '__META_EVENT_NAME__', {}, { eventID: eventId });\n})();\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"firingTriggerId": [
"201"
],
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NEEDED",
"consentType": {
"type": "LIST",
"list": [
{
"type": "TEMPLATE",
"value": "ad_storage"
}
]
}
}
}
],
"trigger": [
{
"accountId": "0",
"containerId": "0",
"triggerId": "201",
"name": "CE - __RECIPE_LABEL__",
"type": "CUSTOM_EVENT",
"customEventFilter": [
{
"type": "EQUALS",
"parameter": [
{
"type": "TEMPLATE",
"key": "arg0",
"value": "{{_event}}"
},
{
"type": "TEMPLATE",
"key": "arg1",
"value": "__DETECTION_EVENT__"
}
]
}
],
"filter": []
}
],
"variable": [],
"fingerprint": "0"
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |