Skip to main content

Event-Driven Marketing Automation Triggered by WiFi Presence

This architectural reference guide provides senior IT and operations leaders with a blueprint for designing event-driven marketing automation triggered by WiFi presence. It covers infrastructure requirements, latency management, deduplication strategies, and privacy compliance frameworks necessary for enterprise-scale deployments.

📖 5 min read📝 1,005 words🔧 2 examples3 questions📚 8 key terms

🎧 Listen to this Guide

View Transcript
Welcome to the Purple Technical Briefing Series. I'm your host, and today we're covering a topic that sits at the intersection of network infrastructure and revenue generation: WiFi presence automation — specifically, how to architect event-driven marketing systems where a guest's physical presence, detected through your WiFi network, becomes the trigger for personalised, real-time marketing campaigns. If you're a marketing technologist, a network architect, or a venue operations director, this briefing is for you. We'll move through the core architecture, the latency considerations that separate a good implementation from a frustrating one, the deduplication problem that every team underestimates, and the privacy frameworks you cannot afford to ignore. Let's get into it. --- SECTION ONE: WHY PRESENCE IS THE MOST VALUABLE MARKETING SIGNAL YOU'RE ALREADY COLLECTING Let me start with a question. Your venue — whether it's a hotel, a retail chain, a stadium, or a conference centre — already has WiFi infrastructure. You're already generating presence events every time a device associates with an access point. The question isn't whether you have the data. The question is whether you're doing anything useful with it. Traditional digital marketing operates on intent signals: someone searches for a product, clicks an ad, opens an email. Those are valuable, but they're all happening outside your venue. WiFi presence automation operates on a fundamentally different and arguably more powerful signal: physical proximity. The guest is already there. They've already made the decision to visit. Your job is to make that visit more valuable — for them and for you. The architectural challenge is converting a raw network event — a device association, a probe request, a DHCP lease — into a contextually relevant, personalised marketing action within a timeframe that's still useful. In a retail environment, that window might be two to five minutes. In a hotel, you have the entire stay. The architecture has to be designed around those constraints from day one. --- SECTION TWO: THE FOUR-LAYER ARCHITECTURE Let me walk you through the reference architecture we recommend for enterprise WiFi presence automation. It has four distinct layers, and getting the boundaries between them right is critical. Layer one is the Network Layer. This is your physical infrastructure: access points, controllers, and the RADIUS server that handles authentication. The key design decision here is what events you're surfacing from the network. You have three options. First, probe requests — passive signals from devices scanning for known networks. Second, association events — the moment a device successfully connects to your SSID. Third, authenticated session events — where you have a confirmed user identity tied to a device, typically via a captive portal login or 802.1X authentication. My strong recommendation is to build your automation on authenticated session events, not probe requests. Here's why. Since iOS 14 and Android 10, both Apple and Google have implemented MAC address randomisation by default. A device scanning for networks will present a randomised MAC address that changes per network and, in some implementations, per session. If you're building a presence detection system on probe-based MAC tracking, you're building on sand. Association events tied to a captive portal login give you a persistent, consent-linked identifier that survives MAC randomisation. Layer two is the Presence Engine. This is where raw network events are transformed into meaningful presence signals. Purple's platform handles this through the Event Stream Engine, which performs four critical functions. Probe detection and filtering — separating genuine dwell from drive-by signals. Association event processing — capturing the moment of authenticated connection. Dwell time calculation — determining how long a device has been present before a trigger fires. And deduplication — preventing the same device from triggering the same campaign multiple times within a suppression window. The deduplication component deserves particular attention. In a busy retail environment, a single device might associate, disassociate, and reassociate with your network multiple times in an hour as the guest moves between areas of the store. Without a robust deduplication engine, you'll fire the same welcome message three times in forty minutes. That's not personalisation — that's harassment. The suppression window needs to be configurable per campaign type, per venue type, and per user segment. Layer three is the Automation Layer. This is where business logic lives. In Purple's implementation, this is LogicFlow — a visual workflow engine that lets marketing and operations teams define trigger conditions, branching logic, and action sequences without writing code. The key architectural principle here is that the automation layer should be decoupled from the network layer. Changes to your campaign logic should not require changes to your network configuration, and vice versa. This separation of concerns is what allows marketing teams to iterate on campaigns without involving IT for every change. Layer four is the Delivery Layer. This is where the triggered action actually reaches the guest: an email, an SMS, a push notification, a webhook to your CRM, or an update to your loyalty platform. The critical design consideration here is that the delivery layer must respect the consent and preference data captured at the captive portal. If a guest opted into SMS but not email, your automation must honour that. This isn't just good practice — under GDPR and PECR, it's a legal requirement. --- SECTION THREE: LATENCY — WHAT'S ACCEPTABLE AND WHAT ISN'T Let me give you the numbers, because this is where a lot of implementations go wrong. End-to-end latency in a WiFi presence automation system is the time from a device associating with your network to the guest receiving the triggered communication. In a well-architected system on modern infrastructure, this should be achievable in under ten seconds for most venue types. But acceptable latency varies significantly by context. In a transport hub — an airport or a rail terminal — you might have a guest who connects to WiFi for three minutes while waiting for a gate change. Your trigger needs to fire within sixty to ninety seconds of connection, or the moment has passed. In a hotel, where the guest will be on-property for twelve to forty-eight hours, a ten-second or even thirty-second latency is entirely acceptable. The latency budget breaks down across three components. Network-to-platform latency: the time for the association event to travel from the access point controller to the Purple platform. In a cloud-connected deployment with a well-configured controller, this should be under one second. Platform processing latency: the time for the Event Stream Engine to classify the event, check deduplication, evaluate automation conditions, and dispatch the action. In Purple's architecture, this is typically under two seconds. Delivery channel latency: the time for the downstream channel — email provider, SMS gateway, push notification service — to deliver the message. This is the component you have least control over, and it's where most of the variance lives. SMS via a Tier 1 gateway is typically under five seconds. Email delivery can range from two seconds to two minutes depending on the recipient's mail server. The practical implication: if you need sub-ten-second end-to-end delivery, SMS or push notifications are your only reliable options. Email is not a real-time channel, and you should not architect your presence automation as if it were. --- SECTION FOUR: THE DEDUPLICATION PROBLEM IN DEPTH I want to spend a few minutes on deduplication because it's the component that most commonly causes production issues in presence automation deployments. The core problem is this: a single physical visit can generate dozens of network events. A guest walks into your hotel, connects to WiFi in the lobby, walks to their room, the device briefly loses signal and reconnects, they go to the restaurant and the device roams to a different access point. From the network's perspective, that's potentially four or five association events. From the guest's perspective, it's one visit. Your deduplication engine needs to operate at two levels. Device-level deduplication collapses multiple association events from the same device within a session window into a single presence event. A session window of fifteen to thirty minutes is appropriate for most venue types — if a device disassociates and reassociates within that window, it's treated as a continuation of the same session, not a new visit. Campaign-level deduplication prevents the same campaign from firing for the same guest within a suppression window. This window should be configurable per campaign. A welcome message should have a suppression window equal to the length of a typical stay — seven days for a hotel, twenty-four hours for a retail store. A time-sensitive offer might have a suppression window of just four hours. A loyalty points reminder might suppress for thirty days. The third deduplication consideration is cross-device deduplication. If a guest has previously connected to your network on their laptop and their phone, and both devices are present simultaneously, you should fire the campaign once, not twice. This requires a profile-linking capability — typically implemented via the email address or loyalty ID captured at the captive portal — that associates multiple devices with a single guest profile. --- SECTION FIVE: PRIVACY FRAMEWORKS — THE NON-NEGOTIABLES Let me be direct about the regulatory landscape, because I've seen implementations that were technically excellent but legally problematic. Under GDPR and the UK GDPR, processing a guest's location data — which is what WiFi presence detection effectively constitutes — requires a lawful basis. The two most commonly applicable bases are consent and legitimate interest. Consent is the cleaner option: the guest explicitly agrees to presence-based marketing at the captive portal. Legitimate interest requires a documented balancing test demonstrating that your interest in sending the communication does not override the guest's privacy rights. For most marketing use cases, consent is the safer and more defensible basis. PECR — the Privacy and Electronic Communications Regulations — adds an additional layer for electronic marketing. Sending a marketing SMS or email triggered by WiFi presence requires prior consent from the recipient, regardless of your GDPR lawful basis. This consent must be specific, informed, and freely given. A pre-ticked checkbox on a captive portal does not constitute valid PECR consent. On the technical side, MAC address randomisation has effectively ended the era of passive, consent-free device tracking. Any architecture that relies on tracking randomised MAC addresses without user consent is both technically unreliable and legally questionable. The correct approach is to use the authenticated session identifier — the email address or loyalty ID — as your primary tracking key, with the MAC address used only as a session-level correlation handle. PCI DSS compliance requires that your guest WiFi network be completely isolated from any network segment that processes payment card data. This means VLAN separation at minimum, with firewall rules preventing any traffic flow between the guest network and the payment network. Your presence automation platform should sit on or connect to the guest network segment, never the payment network. --- SECTION SIX: IMPLEMENTATION RECOMMENDATIONS AND COMMON PITFALLS Let me give you the five recommendations I give every client before they go live with a presence automation deployment. First: start with your data model, not your campaigns. Before you configure a single automation rule, define your guest identity model. What is the primary identifier? How do you handle multiple devices per guest? How do you link WiFi identity to your CRM or loyalty platform? Getting this wrong at the start creates technical debt that's expensive to unwind. Second: instrument your deduplication before you go live. Run the system in observation mode — logging events without firing campaigns — for at least two weeks before launch. This gives you real data on your association event frequency, your typical session patterns, and your re-visit rates. Use this data to calibrate your suppression windows. Third: design your consent flow before your campaign flow. The captive portal is not just a network access mechanism — it's your consent capture point. Every data processing activity you intend to perform must be disclosed and consented to at this point. Work with your legal team to ensure the consent language is specific enough to be valid under PECR. Fourth: test your latency under load. A presence automation system that performs well with ten concurrent connections may degrade significantly with a thousand. Load test your event processing pipeline at two to three times your expected peak concurrent device count before going live at a major event or peak trading period. Fifth: build suppression management into your operations workflow. Marketing teams will want to run multiple campaigns simultaneously. Without a clear suppression hierarchy — which campaign takes priority when multiple triggers fire simultaneously — you'll end up with guests receiving three messages in five minutes. Define the hierarchy before campaigns go live, not after the first complaint. --- RAPID-FIRE Q&A Question: Can I use WiFi presence automation without a captive portal? Answer: Technically yes, using probe-based detection, but practically no for any compliant marketing use case. Without a captive portal, you have no consent capture mechanism and no persistent guest identifier. You're tracking randomised MACs with no legal basis. Don't do it. Question: What's the minimum access point density for reliable presence detection? Answer: For dwell time accuracy within five metres, you need overlapping coverage from at least three access points. For zone-level presence — knowing a guest is in the store, not which aisle — one AP per zone is sufficient. Design your AP density to match your use case. Question: How do I integrate Purple's event stream with my existing CRM? Answer: Purple supports webhook-based event dispatch and native integrations via Zapier and direct API. For enterprise CRM platforms like Salesforce or HubSpot, the recommended approach is a webhook to a middleware layer that handles data transformation and CRM API calls. This keeps the integration loosely coupled and easier to maintain. --- SUMMARY AND NEXT STEPS WiFi presence automation is one of the highest-ROI applications of your existing network infrastructure. The technology is mature, the regulatory framework is clear, and the implementation patterns are well-established. The difference between a successful deployment and a problematic one comes down to three things: a robust identity model that survives MAC randomisation, a deduplication engine calibrated to your specific venue and visit patterns, and a consent architecture that satisfies both GDPR and PECR requirements. If you're evaluating Purple for this use case, the two components to focus on are the Event Stream Engine for presence signal processing and LogicFlow for automation logic. Both are designed to operate at enterprise scale with the configurability you need to serve multiple venue types and campaign types from a single platform. For your next steps: review your current captive portal consent language against PECR requirements, audit your existing WiFi infrastructure for AP density adequacy, and define your guest identity model before touching any automation configuration. Thank you for listening to the Purple Technical Briefing Series. Full documentation, architecture guides, and integration references are available at purple.ai.

