Personalization for your Akinon store
Measured separately on Project Zero and Omnife Next: GTM events are read, and the recommendation card adds to the Akinon basket itself.
What the ready integration gives you
Selwise campaigns, recommendations, onsite search and A/B tests run on your Akinon store. Akinon serves two different runtimes behind the same URLs — Django-based Project Zero and Next.js-based Omnife Next — and the setup depends on which one you run. The Enhanced Ecommerce events written by Project Zero’s standard GTM adapter are read through a ready mapping, and the “add to cart” on recommendation and search cards calls the Akinon basket endpoint itself.
- Project Zero’s eeEvent, eeCart, eeCheckout and eepurchase events become product view, click, cart, checkout and purchase signals
- Add to cart from a card: /baskets/basket/ on Project Zero, the store’s /api/client/baskets/basket/ proxy on Omnife Next
- For sized products the card draws a size picker first and waits for the shopper’s choice
- The goal bar reads the basket total from the same endpoint (after discounts)
If your Omnife Next store writes GA4 event names (view_item, add_to_cart), they are not read from the dataLayer by themselves; cart and checkout events are sent with window.selwiseLayer.push. The Akinon basket accepts a product only by its numeric pk; without a pk column in the feed, map the “Add-to-Cart Code”.
- 1Identify the stackmanage.py in the project and window.GLOBALS on the page mean Project Zero; an @akinon/next dependency and pz- prefixed elements mean Omnife Next.
- 2Add the scriptProject Zero: the head of templates/layout/base.html, above the GTM snippet. Omnife Next: the head field of the external-gtm widget in Omnitron, or the root layout.
- 3Turn on the data layerIn the Data Layer settings turn the data layer on, choose the Akinon preset and keep the external layer name dataLayer.
- 4Map the cart codeWithout a pk column in the feed, put the column carrying Akinon’s numeric product id into the “Add-to-Cart Code” row of the field mapping.
- 5Connect orders and identityAdd trackOrder to the thank-you page and Selwise.identify to a signed-in shopper’s pages; the product code must match the feed.
Where each signal comes from
What is read by itself on your Akinon store and what the theme code has to send.
| Signal | Source |
|---|---|
| Page viewAutomatic | By itself, on every page the script loads on. |
| Product view and clickAutomatic | From GTM eeEvent events on Project Zero; from the product page on Omnife Next. |
| Add to cart and checkout stepsAutomatic | From eeCart and eeCheckout on Project Zero; sent with selwiseLayer on an Omnife Next store that writes GA4 names. |
| Basket totalAutomatic | Read with GET from the Akinon basket endpoint; the preset must be set to Akinon explicitly. |
| OrderYou send it | From the eepurchase event or a trackOrder call on the thank-you page (recommended); an order is never counted twice. |
| User identityYou send it | The ready mapping has no login event; call Selwise.identify on a signed-in shopper’s page. |
| Search termYou send it | With Selwise search on, the search records it; for the store’s own search a search_query event is sent. |
Akinon questions
Yes; both stacks were measured separately. The difference is where it is installed and how events are read: Project Zero’s GTM adapter events are read through the ready mapping. If Omnife Next writes GA4 names, product views are still read from the page, while cart and checkout events are sent with window.selwiseLayer.push.
Selwise calls the store’s basket endpoint itself: POST /baskets/basket/ on Project Zero, the store’s own /api/client/baskets/basket/ proxy on Omnife Next. It tries the other endpoint only on a 404 or 405, so a product is never added twice. After a successful add the header counter and the mini cart refresh.
On Akinon every size is its own product with its own pk. If the feed carries one row per size the card shows the sizes itself; if not, the sizes are read once from the store’s own URL when the shopper first presses add to cart, and a size picker is drawn first.
A Selwise channel carries one domain, one currency and one feed. Open one channel per market and choose the site key from the domain. Load nothing on an unknown domain, or test visits are written into production revenue.
Akinon projects ship no ready-made feed today; one is connected during setup. The Akinon feed template in the docs lists where each field comes from and how the cart code is mapped.
