Setting Custom Visitor Properties with Pageview API

You can set visitor properties directly using the Pageview API. This allows you to send custom visitor attributes through to Crobox as part of your pageview events.

Here's how you can use this feature:

crobox.push(function(crobox) {
  // The Crobox API is now initialized and methods are available
  crobox.pageview({
    pt: crobox.PAGE_INDEX,
    lc: "en-AA", 
    // The cp (custom property) field lets you send any custom visitor property
    cp: {
      cuddles: "yes"
    }
  });
});

Configuring Custom Properties in the Crobox App

After implementing the above code, follow these steps to complete the setup in the Crobox app:

  1. Navigate to Settings: Open the Crobox app and go to the settings.

  2. Select Visitor Properties: Find the "Visitor Properties" section under settings.

  3. Create a New Property: Click on "Create New Property."

  4. Name and Configure the Property: Use the key of the custom property you included in the pageview event (e.g., cuddles), these need to match. Set the property type accordingly, such as boolean if the pageview value is a yes/no function.

Utilizing Custom Properties in Crobox

Once configured, you can use the custom property in-app to:

  • Target Visitors: Apply this property to target specific visitors within your Crobox experiences.

  • Filter in Analytics: Leverage the custom property as a filter within your analytics for more detailed insights.

Contact your Account Manager for additional assistance.

Last updated