Executive Summary

header_image.png

For modern venues—from retail chains and hospitality groups to large-scale stadiums—the existing wireless network infrastructure represents an underutilised asset for real-time customer engagement. Event-driven marketing automation triggered by WiFi presence transforms passive network connectivity into an active engagement channel. This guide provides a definitive architectural blueprint for implementing presence-based automation, focusing on the technical mechanics of converting raw network events into contextually relevant, compliant marketing actions. By bridging the gap between network infrastructure and marketing technology, IT leaders can deliver measurable business impact while maintaining stringent privacy and security standards.

Listen to the executive briefing podcast:

Technical Deep-Dive: The Four-Layer Architecture

Architecting a robust WiFi presence automation system requires a decoupled, four-layer approach. This separation of concerns ensures that changes to marketing logic do not require network reconfiguration, and network upgrades do not break automated campaigns.

Layer 1: The Network Layer

The foundation of presence detection relies on the physical infrastructure—access points, wireless LAN controllers, and the RADIUS server. The critical architectural decision at this layer is determining which network events will trigger downstream automation. While legacy systems often relied on passive probe requests, modern implementations must prioritise authenticated session events. Since the introduction of default MAC address randomisation in modern mobile operating systems, probe-based tracking has become technically unreliable and legally precarious. Instead, leveraging association events tied to a Guest WiFi captive portal login provides a persistent, consent-linked identifier that survives MAC randomisation.

