How to fix "Update to IPv6 for Purchase events" in Meta Events Manager
"Update to IPv6 for Purchase events" means your Conversions API is sending Meta an IPv4 address for a visitor whose browser pixel reached Meta over IPv6, so the two copies of the event carry different IP addresses. To fix it, your server must send the visitor's real IP address, IPv6 when they have one. In a server-side Google Tag Manager setup you do that by giving your tagging server an IPv6 address, or by passing the visitor's IP from the browser to the server and overriding the IP before the Conversions API tag runs.
The video above shows the second route: the web container sends the visitor's IP as an event parameter, and a transformation in the server container puts it on the Conversions API event. This post is the written version, with the cleaner fix to check first and the mistake that only hides the warning.
What changed since the video. My newer, shorter video uses a server template that rewrites the IPv4 address into IPv6 format. That changes how the address is written, not which address it is: Meta still doesn't get the visitor's real IPv6. Meta's documentation says to always provide the real IP address (Meta, customer information parameters), so I no longer recommend converting. Send the real one.
What the IPv6 warning means
Every Meta event can carry the visitor's IP address in the client_ip_address field. Meta uses it, with the browser details and any customer data, to match the event to a person. For browser events the pixel adds it automatically. For server events you have to set it yourself, and Meta says it must be a valid IPv4 or IPv6 address, that "IPv6 is preferable over IPv4 for IPv6-enabled users", and that it must never be hashed (Meta, customer information parameters).
Here's how the mismatch happens. Many phones and home connections have both an IPv4 and an IPv6 address. The pixel talks to Meta, which supports IPv6, so Meta sees the IPv6 address. Your events also go to your tagging server. If that server only has an IPv4 address, the browser reaches it over IPv4, and the server container reads an IPv4 address from the request. The Conversions API tag then sends that IPv4 address to Meta.
Meta now has two versions of the same visitor's event with two different IP addresses. Events Manager flags it as a recommendation, often worded as "Update to IPv6 for Purchase events" or "Purchase events sending mismatched IP address". The same notice can appear for PageView, ViewContent, AddToCart and InitiateCheckout.
It's a recommendation, not an error that blocks events. Your events still arrive. The cost is weaker matching, which is the same thing Event Match Quality measures.
Check first: can your tagging server receive IPv6?
The cleanest fix needs no tags at all. If your tagging server has an IPv6 address, IPv6 visitors connect to it over IPv6, and the server container reads their real IPv6 address straight from the request. The Conversions API tag then sends the right address without any change.
How you get there depends on where the server container runs:
- A managed hosting service. Some hosts for server-side Google Tag Manager support IPv6 on some or all of their server locations. Check your host's documentation, then check how your custom subdomain points to the host and that nothing in between strips IPv6.
- Google Cloud with a load balancer. The usual setup only has an IPv4 frontend. Simo Ahava's guide shows how to add an IPv6 frontend and an
AAAADNS record next to the existingArecord (Simo Ahava, IPv6 support for sGTM). - Anything else. Look up your tagging subdomain in any DNS lookup tool. If it has an
AAAArecord, it can receive IPv6. If it only has anArecord, it can't.
If you can't change the server, use the steps below. They pass the IP from the browser instead.
What you need
- A working Conversions API setup in server-side Google Tag Manager. A web container that sends events to a server container, and a Facebook Conversions API tag in the server container. If you don't have that yet, start with how to set up the Facebook Conversions API with Google Tag Manager.
- A script that finds the visitor's IP address in the browser, IPv6 first and IPv4 when there's no IPv6. In the video I use my own script, linked in the video description.
- Access to Events Manager, to read the recommendation and check it later.
Step 1: save the visitor's IP in the browser
In your web container, add a Custom HTML tag with the script that looks up the visitor's IP address and saves it in the browser's local storage. Trigger it on All Pages and save.
Meta's own Parameter Builder library does the same job the official way. Its client-side part gets the IP address, IPv6 first with IPv4 as the fallback, and saves it to a cookie so the server side can read it. Whichever you use, the rule is the same: it must be the visitor's own address, not a rewritten one.
A browser can't read its own public IP address, so these scripts ask an outside service. That sends the visitor's IP to that service. If you need consent before tracking, fire this tag under the same consent rules as your other marketing tags.
Step 2: read it back with a variable
Still in the web container, go to Variables → New and choose Custom JavaScript. The variable reads the saved IP address back from local storage and returns it. Give it a clear name, such as "Visitor IP".
Then open Preview, load a page, and check the variable on the Variables tab. You should see an address. If your connection has IPv6, it should be the long form with colons, the same address a "what is my IP" site shows you.
Step 3: send it with your events
Open each event tag that sends to your server container. In the video these are the GA4 event tags for AddToCart, InitiateCheckout, Purchase and the rest. Add a new parameter named client_ip_address, set its value to your "Visitor IP" variable, and save.
Do this for every event tag, not only the purchase. The warning is per event, and each event Meta flags needs the same fix. Then submit and publish the web container.
Step 4: pick it up in the server container
Open Preview for both containers and add a product to the cart. In the server container's preview, click the event and open Event Data. You should now see client_ip_address with the visitor's IP, next to ip_override, which still holds the IPv4 address the server read from the request.
Go to Variables → New in the server container and choose Event Data. Set the key path to client_ip_address and save it with a name like "Client IP address".
Step 5: override the IP with a transformation
In the server container, go to Transformations → New and choose Add or modify event data. Add a row:
- Name:
ip_override - Value: your "Client IP address" variable
Under Affected tags, choose your Facebook Conversions API tag, so the change only applies there. Save the transformation, then submit and publish the server container.
The Conversions API tag reads the IP from ip_override, so it now sends the address that came from the browser instead of the one the server saw.
Step 6: check the request that goes to Meta
Open Preview again and add a product to the cart. In the server container's preview, open the Requests tab and click the outgoing request to facebook.com. Look at client_ip_address in the user data. Before the change it showed an IPv4 address. Now it should show the visitor's IPv6 address, the same one the browser variable showed.
Then wait. Events Manager doesn't clear recommendations straight away. In the video I wait about 24 hours before checking again.
Common mistakes
Rewriting IPv4 into IPv6 format. An address like ::ffff:203.0.113.5 is the same IPv4 address written differently. It isn't the visitor's IPv6, and Meta asks for the real address.
Hashing the IP address. You hash email and phone, never the IP. Meta says client_ip_address must not be hashed.
Fixing only the purchase. If AddToCart and InitiateCheckout still carry IPv4, Events Manager keeps flagging them. Add the parameter to every event tag.
The transformation isn't attached to the Conversions API tag. Without that tag under Affected tags, or with a typo in ip_override, nothing changes in the request to Meta.
An empty value on the first page. The browser lookup takes a moment, so the very first event of a visit can fire before the IP is saved. Check a fresh visit in Preview and make sure every request to Meta still has an IP address.
Checking too soon. The recommendation takes time to update. Check the outgoing request in Preview, then give Events Manager a day.
Questions people ask
Does the IPv6 warning stop my events from counting?
No. It's a recommendation. Meta still receives and counts your events. The mismatch makes it harder for Meta to match server events to people, which can hurt your ads' targeting and reporting.
Can I just convert IPv4 to IPv6?
You can change the format, but not the address. An IPv4 address written in IPv6 form is still the IPv4 address, and Meta says to always send the real IP. Get the real IPv6 from the visitor's connection instead.
What if the visitor only has IPv4?
Then send IPv4. Meta accepts both. It only prefers IPv6 for visitors who have one.
Does an IP mismatch cause double counting?
No. Meta pairs a pixel event and a server event by the same event name and event ID (Meta, handling duplicate pixel and Conversions API events). The IP address helps match the event to a person, not to its twin.
Should I hash the IP address like email and phone?
No. Meta's documentation says client_ip_address must never be hashed. Hash email, phone and name; send the IP as it is.
Where KiteTrack fits
KiteTrack runs your own tracking server on your store's subdomain and sends your events to Meta through the Conversions API, next to the pixel, plus Google Ads, GA4 and TikTok from the same server. Customer data such as email and phone is hashed before it's sent, and your tracking is checked every 30 minutes, so a broken event becomes an alert instead of a surprise in Events Manager. See how it works for Meta on Shopify and for Meta on WooCommerce.
Not sure what your Conversions API is sending? Start with the free Tracking Check. It looks at your site in about two minutes, no signup. If you'd rather talk it through, book a call with me.
Sources
- Meta, Customer information parameters: https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters
- Meta, Parameter Builder library: https://developers.facebook.com/documentation/ads-commerce/conversions-api/parameter-builder-library
- Meta, Handling duplicate pixel and Conversions API events: https://developers.facebook.com/docs/marketing-api/conversions-api/deduplicate-pixel-and-server-events/
- Simo Ahava, IPv6 support for a Google Cloud load balancer in server-side GTM: https://www.simoahava.com/analytics/ipv6-support-google-cloud-load-balancer-sgtm/
Get tracking tips by email
Short, practical fixes for Meta, Google Ads and GA4, from Abir.
You’re in. First tip lands soon.