Identifying anonymous visitors in Mautic

Mautic ties anonymous visits to a contact when a visitor submits a form or clicks a tracked email link, and it can match by IP address with real risks for shared networks. This page explains each method, the setup, and how to keep anonymous records from growing unchecked.

On this page

Identifying anonymous visitors in Mautic: when it matters

Marketing teams often open Mautic and see a long list of anonymous page visits with no name attached. They want to know which people those visits belong to, and whether the visits are worth acting on. Mautic records anonymous visits against a visitor record and links that record to a known contact in a few ways: when a visitor submits a form, when a visitor clicks a tracked link in an email Mautic sent, or when a visit is matched to a contact by IP address. Teams need this when they run nurture campaigns that depend on site behavior, when sales wants to see which accounts researched a product, or when they want a clear picture of what happened before a lead converted.

Each of these routes carries a different level of certainty. A form submission ties a visit to a person who typed in an email address, so it is the most reliable. An email click ties the visit to the recipient of that message, which is strong when the link was sent to that person. IP matching is the weakest: many people can share one address through an office network, a VPN or a mobile carrier, so a match can attach the wrong person to a visit. The IP method should be treated as a lead signal to review, not as proof of identity, and teams should confirm with their own traffic patterns how often shared addresses appear.

The design choices belong in the plan before the tracking script goes live, not after the database fills up. Decide which identification methods are enabled, how IP matching is used and for which audiences, and how long anonymous visitor records are kept. Each choice affects contact data quality, consent obligations and database size, so confirm the retention approach with your privacy and legal owners before launch. Changing these settings later leaves historical records in an inconsistent state.

Identification methods compared: forms, email clicks and identify by IP

This table compares three ways Mautic can turn an anonymous visitor into a known contact: form submissions, tracked email clicks and identify by IP. Read each column against the rows for trigger, reliability, consent and failure mode. The main takeaway is that forms and email clicks tie a visit to a person through data they supplied or received, while identify by IP is a probabilistic match that needs a consent review and testing on your own traffic before it is enabled.

AttributeForm submissionsTracked email clicksIdentify by IP
TriggerVisitor submits a Mautic form or a form embedded on a tracked page.Recipient clicks a tracked link in a Mautic email, which carries the contact's identity.A tracked page visit from an IP address that matches one already stored on a contact.
Match reliabilityHigh. The submitted email or ID ties the visit to one person.High for the clicked contact, but forwarded links can reach other people.Low to moderate. Offices, VPNs and mobile carriers share addresses across many people.
Privacy and consent questionsVisitor provides data knowingly. Confirm the form states purpose and consent wording.Click identifies a contact the email was sent to. Confirm the lawful basis and tracking notice in the email.Links a person to a record without their input. Confirm your legal basis and disclosure before enabling.
Data createdContact fields are filled in and the visit is attached to the contact record.The click and subsequent visits are attached to the contact who received the email.Anonymous visits attach to a contact that may be the wrong person.
Failure modeDuplicate contacts when a visitor enters a different email address than before.Forwarded or shared links attribute later visits to the original recipient.A company's shared address links one employee's visit to another contact's record.
When to enableAlways on for any site that collects data through Mautic forms.When emails carry tracked links and you need click-level history per contact.Only after testing on your own traffic and agreeing that the wrong-match risk is acceptable.

How an anonymous visit becomes a known contact

The flow starts when the tracking script records a visit from an unknown browser and stores it as an anonymous visitor record. Identification happens at one of three hand-offs: a submitted form, a click on a tracked email link, or an IP match against an existing contact. When one of these succeeds, the visit history is attached to that contact. When none does, the visit stays anonymous. Check the consent and retention settings at each step, since they decide what is stored and how long it stays.

Decision points where an anonymous visit is or is not linked to a contact.

Where identify by IP goes wrong for companies behind one IP

Identify by IP ties an anonymous visit to whatever address the visitor appears to come from, and many visitors share that address. The cards below cover how shared networks produce wrong matches, how to find them in visitor history, and what to verify before IP-matched contacts feed segments, scoring or sales follow-up.

