Shopify Hydrogen
What is sent
Everything the module sends, by piece. Nothing else leaves your storefront.
From your server#
| Piece | When | What |
|---|---|---|
| Proxy and llms.txt routes | A request to /apps/aiptimise/* or /llms.txt | The path and query, and the visitor’s User-Agent, IP address, Referer, country and Accept-Language, so Aiptimise can tell AI crawlers apart and count them. Aiptimise stores no raw IP address. |
| robots.txt helper | At most once a day per storefront host | Your storefront’s host name. Nothing about the visitor. |
Head links and the product block switch (loadAiptimise) | At most once every five minutes per storefront host | Your storefront’s host name. Nothing about the shopper. |
| Product block | Never | Nothing. The document comes from Shopify with your own product query (the aiptimise.product_jsonld metafield, which Aiptimise writes through its Shopify app), and the swap runs inside your meta function. No browser code and no Content-Security-Policy change. |
Every request is signed with your site secret and carries the module's version in an X-Aiptimise-Client header. Nothing is sent for any other page of your storefront.
From the shopper's browser#
<AiptimiseAnalytics> acts only for shoppers who arrived from an AI assistant: an AI utm_source, an AI referrer or an aiptimise_ref link. Shoppers who came any other way are not tracked at all.| When | Sent | Stored in the browser |
|---|---|---|
| Every such arrival | One anonymous report: the landing path and URL, the referrer and which assistant. | Nothing. |
| Only with analytics consent | For each page: the path, the Shopify product id on product pages, and how long the page was visible. | A first-party aiptimise_visit cookie (30 minutes), and the aiptimise_ref cookie and localStorage entry. |
Consent is the provider's canTrack(), which by default reads Shopify's Customer Privacy API; unknown counts as no. Consent given later in the visit starts the per-page reports from then on. A reload or a back/forward navigation is never counted as a new arrival.
To Shopify, on the cart#
updateAiptimiseCartAttributes sends nothing to Aiptimise. For a shopper with the consented cookies above, it writes three cart attributes through your own Storefront API cart, and Shopify copies them onto the order:| Attribute | Value |
|---|---|
_aiptimise_ref | The id of the AI arrival. |
_aiptimise_visit | The AI visit active when the cart changed. |
_aiptimise_engine | Which assistant the shopper came from. |
Aiptimise reads them from the order with the order access its Shopify app already has. They show in your Shopify admin, not to shoppers.
Policies#
The module is MIT-licensed. Use of the Aiptimise service is governed by the terms of service and the privacy policy.