This Article Will Help You:
- Convert-SAP Hybris Integration
- Add Tracking Code Snippets
- Activate Convert-Segment Integration
- View Convert Data in Segment
- Add SAP Hybris and Segment.io as Data Sources in Blendr.io
- Add a Data Blend
- View Data in SAP Hybris
Convert-SAP Hybris Integration
Integration of SAP Hybris with Convert Experiences will help you to import Convert data into your SAP Hybris account by using the help of Segment.io and Blendr.io.
For each experiment, the integration uses semantic track events to pass along the experiment name and variation name that the visitor is currently bucketed into.
We will need:
- A Segment account to be used as the data source to send data from Convert Experiences to Blendr.
- A Blendr account to be used as the data blender between Segment and SAP Hybris.
- A SAP Hybris account to connect your data with SAP Hybris Campaigns.
Add Tracking Code Snippets
Make sure the Convert tracking code and the Segment tracking code (analytics.js) are installed on your page. The Segment tracking code looks like this:
Activate Convert-Segment Integration
Add the code below to your website right after the Convert + Segment tracking codes which will send Convert Experience and Variation names to Segment Debugger/Schema:
var refObject = window['convert']['data']['experiments']
for (var key in window["convert"]["currentData"]["experiments"]) {
if (!window["convert"]["currentData"]["experiments"].hasOwnProperty(key)) {
continue;
}}
var currentExperiment = window["convert"]["currentData"]["experiments"][key];
var curExperimentName = refObject[key] && refObject[key].n ? refObject[key].n : "unknown experiment name";
curExperimentName = curExperimentName.replace("Test #", "Test ");
var curVariant = currentExperiment['variation_name'] ? currentExperiment['variation_name'] : "unknown variant";
curVariant = curVariant.replace("Var #", "Variation ");
analytics.track('Convert Experiences', {
Exp_Name: curExperimentName,
Var_Name: curVariant
});
View Convert Data in Segment
Using a semantic event in Segment, you will be able to view all of your Convert Experiences data as they associate to the values that you pass in the event.
When you log in to your Segment account, you should go to your Schema. Inside your Schema, you can see all of the track events that you are sending through Segment, and if they are active or inactive.
Add SAP Hybris and Segment.io as Data Sources in Blendr.io
Go to Blendr.io and add SAP Hybris and Segment.io as data sources. For Segment you will need the API Write Key which you can find in Segment settings, while for SAP Hybris you will need the Apikey and InstanceURL:
Add a Data Blend
In My Data Blends section add a data blend where you will use custom code to send Segment data (which already have events to pick Convert Experiences data) to SAP Hybris:
View Data in SAP Hybris
You can now login to your SAP Hybris account and view Convert Experiences data.