Shared office and campus addresses

A corporate office, university or public library often sends all traffic through one public IP. A visit from one employee can attach to a contact record, and every later visit from that building can accumulate on the same record. Before trusting these matches, review whether the same IP shows many unrelated pages, roles or times of day. Ask IT teams whether the office uses a single egress address.

Mobile carrier NAT addresses

Mobile carriers often place many subscribers behind shared addresses that change over time. A phone visit can appear to come from a regional address that matches thousands of unrelated people. Treat matches from mobile traffic as weak, and check whether a single IP shows visits from several devices or cities within a short window. Mobile visitors are often better identified through a form or email click.

VPN and privacy relay exit points

VPN and privacy relay services route visitors through exit addresses that belong to the provider, not the visitor. A contact can be linked to a company they have never worked for, or to a location that does not match their profile. Look for IP addresses owned by hosting or VPN providers in visitor history, and do not attach company or location data from these records to sales follow-up.

Wrong company attribution in sales follow-up

When an IP matches a company record, a sales rep may contact a prospect about a visit that a different person made. The risk grows when company fields flow into segments or CRM sync. Before acting, confirm the match with a form submission or email click, and check whether the company field came from IP data or from the contact directly.

Scoring and segments built on IP matches

Points for page visits or segment membership based on shared-address visits can push unrelated people into campaigns. A campaign that sends pricing content to a contact because a colleague viewed the page inflates engagement and skews reporting. Review which segment filters and score triggers depend on anonymous-to-known matches, and consider requiring a direct action before a score change or campaign entry.

Pre-launch checks for IP matching

Before relying on identify by IP, sample the visitors view for a few weeks and label a set of matches as correct, shared, or unknown. Confirm with your network team which egress ranges belong to your own offices, and document which segments and campaigns may use IP-matched contacts. Review the Mautic documentation for the identify settings your version exposes, and confirm the behavior in a test instance before production use.

Setting up visitor identification in Mautic step by step

This sequence confirms that Mautic records visits on the pages that matter, identifies visitors through a form, checks that email clicks attach to the right contact, decides whether identify by IP is enabled, and confirms that visitor history lands on the correct contact record.

  1. Confirm the tracking script records page visits

    Start by checking that the Mautic tracking script (mtc.js) is present on every page where you want anonymous visits captured, including the pricing, product and contact pages that usually matter most for identification. Your web team or CMS administrator performs this check. Open each page in a private browser window with the browser's developer tools network tab open, confirm the tracking request fires, and then look for a new anonymous visit under the Mautic visitors view. The step is complete when every key page produces a visible record in Mautic.

  2. Build a form that identifies contacts

    Create a form in Mautic that asks for the minimum fields needed to identify a visitor, typically an email address, and map the fields to contact attributes. Place the form on a page that a known visitor is likely to reach, and make sure the form submission is recorded against the same tracked session. Your marketing operations lead owns the form design, and a Mautic administrator publishes it. The step is complete when a test submission creates or updates a contact and the form is attached to the right campaign or segment logic.

  3. Test that the form links the visit to the contact

    Submit the test form from a private browser window, then open the newly identified contact in Mautic and review its timeline. The page views recorded before the submission should now appear on that contact record, not on a separate anonymous entry. If the earlier visits remain anonymous, check that the tracking script and the form are on the same domain and that cookies are not blocked for the test session. The step is complete when the pre-submission activity shows on the contact.

  4. Verify email clicks resolve to the correct contact

    Send a test email to a test contact through your configured transport, click a tracked link, and confirm that the click is recorded on that contact's timeline. Check that the link in the email carries the correct contact identifier and that clicks from a second test contact do not appear on the first. Your email operations owner performs this test with a test address you control. The step is complete when each test click is attributed to the intended contact and no other.

  5. Decide whether identify by IP is enabled

    Review the identify-by-IP setting before enabling it. Matching an anonymous visit to a contact by IP address can attach activity to the wrong person when several people share one IP, as with offices, schools, mobile carriers or corporate proxies. Document the decision with your privacy and marketing leads, and record which audiences it may affect. If you enable it, test with two browsers on the same network to confirm how Mautic behaves. The step is complete when the setting matches a written decision and the shared-IP test has been reviewed.

  6. Check visitor history on the contact record

    Open an identified test contact and confirm that the visitor history, including page visits, form submissions and tracked clicks, appears in the contact's timeline in the expected order. Compare the contact's activity with the anonymous visits you generated earlier to confirm that nothing was dropped or duplicated. Your Mautic administrator performs this review, and the marketing lead signs off on the results. The step is complete when the contact history matches the test actions you performed.

  7. Set a routine to review anonymous records

    Anonymous visitor records accumulate with every tracked session, so decide how long they are kept and how they are cleaned up. Confirm with your Mautic operator that the scheduled cron jobs that handle cleanup are running on the staggered schedule described in the Mautic documentation, and check the database size and visitor counts at a regular interval you set. Ask your hosting or platform team to confirm the backup and retention settings that apply. The step is complete when a named owner has documented the review interval and the cleanup jobs appear in your scheduler logs.