Layer 2: The Presence Engine

Raw network events are inherently noisy and require processing before they can trigger business logic. The Presence Engine, powered by Purple's Event Stream, ingests association events and performs critical filtering. This includes probe detection filtering to eliminate 'drive-by' signals, dwell time calculation to ensure the device has remained in the venue for a minimum threshold, and sophisticated deduplication. In high-density environments like Retail or Hospitality , a single guest visit may generate dozens of association and roaming events. The Presence Engine collapses these into a single, clean 'presence' signal.

architecture_overview.png

Layer 3: The Automation Layer

Once a clean presence signal is established, it passes to the Automation Layer. In the Purple ecosystem, this is handled by LogicFlow. This layer evaluates the presence event against predefined business rules, such as user segmentation, visit frequency, and campaign suppression windows. For example, a rule might dictate that a 'Welcome Back' campaign only fires if the user has not visited in the last 30 days and has been present on the network for at least five minutes.

Layer 4: The Delivery Layer

The final layer is responsible for executing the action. This could be dispatching an SMS, sending an email, triggering a push notification via a venue application, or firing a webhook to update an external CRM. The Delivery Layer must strictly adhere to the consent preferences captured during the initial authentication phase, ensuring compliance with privacy regulations.

Implementation Guide: Latency and Deduplication

