Skip to main content

Customer Segmentation

This guide will walk you through customizing and installing the pixel with a customer identifier to enhanced segmentation tracking and analytics.

1. Define Custom Property:

Decide on the custom property name and what it represents. For example, if you're tracking a customer's web site, you might name it customer_id

2. Modify the PUID Object:

  • In the JavaScript setup, extend the puid object to include your custom property.
  • For instance, if your custom property is a customer identifier like customer_id, your puid object would look something like this:
See getting your Client ID

3. Stringify and Encode PUID:

After adding the custom property, the rest of the process remains the same as the pixel installation. Convert the puid object into a string and encode it for URL use.

4. Create and Implement the Pixel URL:

Continue with creating the pixel URL using the modified puid object and implement it on your website using a script or iframe tag.

5. Example Implementation:

  • Script Tag: With the custom property added, your script tag for implementation would look like this:


6. Testing:

After implementation, test the pixel to ensure it's capturing and segmenting data as expected.

By adding a custom property to the PUID object, you can segment your customers based on specific identifiers unique to your business needs.