Skip to content

No-Code Setup

B2B SaaSE-commerceAgencies

Pick buttons for tracking and tests without CSS

Point and click on buttons, forms, or links using Apex's Visual Element Picker to capture reliable CSS selectors for Key Events and snippet A/B tests without editing code.

Works on static sites, React SPAs, Next.js, Plasmic, and logged-in pages.

5 min read5 min setupUpdated
Growth marketer in a bright teal sweater and product designer comparing pinned landing-page wireframes on a sunlit loft studio wall.
Point directly at the button, form, or headline you want to measure or test without digging through browser DevTools.

Interactive visual element picker lab

Click any page element to inspect its selector, match count, and stability

Test how Apex scores selector reliability from IDs down to fragile nth-child paths, and see when Apex picks Iframe Preview, Live Site Picker, Bookmarklet, or Manual entry.

Illustrative landing page · Visual Element Picker
ApexKey Events & Snippet Tests · Visual Element Picker
Click a mockup element to capture its selectorOverlay active
React SPAs, Next.js client apps, Plasmic sites, or logged-in pages (uses snippet overlay in a new tab).
2. Live Site Picker

Live match count

1 match

Targets one specific element

Selector reliability

Best

ID

Captured CSS selector

#signup-cta

Unique by definition. Survives CSS restyles and layout edits cleanly.

Selector reliability ladder

  1. 1. ID (#signup-cta) - Best
  2. 2. Data attribute ([data-goal="signup"]) - Excellent
  3. 3. Unique class (.pricing-start-btn) - Good
  4. 4. Generic class (.btn.primary) - Fair
  5. 5. Tag + nth-child (div > button:nth-child(2)) - Fragile

The complete playbook

Step-by-step setup, worked math, and real limits.

Steps, technical details, and live pricing.

How it works without Apex

Open your Key Event or snippet experiment in Apex and launch the Visual Element Picker. Apex tries Iframe Preview first for static/SSR pages, automatically falls back to Live Site Picker in a new tab for React SPAs, Next.js client apps, Plasmic, or authed pages, and offers a bookmarklet before snippet install. Click your element, verify match count with the built-in test button, and publish.

How Apex does it for you

Apex switches automatically between Iframe Preview, Live Site Picker via the snippet messaging channel, and the bookmarklet fallback, scores selector stability, and tests live element matches before you launch.

How to set this up in 5 steps

  1. Open the Visual Element Picker from Key Events or Experiments

    Inside Apex, start creating a click Key Event or a snippet experiment target and launch the Visual Element Picker on your target page URL.

  2. Use Iframe Preview or automatic Live Site Picker fallback

    Static and server-rendered pages load directly in the dashboard Iframe Preview. If your site blocks iframes via X-Frame-Options/CSP or runs as a React SPA, Apex opens your live site in a new tab with the snippet picker overlay active.

  3. Use the Apex Picker bookmarklet before snippet install

    If the snippet is not installed yet, drag the Apex Picker bookmarklet to your bookmarks bar, open the page, click the bookmarklet, click your target button, and paste the captured selector back into Apex.

  4. Check selector stability and match count

    Click the built-in test button to confirm the selector matches on the live page and check the match count so you know whether it targets one specific CTA or every Add to Cart button.

  5. Harden critical CTAs with IDs or data-goal attributes

    When your team ships future page updates, prefer selectors anchored on unique IDs (#signup-cta) or data attributes ([data-goal="signup"]) instead of fragile tag + nth-child paths.

Four ways to pick an element

Most visual taggers break the moment they meet a single-page React app, a strict X-Frame-Options header, or a page behind login. Apex's Visual Element Picker provides three interactive ways to pick an element (plus manual CSS selector entry):

  1. Iframe Preview: Loads static and server-rendered pages (HTML, WordPress, standard Next.js) directly inside the Apex dashboard so you hover and click in place.
  2. Live Site Picker: When a site blocks iframes or runs as a React SPA, Next.js client app, Plasmic site, or logged-in dashboard, Apex opens your actual live page in a new tab and activates an overlay through the installed Apex snippet. Clicking any element sends the selector straight back to Apex.
  3. Apex Picker Bookmarklet: If the snippet is not installed yet, drag the Apex Picker link to your bookmarks bar, click it on any page, click the target element, and paste the captured selector into Apex.
  4. Manual Selector: If you already know the exact CSS selector (for example #signup-cta or [data-goal="signup"]), paste it directly.
Two product marketers reviewing printed landing page wireframes marked up with red pen notes on a sunlit birch studio table.
When a page blocks iframes or runs as a React SPA, Apex switches automatically to the Live Site Picker overlay in a new tab.

Selector reliability ladder

The picker generates a CSS selector automatically, but selector durability matters once designers ship future updates:

Selector typeReliabilityExample
IDBest (unique by definition)#signup-cta
Data attributeExcellent (built for targeting)[data-goal="signup"]
Unique classGood (stable unless renamed).pricing-start-btn
Generic classFair (often matches multiple buttons).btn.primary
Tag + nth-childFragile (breaks on layout reorder)div > button:nth-child(2)
Startup founder reviewing clean layout wireframes on a bright sunlit studio wall with her marketing colleague.
Test live selector match counts in one click before turning any CTA into a tracked Key Event or snippet A/B experiment.

Verifying before launch

Every picked selector includes a live preview, a test button that confirms the selector still matches on the live page, and a match-count indicator. If a selector matches six buttons on a catalog grid, you decide immediately whether to track all six or narrow it down to one hero CTA before activating.

What this costs on Apex

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for Marketing team tracking 20,000 CTA clicks and running 10,000 snippet A/B assignments/month

$0 / month

Covered by monthly free allowances.

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
Tracked CTA clicks and page views (20,000 monthly web events)
20,000 / mo1M / month$5 per 100K events$0
Orchestrations
Snippet A/B experiment assignments (Evaluates visual copy and CTA changes against real conversions)
10,000 / mo1M / month$5 per 100K assignments$0

Visual Element Picker, Key Event tracking, and snippet experiment previews are included on every workspace. History: 13 months no card, 3 years with card, 7 years once you've paid an invoice. Live pricing.

Third-party and campaign costs (not paid to Apex)

ExpenseTypical rangeNotes
Google Tag Manager or separate visual editor$0/moVisual Element Picker and snippet experiments are built directly into Apex

Launch with your AI agent

Audit Key Event wiring and harden buttons with data-goal via MCP

After picking elements visually in Apex, ask your coding agent to audit your existing Key Event wiring via MCP and then add stable data-goal attributes to key CTA buttons in your codebase.

1Add Apex to your editor

Install in Grok Build

Opens Grok Build and adds Apex. Nothing to configure.

2Tell your agent

Prompt for your AI editor

In my Apex workspace, audit our current click Key Event wiring using list_key_events and get_wiring_status, then harden our primary signup and pricing CTA buttons in code with stable data-goal attributes so selectors stay durable across redesigns.

The first time your agent calls Apex, it gives you a link to approve in the browser. There is no key to paste. In Grok Build you can also run /setup-apex.

See how editor setup works step by step

marketing-site · Grok BuildWaiting for approval
Agent
You

Set up Apex in this repo.

Set up Apex · 0 of 4
  • Signed in
  • Workspace named
  • Events arriving
  • Conversion picked
  • Stripe

Your move

Stop waiting two sprints just to track a button click.

Point, click, verify the live match count, and turn any page element into a tracked Key Event or snippet A/B test in 5 minutes.