{"skills":[{"name":"Check Google Ads conversion counting","description":"Test whether repeated lead submissions and genuine repeat purchases are counted the way the business intended.","content":"# Check Google Ads conversion counting\n\nTest whether repeated lead submissions and genuine repeat purchases are counted the way the business intended.\n\n## When to use this skill\n\n- Google Ads reports more leads than the sales team received.\n- Someone suspects purchases are counted twice by a website tag and an Analytics import.\n- The business wants each conversion action's counting setting confirmed before relying on it for bidding.\n\n## When not to use it\n\n- Choosing an attribution model or judging campaign performance.\n- Changing the live account. The method recommends settings; the account owner makes the changes.\n- Cookie consent and tracking compliance. In the UK, check the ICO's guidance on cookies and similar technologies.\n\n## What you need\n\n- Export of conversion action IDs, sources, counting settings and primary or secondary status\n- Business definition of value per ad interaction and a sample of deduplicated events\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- For each conversion action, what is one valuable outcome: every purchase, or the first lead from each ad click?\n- Can you export the conversion actions with their counting option, source and primary or secondary status?\n- Do website purchase tags send a transaction ID, and is it the order number?\n- Are Google Analytics key events imported into the same Ads account?\n\n## Method\n\n1. List each conversion action with its source (website tag, Analytics import, offline import or call), its counting setting, and whether it is primary or secondary.\n2. For each action, establish whether each completed event brings independent value (Every, typical for sales) or whether the first event per ad interaction meets the goal (One, typical for leads). Confirm the business's definition rather than assuming it.\n3. Clean the sample. For website tags using transaction IDs, remove repeats of the same transaction ID within the same action before grouping by ad interaction; Google does not deduplicate across different actions. A repeated internal event ID alone does not prove Google received a deduplication key.\n4. Recompute counts per action under the configured setting and under the stated policy. Under One allow at most one per action and interaction; under Every count distinct accepted conversions. List settings that disagree even if the sample happens to contain no repeats.\n5. Check whether two actions measure the same business outcome, such as a website purchase tag and an imported Analytics purchase both used as primary goals. Report overlapping order IDs and the number of unique business outcomes separately from the per-action counts.\n6. Recommend specific changes to the account owner: counting option, which action should be primary and whether transaction IDs are needed. Say that a sample does not establish dashboard totals, which also depend on attribution, conversion windows and reporting delays.\n\n## Checks before you deliver\n\n- One conversion per interaction is different from one conversion for a customer across their lifetime.\n- A purchase and a lead associated with one click belong to separate action groups.\n- Reusing one transaction ID for different orders makes Google keep only the first, so real sales go uncounted.\n- Transaction IDs do not remove duplicate view-through conversions.\n- Using a website tag and an imported Analytics key event as primary goals for the same purchase counts it twice for bidding.\n\n## How to present the result\n\nLead with the actions whose counting does not match the business goal and what each would count under the intended setting. Then give a table per action: source, setting, intended policy, configured count, intended count and primary or secondary status. Add overlapping orders across actions with the unique order total, and finish with the setting changes to propose to the account owner.\n\n## Worked example\n\n**Request:** Check the counting choices against our stated goals.\n\n**Supplied material:**\n\n```text\nFORM configured Every; business wants first per click. BUY configured Every; each purchase has value. Events: FORM click C1 IDs F1,F2; FORM click C2 F3; BUY click C1 P1,P2. Import repeats BUY P2 on C1.\n```\n\n**Answer:** FORM counts three leads across two clicks. The business values the first lead per click, so changing FORM to One would count two. BUY already counts the two distinct purchases correctly. The repeated P2 record is the same purchase.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn configured_count and intended_count as objects keyed by action ID. Return review_actions as sorted action IDs whose setting conflicts with the stated objective. Interpret event IDs within their action. If the same purchase is measured by multiple actions, also return overlapping_orders mapping the order ID to the sorted action IDs and unique_orders for the sample. Keep per-action intended counts separate from that business total.\n\n## Sources\n\n- [Google Ads \u00b7 Conversion counting options](https:\/\/support.google.com\/google-ads\/answer\/3438531?hl=en): Google defines One and Every per conversion action after an ad interaction, recommends Every for sales because each sale adds value and One for leads where one lead per click is what matters, and allows a different setting for each action.\n- [Google Ads \u00b7 Prevent duplicate conversions with transaction IDs](https:\/\/support.google.com\/google-ads\/answer\/6386790?hl=en): For website tracking, Google treats a second conversion with the same transaction ID on the same conversion action as a duplicate. Reusing an ID can cause undercounting, and transaction IDs do not fix duplicate view-through conversions.\n- [Google Ads \u00b7 Import Analytics key events](https:\/\/support.google.com\/google-ads\/answer\/10632359?hl=en): When an Ads account already has goals, Google sets conversions imported from Analytics key events to secondary to avoid counting the same event twice for bidding. The skill checks for that overlap where both actions are primary.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-ad-conversion-counting\n","scope":"contextual","trigger_keywords":["Check Google Ads conversion counting","check-ad-conversion-counting","check ad conversion counting","Why does Google Ads report more leads than our sales team received?","Why does Google Ads report more leads than our sales team received","double-counted ad conversions","conversion counting","double-counting conversions"],"is_private":true,"is_active":true,"scripts":[{"name":"check-ad-conversion-counting-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"check-ad-conversion-counting-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: check-ad-conversion-counting\ndescription: \"Check whether Google Ads conversion actions count leads and purchases the way the business intends, covering One or Every counting, transaction ID deduplication and overlapping actions. Use when Google Ads conversions look double-counted, leads seem inflated or Analytics imports overlap.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/check-ad-conversion-counting\n---\n\n# Check Google Ads conversion counting\n\nTest whether repeated lead submissions and genuine repeat purchases are counted the way the business intended.\n\n## When to use this skill\n\n- Google Ads reports more leads than the sales team received.\n- Someone suspects purchases are counted twice by a website tag and an Analytics import.\n- The business wants each conversion action's counting setting confirmed before relying on it for bidding.\n\n## When not to use it\n\n- Choosing an attribution model or judging campaign performance.\n- Changing the live account. The method recommends settings; the account owner makes the changes.\n- Cookie consent and tracking compliance. In the UK, check the ICO's guidance on cookies and similar technologies.\n\n## What you need\n\n- Export of conversion action IDs, sources, counting settings and primary or secondary status\n- Business definition of value per ad interaction and a sample of deduplicated events\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- For each conversion action, what is one valuable outcome: every purchase, or the first lead from each ad click?\n- Can you export the conversion actions with their counting option, source and primary or secondary status?\n- Do website purchase tags send a transaction ID, and is it the order number?\n- Are Google Analytics key events imported into the same Ads account?\n\n## Method\n\n1. List each conversion action with its source (website tag, Analytics import, offline import or call), its counting setting, and whether it is primary or secondary.\n2. For each action, establish whether each completed event brings independent value (Every, typical for sales) or whether the first event per ad interaction meets the goal (One, typical for leads). Confirm the business's definition rather than assuming it.\n3. Clean the sample. For website tags using transaction IDs, remove repeats of the same transaction ID within the same action before grouping by ad interaction; Google does not deduplicate across different actions. A repeated internal event ID alone does not prove Google received a deduplication key.\n4. Recompute counts per action under the configured setting and under the stated policy. Under One allow at most one per action and interaction; under Every count distinct accepted conversions. List settings that disagree even if the sample happens to contain no repeats.\n5. Check whether two actions measure the same business outcome, such as a website purchase tag and an imported Analytics purchase both used as primary goals. Report overlapping order IDs and the number of unique business outcomes separately from the per-action counts.\n6. Recommend specific changes to the account owner: counting option, which action should be primary and whether transaction IDs are needed. Say that a sample does not establish dashboard totals, which also depend on attribution, conversion windows and reporting delays.\n\n## Checks before you deliver\n\n- One conversion per interaction is different from one conversion for a customer across their lifetime.\n- A purchase and a lead associated with one click belong to separate action groups.\n- Reusing one transaction ID for different orders makes Google keep only the first, so real sales go uncounted.\n- Transaction IDs do not remove duplicate view-through conversions.\n- Using a website tag and an imported Analytics key event as primary goals for the same purchase counts it twice for bidding.\n\n## How to present the result\n\nLead with the actions whose counting does not match the business goal and what each would count under the intended setting. Then give a table per action: source, setting, intended policy, configured count, intended count and primary or secondary status. Add overlapping orders across actions with the unique order total, and finish with the setting changes to propose to the account owner.\n\n## Worked example\n\n**Request:** Check the counting choices against our stated goals.\n\n**Supplied material:**\n\n```text\nFORM configured Every; business wants first per click. BUY configured Every; each purchase has value. Events: FORM click C1 IDs F1,F2; FORM click C2 F3; BUY click C1 P1,P2. Import repeats BUY P2 on C1.\n```\n\n**Answer:** FORM counts three leads across two clicks. The business values the first lead per click, so changing FORM to One would count two. BUY already counts the two distinct purchases correctly. The repeated P2 record is the same purchase.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn configured_count and intended_count as objects keyed by action ID. Return review_actions as sorted action IDs whose setting conflicts with the stated objective. Interpret event IDs within their action. If the same purchase is measured by multiple actions, also return overlapping_orders mapping the order ID to the sorted action IDs and unique_orders for the sample. Keep per-action intended counts separate from that business total.\n\n## Sources\n\n- [Google Ads \u00b7 Conversion counting options](https:\/\/support.google.com\/google-ads\/answer\/3438531?hl=en): Google defines One and Every per conversion action after an ad interaction, recommends Every for sales because each sale adds value and One for leads where one lead per click is what matters, and allows a different setting for each action.\n- [Google Ads \u00b7 Prevent duplicate conversions with transaction IDs](https:\/\/support.google.com\/google-ads\/answer\/6386790?hl=en): For website tracking, Google treats a second conversion with the same transaction ID on the same conversion action as a duplicate. Reusing an ID can cause undercounting, and transaction IDs do not fix duplicate view-through conversions.\n- [Google Ads \u00b7 Import Analytics key events](https:\/\/support.google.com\/google-ads\/answer\/10632359?hl=en): When an Ads account already has goals, Google sets conversions imported from Analytics key events to secondary to avoid counting the same event twice for bidding. The skill checks for that overlap where both actions are primary.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-ad-conversion-counting\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/check-ad-conversion-counting\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# One visitor sends two enquiries\n\nCheck the counting choices against our stated goals.\n\n## Supplied material\n\nFORM configured Every; business wants first per click. BUY configured Every; each purchase has value. Events: FORM click C1 IDs F1,F2; FORM click C2 F3; BUY click C1 P1,P2. Import repeats BUY P2 on C1.\n\n## Worked answer\n\nFORM counts three leads across two clicks. The business values the first lead per click, so changing FORM to One would count two. BUY already counts the two distinct purchases correctly. The repeated P2 record is the same purchase.\n\n## Reasoning\n\nDeduplicate P2 first, then apply the intended policy to each action separately.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Check the counting choices against our stated goals.\nReturn only the JSON specified in SKILL.md for this test.\n\nFORM configured Every; business wants first per click. BUY configured Every; each purchase has value. Events: FORM click C1 IDs F1,F2; FORM click C2 F3; BUY click C1 P1,P2. Import repeats BUY P2 on C1.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"configured_count\": {\n        \"FORM\": 3,\n        \"BUY\": 2\n    },\n    \"intended_count\": {\n        \"FORM\": 2,\n        \"BUY\": 2\n    },\n    \"review_actions\": [\n        \"FORM\"\n    ]\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"Deduplicate P2 first, then apply the intended policy to each action separately.\n"},{"path":"tests\/case-2\/request.txt","content":"Does this campaign configuration reflect our policy?\nReturn only the JSON specified in SKILL.md for this test.\n\nSALE configured One; business wants every distinct sale. CHAT configured One; business values first chat per interaction. SALE click C4 event Y1. CHAT click C4 event Z1; CHAT click C5 event Z2.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"configured_count\": {\n        \"SALE\": 1,\n        \"CHAT\": 2\n    },\n    \"intended_count\": {\n        \"SALE\": 1,\n        \"CHAT\": 2\n    },\n    \"review_actions\": [\n        \"SALE\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The present sample counts agree, but repeat purchases would be suppressed.\n"},{"path":"tests\/case-3\/request.txt","content":"Quantify action-level counts and distinct purchase orders before we rely on these goals.\nReturn only the JSON specified in SKILL.md for this test.\n\nBoth DIRECT and GAIMPORT primary purchase actions use Every and should count every unique purchase within the action. The same attributed click and order A-21 appear in both actions. DIRECT website tag sent A-21 three times with the same transaction ID. One GAIMPORT conversion accepted. These are separate actions, not a merged multi-source action.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"configured_count\": {\n        \"DIRECT\": 1,\n        \"GAIMPORT\": 1\n    },\n    \"intended_count\": {\n        \"DIRECT\": 1,\n        \"GAIMPORT\": 1\n    },\n    \"review_actions\": [],\n    \"overlapping_orders\": {\n        \"A-21\": [\n            \"DIRECT\",\n            \"GAIMPORT\"\n        ]\n    },\n    \"unique_orders\": 1\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"The duplicate DIRECT transmissions use the same transaction ID and action. The second action can also measure A-21. One business order underlies both records.\n"}],"is_active":true,"is_approved":false}]}]}