Description
Optisleek connects a WooCommerce store to the Optisleek platform, which uses AI tools to optimize the performance of an ecommerce business.
Features:
- Tracking pixel – sends shop events (product views, add to cart, purchases) to your Optisleek account.
- Catalog sync – exposes brands, categories, attributes and products as JSON, so that Optisleek can import your catalog.
- AI product sorting – adds a “Recommended (Optisleek)” sorting option to WooCommerce category pages, using the order calculated by Optisleek.
- Product widgets – “Related products” and “Frequently bought together” widgets on the product page.
- Landing pages – the
[optisleek_landing_page]shortcode and an optional landing page on every product page. - Search machine – replaces the store’s search bar with the Optisleek search machine: suggestions while typing, a results page (
/optisleek-search/) with filters, search by photo and “See similar” on the product page. On multilingual stores (WPML or TranslatePress) each language can have its own search machine, fed by a translated product file that the plugin produces. Its texts can be translated (text domainoptisleek, e.g. with Loco Translate); a Greek translation is included.
An Optisleek account is required. The plugin does nothing until you enter your Optisleek URL and pixel code in Optisleek → Settings.
External services
This plugin connects to the Optisleek service (https://www.optisleek.com/), operated by FDN Group. Every connection goes to the Optisleek URL that the site administrator enters in the plugin settings. Nothing is sent before that URL and the pixel code are set.
Event tracking – used to measure the store’s performance and to train the recommendations.
When a visitor views a product or category, adds a product to the cart or completes an order, the visitor’s browser sends to <Optisleek URL>/api/event/push: the pixel code, a random visitor ID (stored in the browser’s localStorage), the event type, the product IDs, prices and quantities involved, the page URL, the referrer, the screen and window size, the browser’s user agent, and the campaign IDs of Optisleek links. When an order is completed, the store’s server also sends the order’s products, quantities and totals. No names, email addresses, phone numbers or addresses are sent.
Product sorting – used to fetch the AI product order for each category.
Twice a day (WP-Cron), and when an administrator clicks “Sync”, the store’s server sends the API token and shop ID from the settings to <Optisleek URL>/api/products/sort and receives the product order.
Product widgets and landing pages – used to show the recommendations.
On pages that display a widget or a landing page, the visitor’s browser loads the Optisleek script <Optisleek URL>/public/widgets/products.js, which shows the widget in an iframe from the Optisleek service. The script receives the pixel code, the current product ID and, for landing pages, the landing page token.
Search machine – used to answer the store’s product searches. Off by default.
When an administrator enables it and enters a search machine token, every page of the store loads the Optisleek script <Optisleek URL>/public/widgets/optisleek-search.js (https://app.optisleek.com when no URL is set), with that token. What visitors type in the search bar, and the photos they choose to search with, are sent to the Optisleek service so that it can return the results. The search is not tied to a customer account. Product links from the results carry the parameters osmvguid and osmvguidToken, which the store reports back with the product view and order events described above.
Catalog sync – the plugin adds the endpoint /optisleek/api?sync=... to the store. Optisleek reads the public catalog data from it: brands, categories, attributes, products, prices, stock and image URLs. No customer data is included. The latest full export and the list of disabled products are also saved as JSON files in the plugin’s api/files/ folder.
Search machine files (multilingual stores) – when the search machine is enabled and WPML or TranslatePress adds languages, the store’s server writes, once an hour (WP-Cron) and when an administrator clicks “Produce files now”, one JSON file per extra language to wp-content/uploads/optisleek/ (search-<language>.json). It holds the same public catalog data as the catalog sync, with the texts and links of that language. Optisleek reads it from /optisleek/api?sync=search-feed&lang=<language>. Nothing is sent to Optisleek by this feature, and no customer data is included. With TranslatePress, the file uses the translations already saved in TranslatePress and never asks for automatic (paid) translations.
Service terms of use: https://www.optisleek.com/footer/legal/terms-of-service/
Service privacy policy: https://www.optisleek.com/footer/legal/privacy-policy/
Installation
- Install and activate WooCommerce.
- Upload the plugin to
/wp-content/plugins/optisleekand activate it. - Go to Optisleek → Settings and enter your Optisleek URL and pixel code.
- Enable the features you want from the Optisleek menu.
FAQ
Do I need an Optisleek account?
Yes. The plugin connects your store to the Optisleek platform and needs the URL and pixel code of your account.
Does the plugin work without WooCommerce?
No. WooCommerce is required.
Does the search machine work on multilingual stores?
Yes, with WPML or TranslatePress. Create one search machine per language in Optisleek, enter each token in Optisleek → Search machine, and give Optisleek the file URL of each extra language shown on that page. The main language uses the regular catalog export. With GTranslate the translation happens in the visitor’s browser (or on GTranslate’s servers), so the store has only one language and one search machine.
Changelog
1.0.6
- New: Search machine – the Optisleek search bar replaces the theme search, with a results page at
/optisleek-search/, a “See similar” button on product pages and search attribution in the tracking events. - New: multilingual search machine for WPML and TranslatePress (one search machine and one product file per language).
- The search machine texts are translatable (text domain
optisleek, Greek translation included).
1.0.5
- All front-end JavaScript is now loaded with wp_enqueue_script / wp_add_inline_script (tracking script moved to
assets/js/optisleek-tracking.js). - Admin notices are shown only on the plugin’s own pages and the Plugins page.
1.0.4
- Catalog export also saved to
api/files/optisleek_data.jsonandapi/files/disabled_products.json. - Disabled products: unpublished, permanently deleted, and old out-of-stock products.
- Code updates for the WordPress.org Plugin Check.