Keeping anonymous visitor records from bloating the database

Anonymous visitor records grow faster than most teams expect because every tracked page view can create a contact record or extend one before anyone fills in a form. On a busy site, most of those records will never be identified, so the database fills with rows that carry little marketing value. Decide the retention policy before the tracking script goes live, not after the table has grown. Three decisions matter: how long anonymous visitor data is kept, how it is removed, and what is retained once a visitor is identified. Write these down with your privacy and legal teams, since they determine what the cleanup jobs must do.

Mautic depends on cron jobs for segment updates, campaign updates and campaign triggers, and the Mautic cron jobs documentation describes the background tasks that keep the instance healthy, including the scheduling that should be staggered across jobs. Confirm in that documentation, for your exact Mautic version, which cleanup tasks exist, what each one removes, and which retention options are configurable in the administration settings. Do not assume a cleanup task runs on its own. A missed or overlapping cron schedule can leave old anonymous rows in place, and a job that runs too often on a large table can compete with tracking writes for database resources.

Size the database and backups around the retained volume, not the initial import. Ask your Mautic partner or internal DBA to estimate row growth from a pilot period of real traffic, then plan storage, indexes and maintenance windows against that figure. Backups grow with the same data, so a longer anonymous retention period increases restore time and storage cost for every backup generation. Test a restore on a copy of the database to confirm that the retention settings and cleanup jobs behave as expected after recovery. Revisit the sizing each time the site's traffic or tracking scope changes.

Privacy, consent and access risks in visitor identification

Identifying a visitor links a browsing history to a named person, so the same setting that makes a campaign useful also creates a privacy record. The cards below cover who can see that history, how consent applies after identification, and how admin rights and audit trails should be scoped before the configuration goes live.

Who can view visitor histories

The visitor views in Mautic show pages, timestamps and linked activity for identified and anonymous records alike. Review which Mautic user roles can open contact timelines and the visitor views, because a marketing user with broad read access can see a named person's browsing pattern. Confirm the role matrix in your own instance and remove access that campaign builders do not need. Ask your partner or Mautic administrator to document who holds each role.

Mautic authentication docs

IP-linked data as personal data

A stored IP address tied to a contact record is personal data in most privacy regimes, and it can be linked to a named person once identification occurs. Decide whether your team will store raw IP addresses on contacts, for how long, and who may export them. Check whether a geographic lookup or anonymization setting changes what is kept, and record that decision in your data inventory.

Consent after identification

Once an anonymous visitor fills in a form or clicks an email link, Mautic attaches their earlier anonymous activity to a known contact. Confirm that the form's consent field, the contact's do-not-contact and channel preferences, and your lawful basis for tracking are all applied to the merged record. Test with a sample contact that the preference center still suppresses marketing after identification.

Scope of admin and configuration access

Settings for tracking, identification and IP lookup sit in the system configuration, which should be limited to a small named group. Separate the people who can change tracking settings from those who build campaigns. Require a second reviewer for changes that enable new identification paths, such as a new form or an identify-by-IP setting. Record the approved owner of each setting.

