-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathconfig.json
9 lines (9 loc) · 928 Bytes
/
config.json
1
2
3
4
5
6
7
8
9
{
"plugin_type": "analytics_integration",
"name": "econda Analytics Integration",
"form_schema": [],
"description": "",
"options": {
"track_layer_decision": "// Pre conditions :\n// 1: Econda-Tracking-Script is loaded before\n(function(){\n var decObject = window.optimizely.get(\"state\").getDecisionObject({campaignId: campaignId});\n if( typeof window.emos3 !== 'undefined'){\n window.emos3.send({ type: 'event', abtest: [ [decObject.experiment , decObject.variation] ] }); \n } else if (typeof(window.emosPropertiesEvent)== \"function\"){\n window.emosPropertiesEvent({ type: 'event', abtest: [ [decObject.experiment , decObject.variation] ] }); \n } else {\n console.log(\"Problem: econda A/B Test Tracking is activated but tracking library is not yet loaded. Could not send data to econda.\");\n }\n})();"
}
}