Customerlabs CDP Documentation

You are here:

Creating an audience by segmenting the users

Once the events of your website visitors have started populating, you can segment the users based on their activity on your website and other parameters like user traits, demographics, etc, that suit your marketing strategy to create an audience and sync it with the ad platforms like Facebook & Google.

Ways to filter the data and create a segment

You can create a segment of “User” or “Group” by

1. Filtering the data based on user (or) group traits, UTM parameters, demographics, Device or browser type from the “Choose common properties” section.

2. Filtering the data based on the events tracked on your website from the “Select an action” section.

Filter the users

Filtering based on user/group traits

You can filter the users based on demographics, technology, UTM parameters or other parameters. 

For example, in the “Technology” filter, if you want the users who use Windows 10 platform and Firefox browser you can filter them from both “Platform” and “Browser” filters. Or if you want the users who use either firefox or chrome, you can select and add them one by one from the “Browser” filter.

Filtering based on events

You can filter the users based on the events tracked on your website like add_to_cart, pageview, product_viewed, added_to_wishlist, etc. This can be further segmented using a combination of event properties explained below:

Occurrence → Filters the data based on the occurrence of the event like First occurred, Last occurred, Not occurred. 

Count → Number of times the event has occurred

Date Range – Dynamic* – Date From → Filters the data from the date mentioned till now

                      – Dynamic* – in the last → Filters the data in the last specified number of

                                                                days which is dynamic.

                      – Static date range → Filters the data between the specified date range

*For the dynamic date range, data gets refreshed based on the refresh interval (check refresh interval explained below) set for the segment.

Based on the date range chosen, the segment becomes a static or dynamic segment

1. Static segment is fixed for the date range given and no new users are added or removed from the segment. 

2. Dynamic segment is changing and new users are added or removed based on the given date range and refresh interval. Every time a segment gets refreshed, an inclusion event called “added_to_segment” is assigned to the user who enters the segment and an exclusion event called “removed_from_segment” is assigned to the user who is excluded from the segment based on the segment filter criteria

You can further filter the data using attributes (if available) for the event. For example, URL can be specified for pageview event, Currency for added to cart event, category name for category_viewed event, etc.

Multiple actions can be combined for advanced segmentation by clicking on the “Add another action” button and using the conditional filter “AND” or “OR”.

And – Filters the data that match the criteria of both actions. 

Or – Filters the data that match the criteria of one of the actions.

For example, here’s how you can use “And” function to combine actions: 

If you would want to filter the users who added a product to the cart but have not purchased, you can combine the “Added to cart” event criteria with the “purchase” “Not occurred” event criteria using the “And” condition as shown below.

Segment creation in CustomerLabs CDP

View, Download and Save the segment

After specifying the criteria for segmenting, click on “View Audience” to view the list of users. You can also export the data in csv format by clicking on “Download CSV” button. 

You can save the segment created by clicking on “Save segment” and giving a name suitable to the segment.

Note: Segment name should be in lowercase with a maximum of 20 characters in length. Eg. my_segment_1

Refresh interval

A segment is refreshed based on the interval set while creating the segment with a dynamic date range. Every time a segment is refreshed the users are either included or excluded from the segment based on the criteria of the segment. Depending on the exclusion or inclusion, users are assigned an event called “added_to_segment” when included and “removed_from_segment” when excluded. 

Note: Make sure to keep the refresh interval relevant to the dynamic date range given in the segment to avoid triggering more events that might incur unnecessary charges. For example, if you have chosen the “Dynamic – in the last” as 30 days in a particular segment, it is suggested to keep the refresh interval every 2 days.

Step-by-step guide to create a basic segment

Create a basic segment of users, for instance, filter users who have added a product to cart in the last 30 days by following the steps below:

1. Navigate to the “Audiences” page from the Menu. 

2. Click on “Create new segment”

New segment

3. Under Segment, choose “By user”. 

(Specify other parameters if required from the “Choose common properties” section) 

4. Search and select “Added to cart” from the events in the “Select an action” section.

5. Select “Occurred” from the occurrence drop-down.

6. Set “Count” → “Greater than or equal to” → Enter “1”. 

7. Choose “Dynamic – in the last” from the date range drop-down → Enter “30” days.

8. Add Attributes if needed by clicking on the “+” button. 

9. Once you have given the criteria, Click “View Audience”.

10. Save the segment by clicking on “Save Segment”. You can also download the data by clicking on “Download CSV”. 

11. A tab appears that prompts to enter a name for the segment → Enter “atc_last30d”

12. Set the refresh interval for 2 days. Since the range is for 30 days, refreshing for every 2 days would be ideal. 

13. Check “Agree & Continue” box and click on “Save the segment”

Some of the commonly used segments are:

  1. Product viewed more than 3-times
  2. Category viewed more than 2-times
  3. Initiated check-out in the last 30 days.
  4. Pricing page viewed in the last 30 days.
  5. Blog visitors

Step-by-step guide to create an advanced segment