Audit trails for identification events

Your compliance team needs to answer which contact was identified, by which form or click, and who changed the configuration. Confirm what Mautic's audit log records in your version, how long logs are kept, and where they are shipped if you forward logs to a central store. Ask your partner to test that a configuration change and a merge of anonymous history both leave a traceable record.

Retention of anonymous records

Anonymous visitor records accumulate without a clear end date and can hold IP-linked activity for people who never identified. Define a retention period, a cleanup job, and a rule for deleting anonymous history when a visitor requests erasure and is later matched to a contact. Confirm the cleanup schedule with your operations team, since the background jobs run on cron.

Mautic cron jobs docs

How much effort and cost does visitor identification take?

What drives the effort of setting up visitor identification in Mautic?

The main drivers are the number of websites and domains that need the tracking script, the number of forms and email links that must identify contacts, the volume of email sent, and the decisions about IP matching and retention. Each added site or form adds configuration and testing, and each rule about how long anonymous records stay adds design work. Ask the provider to break the effort down by these items so you can see which ones your team's setup makes larger.

Who pays for what when a partner implements visitor identification?

The partner is paid for the written scope: reviewing the contact model, configuring the tracking script and forms, setting identify-by-IP rules, defining cleanup jobs, testing, and handing over documentation. Your organization pays its own staff time for decisions, access, and sign-off, and for the hosting and any third-party services the work depends on. Mautic itself is free software under GPL-3.0, so the license is not a line item, but the server, database, and mail infrastructure are.

Which costs are one-time and which recur after go-live?

One-time costs cover design, configuration, integration work, testing, and initial documentation. Recurring costs cover hosting, database growth, cron and queue operation, upgrades on the supported release line, backups, and any retainer for ongoing support. Anonymous visitor records can grow the database steadily, so the recurring cost of storage and cleanup is easy to underestimate. Ask the quote to separate these two groups and state what each recurring item covers.

What does your team need to provide before the work starts?

You will need named owners for marketing, the website, and the CRM, plus access to the Mautic instance, the websites where the tracking script runs, and the form and email tools in use. The team must also decide how much anonymous data you are willing to keep, whether identify-by-IP is acceptable for your audience, and how consent is recorded. Without these decisions, the implementation stalls while questions wait for answers.

Can an internal team set up visitor identification without outside help?

Yes, if the team has someone comfortable with server administration, the PHP and database stack, cron jobs, and Mautic's campaign and segment model. The harder parts are judgment calls: whether identify-by-IP could merge the records of several people behind one address, and how to set retention without losing useful history. Teams without these skills often benefit from a short external review of the design before they configure anything in production.

What is the risk of identifying visitors by IP address in Mautic?

Identify-by-IP can attach one visitor's activity to the wrong contact when several people share a corporate network, a university, or a mobile carrier address. That can send personal data to the wrong person and trigger incorrect campaign emails. Decide early whether to use this feature at all, and if you do, test it with shared networks you already know about. Your privacy and legal teams should review the decision as part of consent handling.

What should a written scope for visitor identification itemize?

A useful scope lists each website and form in scope, the forms and email links that identify contacts, the identify-by-IP decision with its reasoning, the retention and cleanup rules for anonymous records, the CRM and consent systems that receive or check data, and the testing approach. It should also name the deliverables, the handover documentation, the responsibilities of each party, and what is excluded. Ask for the exclusions in writing, because they often explain the difference between two quotes.

Does DeployOpen provide a fixed quote for this work?

DeployOpen usually agrees on fixed-scope engagements with scope, deliverables and timelines confirmed in writing before work starts, and it does not publish a price list. A quote follows from the written scope, so the inputs above (sites, forms, email volume, IP decisions, retention and existing CRM and consent setup) are what determine it. Ongoing support and upgrades can be arranged as a retainer after the initial work.

Limits to confirm in your Mautic version and environment

