Back to Blog
Product

The New Layerwise Analytics: Trends, Live Visitors, and Retention

Layerwise Analytics now charts trends against the previous period, shows live visitors, tracks custom events, and measures retention. No cookies.

QWQing Wang
Table of contents

Every website you publish with Layerwise comes with analytics, and as of Layerwise 0.13.3 it answers the questions that matter after launch: is traffic growing, who is on the site right now, which actions people take, and do they come back? There's still nothing to install. Publish your project, open Analytics in the project sidebar, and the report is there.

This post walks through what's new: trend charts with comparisons, a live visitor count, filters you can save and share, a globe of where visitors come from, custom events, and retention. If you just want the reference, the Analytics docs cover every control.

Compare every metric with the last period

The top of the report now works like a set of tabs. Click Visitors, Pageviews, Bounce rate, or Visit duration to chart that metric, with the comparison period drawn as a dashed line behind it. Hover over any day to see both values side by side.

Analytics page with Time range, Compare, Filter, Saved filters, and the report menu marked above the summary and chart
(1) Choose a time range, (2) choose what to compare against, (3) filter the report, (4) open your saved filters, and (5) open the report menu. Select the image to view it at full size.

Compare lets you pick Previous period, Previous year (the same dates a year earlier), or No comparison. Every change on the page follows that choice: the summary numbers, the breakdowns, events, and retention. A range that ends today compares through the same time of day in the previous period, so a Tuesday morning never looks like a bad week just because the day isn't over. Today's part of the line is dashed and labeled Today (partial) for the same reason.

You can also move through time from the keyboard. Press D for today, W for the last 7 days, M for the last 30 days, or Y for the last 12 months, and use ← and → to step to the previous or next period. The Time range menu lists each key next to its option, so you don't have to memorize them.

See who's on your site right now

Next to the Refresh icon, a green dot shows how many visitors viewed a page or triggered an event in the last five minutes. It updates every 15 seconds and covers all of the project's domains. It's the quickest way to check that a launch post, newsletter, or ad is actually sending people to your site.

Filter by anything and save the view

Select Filter to build a report from conditions: page path, referrer, UTM source, medium, or campaign, country, region, city, device, browser, operating system, or a custom event. Each field has operators such as is, contains, starts with, and is empty, and values are suggested as you type, most frequent first.

Filter popover with a Path starts with /features condition and an Event is demo_started condition
Each row is one condition. Select Apply to update the report. Select the image to view it at full size.

Clicking a row in any breakdown card adds a filter too, so you can go from "most visitors come from Google" to "what do Google visitors read?" in one click.

When you find a view you'll want again, such as paid campaigns only or visitors from one country, save it. The bookmark button next to Filter opens Saved filters, which everyone on your team who can open the project can apply.

Find out where visitors come from

The Pages, Sources, Locations, and Technology cards break the report down by page, referrer or UTM tag, country, region, or city, and device, browser, or operating system. A bar behind each row shows its share of visitors, and hovering a row shows how each count changed.

Switch Locations to Map for a globe of every country with visits. On a wide window, the ten busiest countries are listed beside it; click one to turn the globe to it, or drag the globe yourself.

Locations card on the Map tab showing a globe with country labels, next to the Technology card
Switch Locations to Map to see where visitors come from on a globe. Select the image to view it at full size.

Measure the actions that matter

Pageviews tell you people arrived. Custom events tell you whether they signed up, booked a call, or bought something. The easiest way to add them is to ask your project's agent:

Track completed sign-ups and purchases with Layerwise custom events.

The agent adds calls like this to your website:

window.layerwise?.track('purchase_completed', { plan: 'pro', amount: 29 });

For simple clicks, it can skip JavaScript entirely and add a data-layerwise-event attribute to a link or button.

The Events card lists each event with its count, visitors, and conversion rate, the share of the report's visitors who triggered it. Expand an event and pick a property to see the counts for each value, or switch to Chart to plot one event over time against the comparison period.

Events card in List view with demo_started expanded to show its source property
Expand an event and choose a Property to see the counts for each value. Select the image to view it at full size.

Events work with filters in both directions. Filter the report to visitors who triggered demo_started to see which pages and sources they came from, or filter to one campaign and watch its conversion rate.

Learn whether visitors come back

The Retention card groups first-time visitors into cohorts by the day, week, or month of their first visit, and shows what share of each cohort returned in the following periods. The Heatmap shows every cohort, with darker cells for higher retention. The Curve plots the average return rate against the comparison period.

Retention card on the Heatmap tab with summary numbers above weekly cohorts
Each row is a weekly cohort; darker cells mean more visitors came back. Select the image to view it at full size.

Above the cohorts, the card summarizes first-time visitors, average first-period retention, and Best start, the cohort that came back most. If you changed your onboarding or homepage in a given week, this is where you see whether it helped.

Retention builds up from the day you update. It relies on a visitor ID that the tracker started keeping with this release, so older visits don't count as returns.

Private by default

The tracker sets no cookies. To recognize returning visitors, it keeps one random ID in your website's local storage, and that ID is hashed per project, so a visitor can't be followed from one website to another. Raw IP addresses aren't stored with events, and the tracker drops ordinary query parameters and URL fragments, keeping only UTM tags.

Keep personal information out of event names and properties: use a plan name or an amount, never an email or order ID. Layerwise Analytics Privacy lists every field collected and how long it's kept.

Get started

  1. Update to Layerwise 0.13.3. The app updates itself, or you can download it.
  2. Publish your project and visit the live site once.
  3. Open Analytics in the project sidebar.

How far back you can look depends on your plan: the latest 7 days on Free, 6 months on Pro, a year on Business, and 3 years on Enterprise. Pro and higher plans also get scheduled email reports with the same summary and breakdowns.

YOUR NEXT PROJECT

Give your idea a live URL.

Choose your model, build in a live preview, and publish with your project’s backend connected.

Download LayerwiseBuild your first app
View all posts →