Successful deployment hinges on managing two critical technical constraints: end-to-end latency and event deduplication.

Managing End-to-End Latency

Latency in presence automation is defined as the time elapsed between a device associating with the network and the guest receiving the triggered communication. Acceptable latency varies significantly by venue type. In a Transport hub, a trigger must fire within seconds, whereas a hotel deployment can tolerate higher latency.

latency_trigger_matrix.png

To achieve sub-ten-second latency, architects must optimise the network-to-platform event transmission (typically via syslog or API push from the controller) and select appropriate delivery channels. SMS and push notifications are suitable for real-time triggers, whereas email should be reserved for asynchronous communications due to inherent delivery delays.

The Deduplication Challenge

Deduplication must occur at both the device level and the campaign level. Device-level deduplication involves defining a 'session window'—typically 15 to 30 minutes. If a device disassociates and reassociates within this window, it is treated as a continuation of the existing session rather than a new visit. Campaign-level deduplication requires configuring suppression windows to prevent message fatigue. A common pitfall is failing to implement cross-device deduplication, where a user connects with both a smartphone and a laptop, resulting in duplicate campaign triggers. This is mitigated by linking MAC addresses to a single authenticated user profile (e.g., an email address) within the WiFi Analytics platform.

Privacy and Compliance Frameworks

