Custom HTML or app
Place the generated line before the closing head tag in the shared layout or document template.
Website setup guide
The direct script works on public websites where your platform lets you add global head code. Shopify uses a separate managed installation.
Direct installation
A copied script is not proof by itself. Finish with a visit you can recognize in the dashboard.
STEP 01
Sign up with email and password. The free direct plan does not require a payment card.
STEP 02
Choose Add website, enter a clear name and the public domain, then select Any website, WordPress, or WooCommerce.
STEP 03
For WordPress or WooCommerce, upload the ShopLens plugin and approve the displayed connection, or use the manual script alternative. Other sites add the exact generated line to an authorized global head or custom-code area.
STEP 04
Open the live site in a private window, visit a few pages, and check the ShopLens activity view. Do not treat setup as complete until that test appears.
Platform placement
Names vary by platform, but the rule stays the same: load the generated script once on every page you want measured.
Place the generated line before the closing head tag in the shared layout or document template.
Upload the ShopLens plugin ZIP, activate it, and approve the displayed HTTPS connection—or use an authorized global header setting. Reconnects can require approval again. A configured site ID is not proof until a known visit appears.
The plugin adds the base tracker and explicit cart, checkout, and paid-order confirmation events. It reports WooCommerce's order total, currency, and internal order ID; later refunds and cancellations are not reconciled.
WordPress plugin download
The package is distributed directly by ShopLens and is not yet in the WordPress.org directory. The approval page displays the exact domain, does not receive your WordPress password or administrator cookie, and returns only the public ShopLens site ID to the plugin through WordPress' local settings page.
ShopLens does not set analytics cookies. That does not by itself decide whether your site needs consent or additional disclosure; those duties depend on your jurisdiction, configuration, and other tools.
Optional site events
After the base script loads, your own code can record a named goal such as a completed signup. Keep names free of personal information.
shoplens('event', 'newsletter_signup');Commerce sites can also call shoplens('purchase', ...) with the actual value, ISO currency, and stable order ID shown in the site-creation instructions. Never put a customer name, email, address, or payment data into an event or order ID.
Cart and checkout activity is also explicit. Call these only after your own website confirms the matching action; ShopLens does not guess from a URL path:
shoplens('add_to_cart');
shoplens('view_cart');
shoplens('checkout_start');Installation FAQ
Place it once in the global head, immediately before the closing head tag, so it loads on every page you want measured. Site builders may call this Custom Code, Head Code, Analytics, or Code Injection. Use only a setting you are authorized to edit.
Yes, ShopLens provides a directly downloadable plugin. A WordPress administrator still uploads and activates it, then approves the displayed HTTPS connection in a top-level ShopLens page. Reinstalling or reconnecting can require approval again. The package is not yet listed in the WordPress.org directory, and setup is not verified until a known live visit appears.
Production collection checks the browser origin against the saved public hostname. This helps keep one site identifier from being used by unrelated websites. Enter the exact public hostname where the script will run.
No. ShopLens records a purchase value only when code on your own confirmation flow reports the real total. This avoids inventing revenue or scraping sensitive checkout data.
No for the managed Shopify app. That path uses Shopify authorization and a Web Pixel and is designed not to require a theme-code paste. The integration is prepared, but it is not publicly installable until its App Store listing is submitted and approved.
First confirm that you published the change, then clear any site, WordPress page, plugin, or CDN cache and retry from a private window. If your site uses Content Security Policy, allow https://shoplens.io in both script-src and connect-src. Browser privacy tools and network filters can still block the script or analytics request.
Current means ShopLens accepted at least one pageview during the previous 72 hours. It is recent delivery evidence, not a guarantee of future delivery. Stale means the latest accepted pageview is older than that window and can also mean the site has simply been quiet. Never tracked means ShopLens has not accepted a pageview for that website yet.
Shopify merchant? Use the managed Shopify setup guide.
Clear analytics, calmer decisions
Create one site on the free plan and keep the installation checklist open while you connect it.
Start free