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:
Go to Settings > Visitor Properties.
Click Create New Property.
Name the property using the same key you send in your
pageview
(e.g.cuddles
).Set the property type accordingly, such as boolean if the pageview value is a yes/no function.
Using Custom Visitor Properties in Crobox
After setup, you can use these custom visitor properties in two main ways:
Targeting visitors: Use them to segment and personalize your Crobox experiences (e.g. show a specific campaign only to visitors where
cuddles = yes
).Filtering in analytics: Filter reports and analytics dashboards based on these properties to gain deeper insights.
FAQ
Last updated
Was this helpful?