Stape/Documentation

Amazon Conversions API Tag

Updated Oct 9, 2025

The Amazon Conversions API tag is a custom tag template for the Google Tag Manager (GTM) server container. It allows you to send conversion events directly from your server to Amazon Ads. The tag supports a wide range of event types, advanced user identity enrichment, regional consent frameworks, and provides detailed logging to both Console and BigQuery. 

Benefits of using the Amazon Conversions API tag

  • More accurate conversion tracking - by relying on server-side tracking, you minimize data loss caused by browser restrictions or ad blockers.
  • Better ad optimization - improved conversion tracking and targeting allow advertisers to gather insights into user interactions. This helps Amazon’s advertising algorithms perform more effectively, reducing campaign costs.
  • More control over data collection - unlike client-side tracking, server-side tracking lets you fully manage what data is shared with each network. You can be sure that the network only receives the information you choose to include in your server requests.

Prerequisites

To configure the Amazon Conversions API, you will need the following:

How to set up Amazon Ads server-side tracking

1. Add the Amazon CAPI tag to your workspace. To do it, go to your server GTM container → Templates section → Search Gallery → type "Amazon CAPI" → click "Add to workspace".

Add Amazon CAPI  tag to workspace
Add Amazon CAPI  tag to workspace

2. Create a new tag. Go to the Tags section → click "New" → as tag type select "Amazon CAPI".

Amazon CAPI as tag type
Amazon CAPI as tag type

3. Configure the tag.

3.1 Select Event Name Setup Method:

  • Standard - select from predefined Amazon event names from the list.
  • Inherit from client - with this option, the tag maps incoming Google Analytics 4 (GA4) events to Amazon's equivalents.
  • Custom - track your own custom events.

3.2 Add Tag ID - to find the value, go to Campaign Manager → select the Advertiser → click on the section Events Manager → copy Tag ID.

Tag ID
Tag ID

3.3 Specify Region - geographic region of your Amazon Advertising account (EU or North & South America, Japan, Australia).

3.4 Override cookie settings - this option lets you choose the domain where the cookie should be written to, and also if the cookie should be set with the HTTP Only flag that prevents it from being accessed via JavaScript in the browser.

Override cookie settings
Override cookie settings

3.5 Do not set the Measurement Token cookie (amznAref) - select true or false. If a Measurement Token cookie already exists, it will be included in the request but will not be stored again as a cookie. This applies only to North America, South America, Japan, and Australia. In Europe, the Measurement Token is never transmitted.

3.6 Use Optimistic Scenario - if true, the tag will invoke gtmOnSuccess() immediately, without waiting for a response from the API. This improves sGTM’s response time; however, the tag will always report a successful firing status, even if it fails.

3.7 (Optional) User Data Attributes section.

  • Match ID - a privacy-safe, advertiser-generated identifier that connects user interactions across sessions, devices, and channels, without revealing any personally identifiable information (PII).

A persistent Match ID is assigned during the user’s first interaction. This ID is linked to the user in Amazon’s systems (using hashed PII or third-party cookies when available). When a conversion occurs (e.g., a purchase), the same Match ID is included with the event. Amazon connects the conversion back to the initial interaction, enabling full-funnel attribution.

The option is recommended for organizations with strict privacy, those that have multi-step customer journeys, and/or advertisers measuring offline or login-wall conversions.

The field should receive a variable that contains a User ID.

  • Enable Advanced Matching - if enabled, captures a user’s email address and/or phone number as an alternative to traditional browser cookies for ad identification. A first-party cookie, aatToken, is stored in the user’s browser and automatically included with all subsequent events.
User Data Attributes section
User Data Attributes section

3.8 (Optional) TCFv2 Information section.

TCF v2, or the Transparency and Consent Framework v2.0, is a set of policies and technical specifications created by IAB Europe to help digital businesses comply with European data protection regulations like the General Data Protection Regulation (GDPR) and the ePrivacy Directive.

If you target EU countries, you should enable "Include TCFv2 Information".

3.9 (Optional) Event Attributes and Event Custom Attributes sections.

You can add extra attributes to all events or add them specifically to “Off-Amazon Purchases” events. Also, you can set the attributes that will be sent along with events. The attributes are used to include sufficiently detailed information that can be used for monitoring and analysis.

Here is an example of Amazon CAPI tag configuration:

Example of Amazon CAPI tag configuration
Example of Amazon CAPI tag configuration

4. Add a trigger for the tag.

5. Test the setup using Preview mode in both web and server GTM containers. Refer to our guide on debugging and monitoring server-side configuration.

Comments

Can’t find what you are looking for?
How to Set Up Amazon Conversions API Tag | Stape