How to track signups and free trials
Tracking signups well means recording each step a new user takes, confirming the ones that matter on your server, and attaching revenue when a trial becomes a paying account. In Linqry that's a handful of events, two goals and one funnel, plus a server-side event for each payment.
Updated · 6 min read
Map the signup journey first
Before writing code, list the moments between interested and paying, and decide for each one what Linqry should record and where it should come from:
| Moment | What to record | Send it from | Use it for |
|---|---|---|---|
| Pricing page viewed | Page view of /pricing | Automatic | Funnel step |
| Signup form opened | Page view of /signup | Automatic | Funnel step |
| Form submitted | signup-submitted | The browser, on click | Spotting form errors |
| Account created | signup-completed | The browser, after your API confirms | Goal and funnel step |
| Account created, confirmed | account-created | Your server | A count that ad blockers can't remove |
| First key action | project-created | The browser, after success | Activation goal and last funnel step |
| Trial becomes paid | trial-converted with revenue | Your server, from the payment webhook | Revenue by source |
| Renewal | invoice-paid with revenue | Your server | Revenue totals |
Two constraints shape this plan. Goals and funnels follow one browser visitor through one day, because visitor IDs rotate at midnight UTC. And events sent from your server get a different visitor ID from the person's browser, so they can't be goal conversions or funnel steps; they count under custom events and revenue instead.
Count a signup only when it succeeds
The most common mistake is counting the click instead of the account. An event on the submit button fires on every attempt, including ones that fail validation or hit an email that's already registered. Send the completion event after your API says yes:
// Signup form submit handler
async function onSubmit(form) {
window.linqry('signup-submitted'); // every attempt
const res = await fetch('/api/signup', { method: 'POST', body: new FormData(form) });
if (!res.ok) return showError(await res.json());
window.linqry('signup-completed', { plan: 'trial', method: 'email' }); // successes only
location.assign('/welcome');
}The tracker sends events with the browser's sendBeacon, which is built to deliver data while a page unloads without delaying the next navigation, so the redirect on the following line doesn't lose the event. Keep properties to context such as plan and signup method; never send an email address, name or user ID.
If your form posts to the server and redirects with no JavaScript in between, use the page it lands on instead. A path goal on /welcome counts visitors who reach it, which only happens after a successful signup. Avoid adding ?signup=1 to that redirect and then removing it with history.replaceState: Linqry counts a change of query string as a new page view, so the welcome page can be counted twice.
Build the goals and the funnel
- Create the signup goal
On Goals, choose + Add goal, pick Event and enter
signup-completed. Goals are computed from stored events, so it fills in past dates if the event was already being sent. - Create the activation goal
Add a second event goal for
project-created, or whatever your first key action is. Accounts that never activate are usually the leak most worth fixing. - Build the funnel
On Funnels, choose + Add funnel and add the steps in order: Path
/pricing, Path/signup, Eventsignup-completed, Eventproject-created. A funnel can have up to 10 steps; four or five read best. - Read it with filters
The Goal and Funnel tabs on the dashboard follow its date range and filters, so you can compare devices, countries, referrers and UTM sources.
Path steps match the exact path without the query string, so /signup doesn't match /signup/ or /signup/step-2, and event steps match the exact name, including case. If signup spans several screens, the onboarding funnel guide shows how to break it into steps and read the drop-off.
Confirm signups on your server
Browser events can go missing: an ad blocker stops the tracker, a visitor closes the tab, a mobile connection drops. For a number you report to your team, also send an event from the place where the account is actually created, your backend, using the site's write key:
// One helper for every server-side event (any runtime with fetch).
async function sendToLinqry(payload) {
const res = await fetch('https://linqry.com/api/track', {
method: 'POST',
headers: {
authorization: 'Bearer ' + process.env.LINQRY_WRITE_KEY,
'content-type': 'application/json',
},
body: JSON.stringify({ siteId: process.env.LINQRY_SITE_ID, ...payload }),
});
if (!res.ok) throw new Error('Linqry answered ' + res.status);
}
// After the new user is saved. Queue it as a background job, or at least
// don't await it, so a slow or failed analytics call can't fail the signup.
sendToLinqry({
event: 'account-created',
url: user.landingUrl || undefined, // stored on arrival, keeps utm_* tags
referrer: user.landingReferrer || undefined,
properties: { plan: 'trial', method: user.signupMethod },
}).catch((err) => console.error(err));Give it a different name from the browser event, so one signup never counts twice. Then compare the two: if Top custom events shows 410 signup-completed and 445 account-created for the same month, the browser tracker saw about 92% of real signups. That ratio tells you how far to trust browser-based conversion rates, and it's worth checking every few months.
A server event carries only the source you send. Pass the landing URL and referrer you stored when the visitor arrived, and you can filter account-created by UTM source or referrer to count real signups per channel; without them it's counted as direct. Its country and device describe your server, not the user. The server-side revenue guide shows how to capture the landing URL.
Sign-in providers and hosted checkouts can change a visit's source
Signing up with a social login or paying on a hosted checkout page sends the visitor to another site and back. If that site passes a referrer on the way back, the returning page view arrives with the provider's domain as its referrer. Linqry's source tables use the first referrer of each visit, so a visit that began from a real source keeps it. But events after the return, such as signup-completed, carry the provider's domain, so goal conversions filtered by source credit the provider. A visit that started with no referrer at all takes the provider as its source, and a domain containing google even counts as Search.
Do one test signup with each provider and open your visit's timeline on the Users page. If the provider's domain appears there, count signups per channel with the server event and its stored landing URL rather than with filtered goals.
Trials: what Linqry can and can't connect
Visitor IDs change every day, so Linqry can't connect a trial that starts on a Monday to the payment two weeks later. Measure trial-to-paid conversion in your billing system or database, where you know who each customer is. Use Linqry for what it sees well: which sources bring signups that activate on day one, and, once you send payments with the stored source, which bring paying customers.
If your trials run on Stripe subscriptions, the webhook events line up neatly. customer.subscription.trial_will_end arrives three days before a trial ends, which is useful for your reminder email rather than for analytics. A trialing subscription becomes active when the customer makes the first payment, and invoice.paid arrives whenever an invoice is paid. Forward paid invoices to Linqry, naming the first one differently:
// In your Stripe webhook handler, after verifying the signature
// and skipping event IDs you've already processed
if (event.type === 'invoice.paid' && event.data.object.amount_paid > 0) {
const invoice = event.data.object;
const user = await db.users.findByStripeCustomer(invoice.customer); // your own lookup
const firstPayment = !(await db.payments.existsForUser(user.id)); // your own records
await sendToLinqry({ // the helper defined above
event: firstPayment ? 'trial-converted' : 'invoice-paid',
url: user.landingUrl || undefined,
referrer: user.landingReferrer || undefined,
properties: { plan: user.plan },
revenue: invoice.amount_paid, // integer, smallest currency unit
});
}A separate trial-converted event gives you conversions per month in Top custom events, and filtering by UTM source shows which channels' trials paid; renewals still add to revenue. Linqry's API has no idempotency key, so record each Stripe event ID before forwarding it, and retry only on 429 and 5xx responses.
Read the numbers
| Step | Visitors | From previous step |
|---|---|---|
/pricing | 3,200 | - |
/signup | 960 | 30% |
signup-completed | 410 | 43% |
project-created | 215 | 52% |
Read it from the bottom. Almost half of new accounts (48%) never reach the first key action, which is often the cheapest leak to fix, because those people already signed up. Next comes the form: 57% of people who open the signup page leave without an account. Filter by device to see whether phones do worse, and by UTM source to see whether one channel sends people who were never going to sign up.
Then put the server count beside it. If account-created says 445 for the month, the browser saw 410 of them, so the real signup rate is a little higher than the funnel shows.
Common mistakes
- Counting attempts as signups. A
data-linqry-eventattribute on the submit button fires on every click. - The same name from the browser and the server. One signup is counted twice; use two names.
- A server event as a funnel step. It never matches the browser visitor, so the step reads zero.
- Trial-length funnels. A funnel from signup to a payment two weeks later shows nearly everyone dropping off. Keep funnels to the first session.
- Personal data in properties. Plan and signup method are enough; emails, names and user IDs don't belong in analytics.
- Counting your own test signups. Switch off your browser before testing, as described in exclude your own visits.
Frequently asked questions
Should I track signups in the browser or on the server?
Both, under different names. The browser event, sent after your API confirms the account, powers goals and funnels. The server event is the reliable count and can carry the source you stored when the visitor arrived.
Why doesn't my server-side signup event count as a goal conversion?
Goal conversions count visitors with a page view in the date range, and events from your server get a different visitor ID from the person's browser. Server events appear under Top custom events and, when they carry revenue, in the revenue reports.
Can Linqry show my trial-to-paid conversion rate?
Not directly, because a trial lasts longer than a day and visitor IDs rotate daily. Measure it in your billing system, and send payments to Linqry with the source you stored at signup to see which channels bring paying customers.
How do I track signups that use Google or GitHub sign-in?
The same way: send signup-completed from the browser once your app has created the account, with the method as a property. Then check a test signup's timeline in case the provider passes a referrer on the way back.
Sources
- MDN Web Docs: Navigator sendBeacon() method (delivery while the page unloads) (checked Nov 14, 2026)
- Stripe Docs: Using webhooks with subscriptions (trial_will_end, trialing to active, invoice.paid) (checked Nov 14, 2026)
- Stripe API reference: The Invoice object (amount_paid, customer) (checked Nov 14, 2026)
Related
An onboarding funnel follows new users from their first visit through signup to the moment they get value from your product, and shows how many you lose at each step. Building one takes three things: a short list of steps, an event for each step, and a habit of comparing the numbers before and after every change.
Server-side conversion tracking means your backend, not the visitor's browser, reports that a payment happened. You send the event from the place where money is confirmed, usually a payment webhook, so the number in your analytics matches your billing system and can't be faked from the browser console.
Turn pages and events into conversion goals and multi-step funnels, and read conversion and drop-off for any date range.
Linqry shows a SaaS team which channels bring signups and paying customers, and where new users drop out between the pricing page and their first key action. It's cookieless web analytics with funnels, goals and revenue attribution, at $5 per site per month.
An attribution model is the rule that splits the credit for a sale between the visits that led to it. The quickest way to understand the common models is to run one customer journey through each of them, which is what this guide does before showing what Linqry reports and why.
See your own funnels and revenue by channel
No card required · 30-day trial · No cookies