Skip to content
Google Ads

Magento 2 server-side tracking for Google Ads (Adobe Commerce): agent skill

The set-up-magento-google-ads-conversion-tracking agent skill: server-side Google Ads conversion tracking for Magento 2 (Adobe Commerce) and Magento 1.9: send every purchase from your store view to Google Ads from the server, with the script served from your own domain.

set-up-magento-google-ads-conversion-tracking sets up server-side tracking for Magento in Google Ads with Product Metrics. Server-side Google Ads conversion tracking for Magento 2 (Adobe Commerce) and Magento 1.9: send every purchase from your store view to Google Ads from the server, with the script served from your own domain. It follows the guide Magento 2 server-side tracking for Google Ads (Adobe Commerce).

The skill

Read the full file on GitHub (with its references) or at /.well-known/agent-skills/set-up-magento-google-ads-conversion-tracking/SKILL.md, or install it with:

pnpm dlx skills add product-metrics/skills \
  --skill set-up-magento-google-ads-conversion-tracking

In Claude Code, the product-metrics plugin adds every Product Metrics skill with the MCP server: /plugin install product-metrics --marketplace product-metrics/skills.

When an agent uses it

  • “Set up server-side Google Ads conversion tracking for my Magento store.”
  • “Google Ads is missing purchases since iOS and ad blockers. Can we fix that?”
  • “Send every paid order to Google Ads with its profit.”

What it does

  1. Reads where your setup stands and skips every step that is already done.
  2. Connects your Magento store and Google Ads if they aren’t connected yet.
  3. Turns on server-side tracking step by step: consent banner, test event and test order.
  4. Checks the test order arrived, then tells you what is live and what is left for you.

The agent works through the productmetrics CLI or the MCP server. Steps in your store admin or ad platform stay with you: the agent gives you the exact labels and waits until you are done. All conversion actions it creates are secondary, as Product Metrics creates them; choosing which one a campaign bids on is your step.

What’s in it

The skill is a short SKILL.md with the workflow and the rules for working with Product Metrics (CLI for agents has the long form), plus reference files the agent reads only when it needs them. Each reference is built from a page in these docs:

ReferenceBuilt from
references/server-side-tracking.mdMagento 2 server-side tracking for Google Ads (Adobe Commerce)

To connect the store or channel, the skill has the agent read Magento server-side tracking and profit bidding (POAS) and Google Ads server-side conversion tracking as Markdown, so those steps aren’t copied into every skill.