Visitor identification in Mautic depends on the release you run, how your proxy and hosting pass client addresses, how your forms and CMS carry identifiers, and how much anonymous data your database and cron schedule can absorb. Each card below is a limit to confirm against your own version and traffic before you rely on the method.

Identification methods in your release

Confirm which identification paths your Mautic version supports, including form submissions, email click tracking and any IP-based matching, and how each one is switched on in your configuration. Behavior can differ between the 5.x, 6.x and 7.x lines, so check the settings page of the exact release you run rather than copying a setup from older guides. Record the result in your implementation notes so the marketing team knows which signals create known contacts.

Current active release line
7.2
Cron jobs docs

IP matching behind your proxy

IP-based identification only works if Mautic sees the real visitor address. Behind a load balancer, reverse proxy or CDN, the address may be the proxy's own, which would attach many visitors to one contact. Confirm how your web server and proxy forward client headers, which trusted proxy settings Mautic needs, and whether your hosting provider changes the address before it reaches the application. Test with two browsers on different networks before enabling it.

Shared addresses at offices and carriers

Companies, universities and mobile carriers often place many people behind one public IP. Confirm how your Mautic setup handles a single address that maps to several people, because a visit from one employee can be attributed to a contact who never visited. Decide whether IP matching is acceptable for your audience or limited to flows where a form or email click has already identified the person, and document that decision for your marketing and legal reviewers.

Identifiers from your CMS and form tools

Mautic can only link an anonymous visit to a contact if the identifier reaches it. Confirm whether your CMS, form builder or landing page tool passes the tracking cookie and the submitted email into Mautic, and whether it renders the Mautic form or script in a way that keeps the visitor identity intact. Check each form type separately, since a plugin update or theme change can drop the identifier without any visible error.

Anonymous record volume in the database

Anonymous visitor records accumulate with every tracked page view, which can grow the contact and page-hit tables faster than your known audience. Confirm how your database sizing, indexes and backups handle that growth, and how often the cleanup and background jobs run under your cron schedule. Stagger the jobs as the cron documentation advises, and confirm the purge rules you need before traffic peaks, not after the tables slow down.

Segments, campaigns, triggers
3 cron tasks
Cron jobs docs

Cron timing for identification

Some identification effects, such as segment membership or campaign triggers that depend on a newly identified contact, only apply when the relevant cron job runs. Confirm the frequency of each job on your server, and whether a delayed run affects the first email or the first campaign step a newly known contact receives. Compare the schedule with the time between a form submission and the follow-up message you have planned.

Consent and retention rules for anonymous data

Keeping anonymous tracking records raises questions about how long they are stored and whether they are tied to personal data. Confirm with your privacy and legal reviewers how long anonymous visit data may be retained, what happens when an anonymous record is later identified, and whether your consent banner covers the tracking script. Your identification design should follow those answers, not the other way round.

How DeployOpen scopes visitor identification in Mautic

DeployOpen plans, builds and hands over self-hosted Mautic setups inside your own infrastructure, including how anonymous visitors are matched to known contacts. We start from the identification rules your marketing and privacy teams agree on, then configure, test and document them so your team can run them after handover.

How we scope

  • The written scope lists which forms, email click paths and tracking points may identify a visitor in your instance.
  • We record whether identify-by-IP is in use and which networks, offices or proxies could share one address.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any configuration begins.

How we build

  • We configure identification rules, tracking script placement and anonymous record handling on your Mautic instance.
  • We test identification with known test visits, shared-IP cases and form submissions to confirm contacts merge as designed.
  • We set up cleanup and retention settings so anonymous visitor records do not grow without limit in the database.

How we hand over

  • You receive documentation of each identification rule, its trigger, its owner and the reason it was chosen.
  • We walk your marketing operations and privacy staff through the visitors view, contact timelines and cleanup jobs.
  • Your team gets a list of cron jobs and checks needed to keep anonymous record processing running after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for your Mautic instance.
  • A retainer can cover re-testing identification rules after form changes, Mautic upgrades or tracking script updates.
  • Ask us to confirm support terms, response expectations and review cadence in the written quote before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.