Personalization for your ikas store
Installed with one script tag on your ikas storefront. Product views and page type are read by themselves; cart events are sent from the theme.
What the ready integration gives you
Selwise campaigns, recommendations, onsite search and A/B tests run on your ikas store. Setup is one script tag in the theme’s custom code field that runs on every page. Product views are read from the product code on the page, and ikas’s English paths (/products/, /categories/, /cart) are recognized by the default patterns. ikas has no ready dataLayer mapping, no ready feed mapping and no reader for the store’s cart, so cart events and the basket total are sent from the theme’s cart code.
- Product views by themselves: the product code is read from JSON-LD or data-ikas-product-id, data-product-code, data-product-id
- English paths (/products/, /categories/, /cart, /checkout, /search) are recognized as page types with no extra setting
- Every variant row in the feed is its own product, added to cart with its own code; the grouping key is set in the mapping
- “Add to cart” on recommendation and search cards clicks the button in that product’s own tile on the page
On ikas, add/remove-from-cart events and the basket total do not arrive by themselves; the theme’s cart code sends them with window.selwiseLayer.push, basket.total included. Without a basket total the goal bar is not drawn.
- 1Create the channelOpen a web channel for your store in the panel and get your site key.
- 2Add the scriptIn the ikas panel, add it through theme editing or the custom code field so it runs on every page before the closing body tag; the field name depends on the ikas version.
- 3Turn on the data layerIn the Data Layer settings turn the data layer on and choose the ikas preset; enter page type patterns if your URLs are Turkish.
- 4Send cart and ordersSend cart events with basket.total from the theme code, and the order with trackOrder on the confirmation page.
- 5Map the feed and variantsEnter the feed URL and map its fields; set the “Add-to-Cart Code” if the cart expects a variant code, and the grouping key for a variant catalogue.
Where each signal comes from
What is read by itself on your ikas store and what the theme code has to send.
| Signal | Source |
|---|---|
| Page viewAutomatic | By itself, on every page the script loads on. |
| Product viewAutomatic | From the product code on the page: Product JSON-LD or data-ikas-product-id, data-product-code, data-product-id. |
| Page typeAutomatic | English paths by the default patterns; Turkish URLs need patterns. |
| Add and remove from cartYou send it | Not by itself; sent with window.selwiseLayer.push. |
| Basket totalYou send it | The store’s cart is not read; only a sent basket.total counts as measured. |
| OrderYou send it | A trackOrder call on the order confirmation page. |
| User identityYou send it | A Selwise.identify call. |
| Search termYou send it | With Selwise search on, the search records it; for the store’s own search a search_query event is sent. |
ikas questions
With one script tag added through theme editing or the custom code field in the ikas panel, running on every page before the closing body tag. The field name depends on the ikas version. You confirm it also loads on the order completion page by typing window.Selwise in that page’s console.
No. ikas has no ready dataLayer mapping and no cart reader; add and remove from cart, basket total (basket.total) included, are sent from the theme’s cart code with window.selwiseLayer.push. Product views and page type are read by themselves.
Every variant row in the feed becomes its own product and is added to cart with its own code. If your cart expects the variant code apart from the product code, fill the “Add-to-Cart Code” row in the field mapping; to show variants together, set the grouping key in the mapping too.
Selwise does not call the ikas cart API; it clicks the add button or form in that product’s own tile, bound to its product code such as data-ikas-product-id. Without the product’s tile on the page nothing is added; a generic button unrelated to the product code is never clicked.
There is no ready mapping for ikas. On the panel’s Product Feed screen you enter the feed URL and map the fields; the product code must equal the code sent in orders.
