An anonymous first session has to become a real signup before Firebase's 30-day cleanup deletes its account. The cleanup rule is stated as "Firebase to automatically delete anonymous accounts older than 30 days," according to Firebase. So the guest-to-account step is a timing task as well as a form task.
Key takeaways
- a guest session carries over while its account still exists, so set the timing check first.
- the Firebase limit names anonymous accounts older than 30 days, so check your own platform's rule too.
- prefill the email when one is already on file, and plan the form for visitors who have none.
- keep each page to one thing, finish on a Confirmation page, and record the login event at sign-in.
In a linear signup, the finish message matters too. For a linear service, GOV.UK advises a Confirmation page rather than a notification banner, according to GOV.UK. The checks below follow that order, so each one sits in the step where it applies.
Why anonymous first sessions need a deadline
A guest session is worth carrying over only while the account behind it still exists. A plan can treat the first session as a warm-up and leave the registration form for later. That order can leave a visitor with a session that has no account to attach to, so the deadline belongs in the plan from the start. The checks below are grouped by the point in the signup where each one applies, which keeps the work in a sensible order.
The deadline in this guide comes from a single named service, and its anonymous authentication page is the source, according to Firebase. Treat that figure as the limit for guest sessions on that service. Read the documentation of any other service you use before you assume it follows the same timing.
Your product may not run on that service at all, so the first job is to find out which system holds each guest account. Ask the engineer who owns guest sessions to name the system, then write the answer beside each entry point in your list. Without that note, the team cannot tell which cleanup rule applies to which session.
A simple way to organise the work is to split it into before, during and after signup. Before signup is where the clock runs, so checks that touch the clock come first. After signup covers the message the visitor sees once the account is real. Keep the three groups in that order when you assign owners.
Some pages used here carry licence notices, and you should keep them with any copied wording. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License, according to Firebase. The Google for Developers page also states its licence, according to Google for Developers, so cite each page separately.
The table below gives the quoted wording used for each publisher.
| Publisher | Source page | Quoted wording |
|---|---|---|
| Firebase | Authenticate with Firebase Anonymously Using JavaScript | Firebase to automatically delete anonymous accounts older than 30 days. |
| GOV.UK | Notification banner | Use a Confirmation page in a linear service to tell users that they’ve finished using the service instead of a notification banner. |
| Stripe | Checkout Session object | Use this parameter to prefill customer data if you already have an email on file. |
| Google for Developers | Recommended events | Send this event to signify that a user has logged in to your website or app. |
Before signup: the 30-day cleanup window
Check the 30-day cleanup window
Start with the guest accounts your product creates before any registration step. Write down each entry point, such as a trial start, a sample project or a demo session, since each one may create an account that the cleanup rule could reach. Keep that list as the working document for every check in this section.
Firebase is the platform named in the quoted rule, according to Firebase, so the age test is written for its accounts. For each entry on your list, ask whether that system holds the guest account and how long the account can exist before a signup happens. Note the answer in plain words beside the entry.
Your check is simple. For each entry point, estimate the longest gap that could pass between the guest session and the registration step. Mark any entry where that gap could go past 30 days, because those guest accounts are the ones the cleanup rule describes.
Put the marked entries on a calendar before launch, and give each one a named owner. Ask that owner to review the list whenever the guest flow or the sign-in path changes. A list that nobody reviews after launch can fall out of step with the product.
When a guest account nears the limit, the team needs to know whether a registration has already happened. Write a short note on what the flow does at that point, and check the note with the engineer who owns the account code. Keep the note with the list so both stay together.
Before signup: prefilling the email you already hold
Prefill the email if one is already on file
The Stripe Checkout Session reference states the rule in these words, "Use this parameter to prefill customer data if you already have an email on file," according to Stripe. Your task is to find every place your product already holds a visitor's email before checkout. Examples to check include a newsletter form, a team invitation or an earlier demo request.
Write each source down with the place where the email is held, and note whether that place is available at checkout. A stored address that cannot reach the checkout step needs a separate fix, so mark it. Give that fix its own owner, since the prefill step cannot use the address without it.
Where the email is available, pass it into the checkout step before the visitor reaches the email request. Keep the request for visitors who have no address on file. Make sure the two paths do not both ask the same question.
The opposite case is documented too: "If not provided, customers will be asked to enter their email address," according to Stripe. Plan the form for both cases, so the team knows which visitors reach the email request.
Your check is to run both paths with one visitor who has an email on file and one who does not. Write down what each visitor sees on the page, and compare the two notes before launch.
During signup: keep the journey linear
Keep one thing per page
The GOV.UK notification banner guidance states that "For a linear service, it will usually make sense to stick to the ‘one thing per page’ approach, and avoid using a notification banner," according to GOV.UK. That sets the default shape of the signup as a sequence of pages.
The same guidance says "Using a notification banner is unlikely to be the right approach in a linear service - for example, a service that lets the user register or apply for a thing," according to GOV.UK. A signup that lets a visitor register matches that example, so the flow should stay linear.
Map the signup as a sequence of pages, and give each page one job. Where the flow allows, give each request its own page, so a visitor sees one question at a time. Keep the sequence in the same order on every path, so the team can check it in one pass.
Where a page must show a message, keep it short and place it beside the one thing it concerns. Review each page in turn, asking whether the visitor could mistake the message for a second task. A message that reads as a task should move to its own page or be removed. For more on messages after signup, see Status message rules after signup: 5 checks.
Your review question is whether a visitor can move from one page to the next without a second request competing for attention on any page. Walk the path yourself from a clean guest session, and write down each page that asks for more than one thing.
During signup: the login event to record
Record the login event when the user signs in
The Google for Developers reference on recommended events describes the login event this way: "Send this event to signify that a user has logged in to your website or app," according to Google for Developers. That wording ties the event to the sign-in moment.
Your task is to find the point in the sign-in code where a returning user is recognised, and to record the event at that point. Write the location in your list so the engineer who owns sign-in can check it. Keep the location beside the matching guest-session entry in your list.
Do not place the event at the first visit, since the wording ties it to a user who has logged in. A visitor who has started a product session has not signed in yet, so the event waits for the sign-in moment.
Decide before launch how the event will identify the account from the earlier guest session. Write that decision down with the name of the owner who made it. A decision recorded in advance is easier to check than one made after the first report.
Keep a copy of the check result with your entry list. For the sign-in path itself, see Test signup authentication with 5 steps before release.
After signup: the confirmation page
End with a Confirmation page
The finish message is the last part of the signup, so give it its own page. GOV.UK says to use a Confirmation page in a linear service to tell users that they’ve finished using the service, according to GOV.UK. That page should mark the end of the signup, rather than a message on the form.
Give the Confirmation page one purpose: tell the visitor the signup is complete. Keep any second request off that page, because the page exists to finish the journey. A clear finish gives the team one place to check that the signup ended.
Check what the visitor sees after a guest session becomes a registered account, and write the wording before the page is built. Use plain words that name the next step in the product. Keep the wording short enough to read in one pass.
Decide where the product session continues after the Confirmation page, and record that destination in the same list. A visitor who finishes signup should not have to guess where the session went. Note the destination beside the finish page entry.
Review the finish page with a fresh guest session before launch, and note any screen that asks for the email again. Treat each repeated request as a gap to fix before the page goes live.
Your next step is to list every place your product creates guest or anonymous accounts, and to note which ones could be older than 30 days before the user registers.
Related guides
FAQ
How long does Firebase keep anonymous accounts?
Firebase deletes anonymous accounts older than 30 days, according to Firebase. That rule is stated for Firebase, so check your own platform's documentation before you assume the same limit. Plan each guest session around that date, rather than assuming the account stays.
Should a signup use a notification banner or a Confirmation page?
Use a Confirmation page to tell the visitor that signup is finished. Keep that advice tied to linear services, as the guidance states it.
How can I avoid asking for an email twice at checkout?
Prefill the email when you already hold it, and keep the email request for visitors who do not, according to Stripe. Your check is to run the flow with one visitor who has an email on file and one who does not.
Which event marks that a user has logged in?
Google's login event signifies that a user has logged in to a website or app, according to Google for Developers. Decide before launch how it identifies the account from the guest session. Keep a note of which code path sends it.
Does the 30-day rule apply to every platform?
The 30-day rule is stated for Firebase, according to Firebase, so check each other platform's own documentation before you apply it. Your check is to confirm which system holds each guest account. Write the answer next to each entry in your list.
Where should I start the audit?
Start with the entry points a visitor can reach before registering, because those are where the timing question arises. Keep a short note of the earliest guest account each entry can create. Share the note with the engineer who owns guest sessions, so the team agrees on it before launch.