This article covers the following:
- Overview
- Configure Visitor Identification using CRM Integration
- Configure Custom Visitor Identification Script on Your Website
Overview
When a visitor lands on your website, they are typically anonymous. Visitor identification helps you identify anonymous visitors using known user data, such as email addresses or other unique identifiers available in CRM records. This enables you to create custom segments and deliver tailored experiences to your target audience.
You can identify website visitors using two distinct methods:
Let us understand these two methods in detail.
Configure Visitor Identification using CRM Integration
Wingify supports integration with CRM tools such as HubSpot, Salesforce, and Marketo for visitor identification. If you use either of these tools, refer to the following articles. They provide instructions on integrating Wingify with your CRM tool.
- Salesforce: Use Salesforce Data in Wingify for Account-Based Personalization
- Marketo: Use Marketo Data in Wingify for Account-Based Personalization
- HubSpot: Use HubSpot Data in Wingify for Account-Based Personalization
How a CRM Integration in Wingify Helps You Identify Anonymous Visitors
Here’s how visitors are identified in Wingify once you integrate your CRM tools with Wingify:
- Visitors are initially tracked anonymously using Wingify cookies.
- When a user submits a form, for example, a lead form, their email gets captured in your CRM.
- Wingify syncs with the CRM or marketing tool and maps an anonymous visitor to a known user using identifiers such as email addresses.
This allows you to:
- Track user journeys across sessions
- Build advanced audience segments
- Measure the experiment's impact on actual leads or revenue
If you don’t use any supported CRM or marketing tools, you can manually configure a visitor identification script on your website. This will allow you to capture a user’s ID, email (or any other unique identifier), and send it to Wingify.
The following section explains how to configure visitor identification scripts on your website.
Configure a Custom Visitor Identification Script on Your Website
You can configure a custom visitor identification script in different scenarios, beyond those listed below. For example, you may choose to implement a custom visitor identification script when:
- You are using a custom backend logic or an unsupported CRM
- You want more control over how users are identified
- You already have user data available on login or signup
Before configuring the visitor identification script, it is important to understand when you must pass the captured user data to Wingify.
When Should You Pass User Data to Wingify?
You should pass user information to Wingify immediately after a user is identified, such as when they:
- Sign up for your SaaS product
- Log in to their account
- Update their profile details
- Complete an important lifecycle action, for example, plan an upgrade.
This ensures that Wingify can associate all future page views, conversions, and experiment participation with the correct user profile.
Use the identityVisitor Method to Identify Visitors on Your Website
To identify incoming visitors on your website, call the identifyVisitor JavaScript method during key user interactions. These interactions include, but are not limited to, instances where a user logs in and performs actions such as updating their profile or upgrading their subscription. The identifyVisitor method accepts two primary arguments: the User ID and an Attributes Object. If your primary goal is to identify users via email, you can pass just the email in the JavaScript method as follows:
window.Wingify = window.Wingify || [];
window.Wingify.identifyVisitor("unique-identification-id", {
email: "brian@airbnb.com",
});If the user has not registered or logged in yet, just leave the parameters in your JavaScript empty. Wingify will automatically track them as an anonymous user.
For example:
window.Wingify = window.Wingify || [];
window.Wingify.identifyVisitor(null, {
viewedPricing: true,
});Note: By default, Wingify tracks a user's initial interactions as anonymous visitor sessions. As soon as a user is identified via login or sign up, and you trigger the identifyVisitor method, Wingify automatically stitches the anonymous user’s pre-signup events to their authenticated profile. This provides a unified view of the entire conversion journey, even if it began on a different device.
You can pass more user context to Wingify by including user attributes such as Name and Job title, along with the unique ID, in the script, as shown in the following example:
window.Wingify = window.Wingify || [];
window.Wingify.identifyVisitor("unique-identification-id", {
email: 'brian@airbnb.com',
name: 'Brian Adam',
title: 'Vice President',
randomParam: 'randomValue'
} )- Wingify does not automatically capture these user attributes.
- Your team must define the logic for fetching and sending these user attributes.
These user attributes are captured as variables in Wingify. Once these variables are available in Wingify, you can:
- Create Custom Segments in Wingify
- Target experiments only to specific user roles or plans
- Analyze conversion performance by user attributes
Import Company-Level (Account) Attributes in Wingify
For B2B SaaS companies, personalization often works better at the company or account level rather than for individual users. You can pass company-related attributes along with user data in the identifyVisitor method, as shown in the following code snippet, and use them for:
- Account-based targeting
- B2B personalization
-
Segmenting results by company size, plan, or industry
window.Wingify = window.Wingify || []; window.Wingify.identifyVisitor("unique-identification-id", { email: 'brian@airbnb.com', name: 'Brian Chesky', title: 'CEO', randomParam:'randomValue', company: { id: 'b4c64565-adc1-4ba1-9a0f-d9639615e68c', domain: 'airbnb.com', name: 'AirBnb', industry: 'Information Technology', employeeCount: 6100, plan: 'premium', randomParam: 'randomValue' } })
Using these identification methods enables you to effectively bridge the gap between anonymous traffic and known accounts, ensuring your ABM campaigns are data-driven and highly personalized.
Need more help?
For further assistance and more information, contact Wingify Support.