Create an advanced segment of users, for instance, filter users who have viewed a product but not added to cart in the last 60 days by following the steps below:

1. Navigate to the “Audiences” page from the Menu.

2. Click on “Create new segment” 

3. Under Segment, choose “By user”

(Specify other parameters if required from the “Choose common properties” section)

4. Search and select “Product viewed” from the events in the “Select an action” section.

5. Select “Occurred” from the occurrence drop-down.

6. Set “Count” → “Greater than or equal to” → Enter “1”

7. Choose “Dynamic – in the last” from the date range drop-down → Enter “60” days

8. Add Attributes if needed by clicking on the “+” button.

9. Click on “Add another action” button and select “And” from the drop-down to combine both actions.

10. Search and select “Added to cart” in the second set of actions.

11. Select “Not occurred” from the occurrence drop-down.

12. Choose “Dynamic – in the last” from the date range drop-down → Enter “60” days

13. Add Attributes if needed by clicking on the “+” button.

14. Click on “Add another action” button and select “And” from the drop-down to combine both actions.

15. Once you have given the criteria, Click “View Audience”.

16. Save the segment by clicking on “Save Segment”. You can also download the data by clicking on “Download CSV”.

17. A tab appears that prompts to enter a name for the segment → Enter “pr_view_nt_atc_60d”

18. Set the refresh interval for 5 days. Since the range is for 60 days, refreshing for every 5 days would be ideal.

19. Check “Agree & Continue” box and click on “Save the segment”

Some of the commonly used advanced segments are:

  1. Added to cart before 30 days.
  2. Added to cart but not purchased.
  3. Product viewed more than 3 times and added to wishlist
  4. Read the blog and visited the pricing page more than 3 times

Sync the segment with destinations as a customer list

You can create an audience in CustomerLabs and sync it with the destinations as a customer list by mapping the identifiers and user traits with the destination schema. This makes it easier for you to run ads without having to manually update the list of users.

Here’s how you can sync the segment with the destination:

1. Create a segment as required and after creating, “view” the segment to set up the sync with the destination.

2. Go to “Schema” tab and specify the identifiers and user traits like email, first name, last name, external ids, etc called “Segment Schema” which should be mapped with the destination, one by one by clicking on “Add new schema”

3. After specifying the identifier and user traits, click “Update Schema”.

4. Now go to “Destinations” tab and click on “Map Schema” for the destination that you want to sync the list.

5. In the “List to sync” tab, choose the audience list from the lists that are already created in the destination or choose “Create New List” and enter the name for the new audience list.

6. Once the audience list is selected or created, “Custom audience Info” will be displayed. 

Note: If it shows “Error Fetching data”, make sure to re-authenticate the activation key for the destination from Menu → Destinations page.

7. Go to the “Schema Mapping” tab after saving the list and map the segment schema with the destination schema for the identifier and user traits that you have given in Step 2 by adding each schema using “Add Schema” button. 

8. Once this is done, click “Save Schema”

9. Now enable the toggle under “Status” for the destination you want to sync.

10. Click “Instant Sync” to sync the list now.

11. Go to “Configuration” tab and set the “Refresh interval” as required → Save Configuration

12. You can check the log for the segment from the “Logs” tab and also the log for each destination by going to “Destinations” tab → “Show Logs” for the destination that you want.

13. You can check whether the list has been synced with the destination in the destination platform after 10 minutes if you have enabled “Instant Sync” or after the refresh interval days set for the segment. 

For detailed documentation on syncing the audience as a customer list in Facebook Ads, Google Adwords and LinkedIn, click on the relevant link.

Sync the segment with destinations as an event

You can sync the audience created in CustomerLabs with the destinations as an event that sends the data of your anonymous users who had performed high-intent activities on your website such as viewing a product multiple times but have not converted and haven’t given any personally identifiable information (PII). You can retarget these anonymous users by segmenting them and syncing them with ad platforms as an event. 

The audience created in CustomerLabs is sent to the destination as two events. One is “added_to_segment” which is used to include a set of users created as a segment. The other one is “removed_from_segment” which is used to exclude a set of users created as a segment.

Here’s what you should do to sync the audience with the destination:

1. The events “added_to_segment” and “removed_from_segment” should be toggled on in the “Event Workflow setup” of the destination’s setup in CustomerLabs which enables to sync the events with the destination.

2. Once the events started populating in the destination, create a custom audience in the destination and choose the event as “added_to_segment” to include users of a particular segment created in CustomerLabs. (Note: To exclude users, select the event as “removed_from_segment”)

3. After specifying the event, the relevant segment name as created in CustomerLabs should be mentioned as a parameter to sync the audience. Go to Facebook Ads and Google Analytics for detailed documentation on how to sync audience as an event.

If you face any issues while creating segments, get in touch with our team by clicking on the chat icon on the lower right corner. 

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Next Sync the audience with LinkedIn
Table of Contents
CustomerLabs gives freedom, flexibility and wings to digital marketers.
Sign Up
© 2022, Customer Labs Inc. All rights reserved.