This article covers the following:
Overview
Lytics is a customer data platform (CDP) that helps marketing teams boost business performance using behavioral insights, machine learning, and real-time campaign management to deliver one-to-one marketing experiences.
With the Wingify-Lytics integration, you can use the audiences created in Lytics as targeting conditions in Wingify. You don't need to add any extra code to your website.
Data is automatically synced when you save the connection and every 24 hours after that. You can also manually sync at any time to retrieve recently generated audiences.
Before You Begin
- You have an active Lytics account.
- The Wingify SmartCode is implemented on your webpage.
Create a Lytics Connection in Wingify
Wingify supports the following Lytics connection type:
- Import Segments from Lytics (Targeting): Allows you to target visitors in Wingify using Lytics segments.
To create a Lytics connection in your Wingify account:
- Log in to your Wingify account.
- From the left panel, navigate to Configurations > Integrations.
- Click the Lytics integration tile and click Create Connection.
- Select Import Segments from Lytics.
All configured connections appear under Config > Active Connections section on the Lytics integration page.
Import Segments from Lytics
Use this connection type to import Lytics segments into Wingify for visitor targeting.
To configure the connection:
- Click Create Connection and select Import Segments from Lytics.
- In the Create Connection form, enter a name in the Connection Name field.
- Enter your Lytics API token in the API Token field.
Note: You can fetch your API token from Account > Manage Account > API tokens in your Lytics account. To create a new token, use the +Create API Token option.
- Review the Lytics LocalStorage Key field. This is pre-filled as lytics_segment. You do not need to change this value unless you are using a custom setup.
- Click Create Connection.
Once created, the connection appears under Active Connections and Wingify begins syncing your Lytics segments automatically. You can manually trigger a sync at any time from the Active Connections section.
Use Lytics Segments for Visitor Targeting
Once segments are synced, you can use them as targeting conditions in your Wingify campaigns.
For example, assume you manage an e-commerce website and want to run an A/B test for anonymous visitors. You can create a segment using Lytics Audience is equal to Anonymous Profiles to ensure the campaign runs only for those visitors.
To set it up:
- Log in to your Wingify account.
- Go to Web Experimentation and select your campaign.
- On the Configuration page, go to Targeting. Under Segments, select Custom Segment.
- In the segment builder, select Lytics Audience from the first dropdown, select the operator from the second dropdown (in this example, =), and select the required audience from the third dropdown (in this example, Anonymous Profiles).
Note: When you choose Lytics Audience as a targeting condition, Wingify sets the Poll Until setting to Custom Event by default. You can find this under the Settings section within the Custom Segment builder. The code snippet polls every 10ms and waits up to 5 seconds for the LocalStorage Key (lytics_segment or the value you specified during connection setup) to be available on the page. The segmentation condition will not apply if the data is unavailable within this time frame. You can modify the wait duration by changing the 5000 value in the setTimeout within the code snippet.
- To add multiple conditions, click Add another condition. You can define the logical relationship between conditions using the And/Or operators and use brackets to organize the segment condition.
- Once done, click Save Segment.
- In the popup that appears, enter a name for the segment, optionally add a description, and click Save.
- Click Apply to apply the segment to the campaign.
You may notice a slight delay in Wingify changes appearing on the page, as the Lytics API call may take some time to populate the required information.
Need more help?
For further assistance or more information, contact Wingify Support.