Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Kameleoon Destination


Kameleoon's(link takes you to an external page) powerful and easy-to-use A/B testing, full stack, and AI-powered personalization solutions help marketers, product owners, and developers maximize customer engagement and conversion all from a single platform.

This destination is maintained by Kameleoon. For any issues with the destination, contact the Kameleoon Support team.


Getting Started

getting-started page anchor

Segment's Kameleoon destination supports the following Kameleoon products:

In order to use the Kameleoon & Segment.io integration, you first need to request an API Key. Send your request it to support@kameleoon.com, and be sure to specify your Kameleoon account login.

You will also need the sitecode key. You can find it in your Kameleoon account, as described in How do I find my site id?(link takes you to an external page).

To add the destination to your Segment workspace:

  1. From the Destinations catalog page in the Segment App, click Add Destination.
  2. Search for Kameleoon in the Destinations Catalog, and select the Kameleoon destination.
  3. Choose which Source should send data to the Kameleoon destination.
  4. Enter the API Key and the sitecode in the Kameleoon destination settings in Segment.

Implementation pre-requisites: matching Users between Kameleoon and Segment

implementation-pre-requisites-matching-users-between-kameleoon-and-segment page anchor

The integration requires you to use the same system of identifiers for both tools, meaning the userId value you pass to Segment should be the same value as Kameleoon uses to identify a "visitor".

If you use Kameleoon Experiment or Kameleoon AI Personalization on your website, Kameleoon places a cookie that contains an anonymous unique identifier, called the Kameleoon visitorcode. This ID is randomly assigned to a visitor and is used to uniquely identify a browser.

You can either pass Kameleoon's visitorcode in the userId property of the Segment calls to ensure Kameleoon can consolidate data and avoid any analytics discrepancies between the tools in your campaign results, OR you may specify in all Segment calls an additional user property, k_visitorCode, whose value is the Kameleoon visitorcode. You can retrieve the user visitorCode from the browser by using Kameleoon's Activation API(link takes you to an external page).

If you are not able to update your existing Segment tracking plan, you can also pass Kameleoon's visitor code in an additional Segment call as follows: analytics.track('Kameleoon identifier', {'k_visitorCode': Kameleoon.API.Visitor.code});Kameleoon. This will automatically link your internal user ID or anonymous ID to Kameleoon's own visitorCode. Make sure to call it only once per session.

If you use Kameleoon Full Stack, please refer to the Kameleoon SDK documentation(link takes you to an external page). Kameleoon recommends you to use your own internal ID to identify users.


Kameleoon supports the following methods, as specified in the Segment Spec.

If the Segment event name matches exactly the name of an existing goal(link takes you to an external page) in your Kameleoon account, a conversion for this goal will be associated to the visitor. If the goal does not exist, Kameleoon will create a custom goal(link takes you to an external page) by using the Segment event name and associate the conversion to the visitor. The goal will appear in the Kameleoon goals page(link takes you to an external page) with the name convention 'SegmentIO eventType - eventName'. Once the goal has been created, you can use them in any of your campaign(link takes you to an external page).

Page

page page anchor

Send Page calls to record whenever a user sees a page of your website, along with any optional properties about the page. Calling page or screen in a source is one of the first steps to getting started with Segment.

For example:

analytics.page('Home', {"k_visitorCode": "oa16i4syt2ve3b0z"});

Send Screen calls to record whenever a user sees a screen, the mobile equivalent of page, in your mobile app, along with any properties about the screen. Calling page or screen in a source is one of the first steps to getting started with Segment.

For example:

1
[[SEGAnalytics sharedAnalytics] screen:@"Home"
2
properties:@{ @"k_visitorCode": @"oa16i4syt2ve3b0z" }];

Segment sends Screen calls to Kameleoon as a screenview.

Send Track calls to record any actions your users perform, along with any properties that describe the action.

For example:

analytics.track('Login Button Clicked', {"k_visitorCode": "oa16i4syt2ve3b0z"});

Segment sends Track calls to Kameleoon as a track event.