Implementing presence-based automation requires strict adherence to privacy and security frameworks. A technically flawless system that violates compliance standards introduces unacceptable risk to the enterprise.

privacy_compliance_framework.png

GDPR and PECR Compliance

Under the General Data Protection Regulation (GDPR), processing location data requires a lawful basis. While 'Legitimate Interest' is sometimes used, explicit 'Consent' captured at the captive portal is the most defensible approach for marketing automation. Furthermore, the Privacy and Electronic Communications Regulations (PECR) mandate specific, informed consent for electronic marketing communications (SMS, email). Pre-ticked boxes are invalid; active opt-in is required.

Security and Segmentation

From a network security perspective, the guest WiFi infrastructure must be strictly segmented from corporate and payment networks. In environments processing cardholder data, PCI DSS compliance mandates VLAN separation and firewall isolation. The presence automation platform should only interact with the isolated guest network segment. For further reading on securing network access, review our guide on Aruba ClearPass vs Cisco ISE: NAC Platform Comparison .

ROI & Business Impact

The business value of event-driven marketing automation is measured in conversion rate uplift and operational efficiency. By shifting from batch-and-blast marketing to real-time, contextually relevant engagement, venues typically observe a 3x to 5x increase in engagement rates. For example, a stadium triggering an SMS merchandise offer 15 minutes after a fan connects to the network capitalises on high-intent dwell time. Furthermore, integrating these presence events into broader enterprise workflows—such as Connecting WiFi Events to 1,500+ Apps with Zapier and Purple —allows IT teams to automate operational tasks, such as alerting staff when a VIP guest arrives on premises. Similar to the network efficiency gains discussed in The Core SD WAN Benefits for Modern Businesses , automating marketing workflows reduces manual overhead and ensures consistent execution at scale.

Key Terms & Definitions

MAC Randomisation

A privacy feature in modern operating systems where a device broadcasts a randomly generated MAC address instead of its true hardware address when scanning for networks.

Crucial for IT teams to understand because it invalidates legacy presence analytics systems that rely on passive probe tracking.

Probe Request

A frame sent by a client device to discover available 802.11 networks within its proximity.

Useful for footfall counting, but insufficient for marketing automation due to lack of identity and consent.

Association Event

The moment a wireless client successfully connects and authenticates to an Access Point.

The primary, reliable trigger point for event-driven marketing automation.

Dwell Time

The continuous duration a device remains associated with the network during a single visit.

Used as a condition in automation logic to differentiate between a transient passerby and an engaged customer.

Suppression Window

A defined period during which a specific automated campaign will not fire again for the same user, regardless of trigger conditions being met.

Essential for preventing message fatigue and maintaining a positive user experience.

Captive Portal

A web page that the user of a public-access network is obliged to view and interact with before access is granted.

The critical juncture for capturing user identity and securing legal consent for marketing automation.

LogicFlow

A visual workflow automation engine that evaluates presence events against business rules to trigger downstream actions.

Allows marketing teams to manage campaign logic without requiring network engineers to alter infrastructure configurations.

VLAN Segmentation

The practice of partitioning a physical network into multiple distinct broadcast domains.

A mandatory security requirement to isolate guest WiFi traffic from corporate or payment processing systems.

Case Studies

A 400-room resort hotel wants to trigger a 'Welcome to the Spa' SMS offer when a guest connects to the WiFi network near the spa facilities. They are currently using probe requests for detection, but the marketing team reports that the campaign is firing inconsistently, and some guests are receiving the message multiple times a day.

  1. Migrate from probe-based detection to authenticated association events. Probe requests use randomised MAC addresses, causing the system to treat a single device as multiple new visitors. 2. Implement Location-Based Triggers using specific Access Point (AP) MAC addresses located in the spa zone, rather than the general venue SSID. 3. Configure a Dwell Time Threshold of 3 minutes to filter out guests merely walking past the spa to the elevators. 4. Set a Campaign Suppression Window of 7 days to ensure a guest only receives the offer once per typical stay, preventing message fatigue.
