Docs

Wavelynks, in one page

Wavelynks is an autonomous conversion-optimization platform, with Echo, its AI companion, doing the work. A tiny script applies approved variants and records anonymous analytics; the Echo Agent finds problems and drafts tests; Studio lets you build and refine variants on your live page; and the results engine tells you what to ship.

The loop: scan → build → approve → run a planned window → deploy the winner or conclude → learn.

Installation

Add one line as high as possible in the <head> of every page. Find your site key under Connectors.

index.html
<script src="https://www.wavelynks.com/echo.js" data-site="YOUR_SITE_KEY"></script>

The script is synchronous on purpose: it hides the page for at most ~900 ms on a first visit while variants load, then caches the experiment config so later page views apply changes before first paint, with no flicker. Use Verify installation on the Connectors page to confirm events arrive.

Shopify: Online Store → Themes → Edit code → layout/theme.liquid, paste right after <head>. Next.js: a plain <script> in the root layout's <head>. GTM: works, but loads later (some flicker).

Tracking purchases (Wavelynks Pixel)

Report revenue on your order confirmation page so experiments are measured on money, not clicks:

thank-you page
<script>
  window.echo = window.echo || [];
  echo.push(["purchase", { value: 84.50 }]);   // works before echo.js loads
</script>

Add-to-cart is detected automatically for carts that call /cart/add (Shopify, WooCommerce, most themes). You can also switch a goal to Page visit mode in Settings → Conversions, e.g. any path starting with /checkout/thank-you.

JavaScript API

browser
echo.track("newsletter_signup")              // custom goal (event mode)
echo.track("purchase", { value: 120 })         // purchase with revenue
echo.purchase({ value: 120 })                  // shorthand
echo.variant("exp_123")                        // → variant id this visitor sees, or null
echo.consent(true)                             // release events held for consent
echo.visitor                                   // anonymous visitor id

<button data-echo-goal="size_guide_open">Size guide</button>   // click goal, no JS

