Skip to content

Shopify Hydrogen

What is sent

Everything the module sends, by piece. Nothing else leaves your storefront.

From your server#

PieceWhenWhat
Proxy and llms.txt routesA request to /apps/aiptimise/* or /llms.txtThe 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 helperAt most once a day per storefront hostYour storefront’s host name. Nothing about the visitor.
Head links and the product block switch (loadAiptimise)At most once every five minutes per storefront hostYour storefront’s host name. Nothing about the shopper.
Product blockNeverNothing. 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.
WhenSentStored in the browser
Every such arrivalOne anonymous report: the landing path and URL, the referrer and which assistant.Nothing.
Only with analytics consentFor 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:
AttributeValue
_aiptimise_refThe id of the AI arrival.
_aiptimise_visitThe AI visit active when the cart changed.
_aiptimise_engineWhich 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.