Implementation Notes: This solution addresses the root cause of the inconsistency (MAC randomisation) while implementing necessary business logic (dwell time and suppression) to protect the guest experience. It correctly shifts the trigger from passive scanning to active, authenticated presence.

A large retail chain wants to integrate their WiFi presence events with their central CRM (Salesforce) to update customer profiles in real-time when they enter a store. The IT team is concerned about API rate limits being exceeded during peak weekend trading hours.

  1. Do not use direct, synchronous API calls from the WiFi controller to the CRM for every association event. 2. Route all association events through the Purple Event Stream Engine to perform device-level deduplication, collapsing multiple micro-disconnects into a single 'Visit Started' event. 3. Configure a webhook in LogicFlow to send only the processed 'Visit Started' event to an enterprise integration middleware (e.g., Zapier or a custom AWS Lambda function). 4. Implement a queuing mechanism in the middleware to batch CRM updates or apply rate-limiting logic before pushing the data to Salesforce.
Implementation Notes: This architecture demonstrates a mature understanding of enterprise system integration. By using the presence engine to filter noise and middleware to handle API constraints, the design protects the downstream CRM from being overwhelmed by raw network telemetry.

Scenario Analysis

Q1. A stadium IT director wants to send a push notification via the venue's mobile app the moment a fan connects to the WiFi at the entrance gates. They are currently seeing a 45-second delay between connection and notification delivery. Where should they investigate first to reduce latency?

💡 Hint:Consider the components of the latency budget: Network-to-platform, Platform processing, and Delivery channel.

Show Recommended Approach

They should investigate the network-to-platform event transmission. In a high-density environment like a stadium, if the wireless controller is batching syslog events or API updates rather than streaming them in real-time, it introduces significant artificial latency before the automation platform even receives the trigger signal. Secondary investigation should verify the push notification gateway's processing queue.

Q2. A retail marketing team requests that the IT department configure the network to track all devices walking past their storefront windows to trigger a 'Come Inside' SMS campaign. How should the IT architect respond?

💡 Hint:Consider the technical reality of modern mobile devices and the legal requirements for electronic marketing.

Show Recommended Approach

The IT architect must reject the request on both technical and compliance grounds. Technically, tracking devices outside the store relies on passive probe requests, which use randomised MAC addresses, making reliable identification impossible. Legally, under PECR and GDPR, sending an SMS requires explicit, prior opt-in consent, which cannot be obtained from a device merely walking past. The architect should propose an alternative: triggering campaigns only for users who have previously authenticated via the captive portal and explicitly opted into SMS marketing.

Q3. During testing of a new presence automation deployment in a hospital waiting room, the system is correctly identifying devices, but the 'Welcome to the Clinic' email is firing every time a patient's device roams between two adjacent access points. What configuration is missing?

💡 Hint:Consider how the system differentiates between a network roaming event and a new visit.

Show Recommended Approach

The system is missing device-level deduplication (specifically, a session window configuration). The Event Stream Engine needs to be configured to recognise that a disassociation followed immediately by a reassociation to a different AP within the same venue constitutes a roaming event within an ongoing session, not a new visit. The session window should be set to at least 15-30 minutes to collapse these micro-events.

Key Takeaways

  • Base automation triggers on authenticated association events, not passive probe requests, to overcome MAC randomisation.
  • Implement a decoupled four-layer architecture separating network infrastructure from marketing logic.
  • Configure strict dwell time thresholds to filter out transient connections and drive-by traffic.
  • Apply two-tier deduplication: session windows to handle network roaming, and suppression windows to prevent message fatigue.
  • Ensure end-to-end latency aligns with the venue's use case (e.g., <10 seconds for transport hubs).
  • Capture explicit consent at the captive portal to ensure GDPR and PECR compliance for electronic marketing.
  • Maintain strict VLAN segmentation between guest WiFi and payment networks to satisfy PCI DSS requirements.