Debug any page with ?echo_debug=1. Preview a draft variant on your live site with ?echo_preview=VARIANT_ID (Studio's Preview button generates the link and a QR code).

Targeting rules

A targeting group is a reusable set of URL rules. Each rule reads: path does / does not [operator] [value]. Combine with AND / OR and nest groups.

  • exact, simple: the path equals the value (query strings are always ignored)
  • starts_with, ends_with, contains
  • wildcard: /products/*, /collections/*/sale
  • regex: full regular expressions, case-insensitive

The reach panel estimates visits in the last 7 days and the planned window before you commit. Wider groups resolve faster.

How experiments run

Every A/B test is a fixed, even split read at the end of a planned window. The window is set from your real traffic before launch:

  • 2 weeks if the pages can send ~5,000 visitors to each variant, 4 weeks if they need longer, and a 6-week ceiling.
  • Figures stay hidden until every variant has 350 visitors and 50 conversions.
  • No leader is named before the window completes. Peeking inflates false positives.
  • Chance to beat (Bayesian, Beta-Binomial), against your winner bar (95% by default; 80, 85 or 90% in Settings): at or above the bar on conversion or on revenue per visitor is a winner, a little below is promising, and the original wins when the variant’s chance drops under 100% minus the bar.
  • Revenue per visitor counts once the original and the variant both have 50 orders. A variant that converts more but earns less per visitor is never called a winner.
  • A clear loser (under 1% chance to beat) can be stopped early, but only after 7 days, so weekday swings can’t trigger it.
  • Lift is reported with a 95% interval. Plan against the low end, not the point estimate.
  • Device and channel breakdowns appear once each segment has 500 visitors per variant. Deploy only where it won.

Assignment is deterministic (FNV-1a hash of experiment + visitor, as in GrowthBook) and sticky in localStorage, so visitors keep the same variant across pages and visits. Try the calculators to plan a test.

Studio & change types

Variants are lists of DOM operations applied on top of your original page. Your code is never modified, and pausing reverts instantly.

change types
text      replace an element's text
html      replace inner HTML
style     inline CSS on the element        { "background-color": "#1f9d47" }
attr      set an attribute                  href, src, aria-label…
hide      hide the element
insert    insert HTML  beforebegin | afterbegin | beforeend | afterend
css       add a global stylesheet           @media (max-width: 767px) { … }
move      move the element next to another
redirect  split-URL test

In Studio, click to select an element, double-click text to edit it in place, or describe the change to the Experiment agent. ⌘Z / ⇧⌘Z undo and redo; changes autosave.

Audiences & ads

An audience page (a personalization) serves a changed version of a page to one audience only, with a holdout (default 10%) that keeps seeing the original so you can still measure lift. Audience fields: utm_source, utm_medium, utm_campaign, referrer, channel (organic, social, paid, email, ai, referral, direct), device (mobile / desktop), visitor (new for the whole first visit / returning) and query.

The Audiences page groups your visitors the way the script can tell them apart: phone or computer, first visit or back again, each traffic channel and each campaign. For the last 30 days it shows how often each group buys next to everyone else (a group is only called behind or ahead with at least 200 visits on each side and a clear difference), how far their visits get, and where they start. “Change what they see” opens a new audience page for that group.

Tests and audience pages link up. When a test’s window is done and it won for one device or channel but not overall, “Keep it just for …” turns the winner into a live audience page for that group (with its holdout) and concludes the test. When an audience page pays, “Test it on everyone” drafts a test of the same change on the same pages; starting it pauses the audience page so the two don’t overlap.

The UTM tags are read when a visitor arrives and kept for the whole visit, so a visitor from an ad keeps their page as they browse. A link with any utm_ tag starts a new attribution. Ads written in Wavelynks carry their own utm_campaign (one per ad), so each ad’s visits and orders are counted and its matched page targets exactly its visitors.

Shopper surveys

A survey is one question (pick an answer, a 1–5 score, a 0–10 score or the shopper’s own words) shown by the same script, so there’s nothing else to install. Each survey has its own moment (when leaving, after an order, after some time or scrolling, after adding to the cart), pages, devices and visitors, how often the same shopper may see it, and its look.

  • At most one survey per visit, never interrupting checkout (there it only shows when someone heads to close the page), and a survey stops for a shopper once they’ve answered (unless you say otherwise).
  • Shoppers see the survey in their page’s language (English, Dutch, French, German, Spanish, Italian or Portuguese) when you’ve added it; otherwise in the language you choose as the fallback.
  • Answers count toward reasons (price, delivery, size, returns, trust, information, photos, payment); a reason that keeps coming up becomes a test idea.

See a survey on your live store before it’s published with ?echo_survey=SURVEY_ID (the survey’s “See it on your store” button makes the link). It shows straight away, and nothing you answer there is counted.

Recordings & heatmaps

Heatmaps are on for every store: the script notes which element was clicked and where on it, and how far down each page a visit got. Recordings → Heatmaps draws them on your live page, phones and computers apart. Clicks on things that have since changed are placed where they were on the page. Kept 90 days.

Session recordings are off until you switch them on in Recordings, for 10%, 25%, 50% or every visit. The recorder (rrweb) loads only for recorded visits. Every form field is masked, checkout, login and account pages are never recorded, and recording waits for consent when consent is required. Add data-echo-mask to an element to mask its text, or data-echo-block to leave it out entirely. Recordings are kept 30 days. Each plan records a number of visits a month across your stores: 2,500 on Starter, 10,000 on Growth, 30,000 on Scale.

Echo’s review reads up to 30 recent recordings, the ones where something went wrong first, as a written account of each visit (pages, taps, rage and dead clicks, scroll depth, carts and orders, never what was typed) and writes up what repeats, each with a change worth testing. It runs on your own AI key.

Privacy & consent

The script stores only random identifiers and experiment assignments in first-party storage: echo_<site>_vid, _sid, _asg, _exp, _cfg. It sets no cookies and collects no personal data. Enable Wait for analytics consent to hold events until OneTrust (C0002), Google Consent Mode analytics_storage or echo.consent(true) grants it. Variants still render, so the experience stays consistent.

If you use a Content Security Policy, allow this host for script-src and connect-src.

MCP server

Ask your store questions from Claude, ChatGPT or any MCP client, and turn the answer into a draft test. Create an API key in Settings → API & MCP, then:

Claude Code
claude mcp add --transport http echo https://www.wavelynks.com/api/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Tools: list_sites, list_experiments, get_experiment_results, get_page_scorecard, get_site_analytics, list_opportunities, create_experiment (always a draft, which a human must start).