Skip to content

Commit 26f22c5

Browse files
authored
Merge pull request #28 from CrazyEggInc/master
Update crazyegg integration instructions
2 parents fd1ebf5 + 75fe45e commit 26f22c5

1 file changed

Lines changed: 46 additions & 10 deletions

File tree

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Crazy Egg Integration
22

3-
The Crazy Egg integration allows you to see heatmaps with Optimizely data.
3+
The Crazy Egg integration allows you to see heatmaps with Optimizely data.
44

55
## Pre-requisites
66

@@ -10,15 +10,51 @@ The Crazy Egg integration allows you to see heatmaps with Optimizely data.
1010

1111
## Optimizely Setup
1212

13-
1. Download the integration Resource file located on the left side of this page.
14-
2. Unzip the resources file.
15-
3. In Optimizely: go to _Settings_ > _Integrations_ > _Create Analytics Integration…_ > _Using JSON_
16-
4. Copy and paste the contents of _config.json_ from step 2 into the _JSON Code_ window in Optimizely and click _Create Integration_.
17-
5. Select _Crazy Egg_ in the integration list and enable the integration.
18-
6. Find the experiment in Optimizely that you want to integrate Crazy Egg with, click on the Integrations tab and make sure the HeatMaps field is "ON".
19-
7. You’ll need your experiment's variation IDs. You can find them in Optimizely UI under Experiments. Choose the Experiment you want to integrate, and click on API Names. Under the Variations section, you will find the IDs. Write these down.
13+
1. Navigate to the Optimizely project in which you want to use the integration.
14+
2. Click on **Settings** in the left navigation bar, and then **Integrations**.
15+
3. Click on the blue button titled **"Create New Analytics Integration"**.
16+
4. In the dropdown menu select **Using JSON**.
17+
5. Copy and paste the following code into the _JSON Code_ window in Optimizely and click **Create Integration**.
18+
19+
```
20+
{
21+
"plugin_type": "analytics_integration",
22+
"name": "Crazy Egg",
23+
"form_schema": [
24+
{
25+
"default_value": "off",
26+
"field_type": "dropdown",
27+
"name": "heatmaps",
28+
"label": "Heatmaps",
29+
"options": {
30+
"choices": [
31+
{
32+
"value": "off",
33+
"label": "Off"
34+
},
35+
{
36+
"value": "on",
37+
"label": "On"
38+
}
39+
]
40+
}
41+
}
42+
],
43+
"description": "This integration allows you to see heatmaps with Optimizely data.",
44+
"options": {
45+
"track_layer_decision": "if(extension.heatmaps === \"on\") {\n if(!isHoldback) {\n window.CE_SNAPSHOT_NAME = '' + variationId;\n }\n}\n"
46+
}
47+
}
48+
```
49+
6. Select **Crazy Egg** in the integration list and **enable** the integration.
50+
7. Click on **Experiments** in the left navigation bar, click on the **Name** of the experiment.
51+
8. Click on **Integrations** in the submenu, and make sure the Crazy Egg Heatmaps field is **On**.
52+
9. Next you will need to find your experiment's variation IDs. Click on **API Names** in the submenu.
53+
10. Find the **variation ID's** for the control and any variants, you will need these for the Crazy Egg setup.
2054

2155
## Crazy Egg Setup
2256

23-
* In Crazy Egg, create a snapshot for each ID. The snapshot URL will need to have the experiment page URL appended with `optimizely_x` query param. Example: https://www.example.com/my-page/?optimizely_x=`VARIATIONID`.
24-
* Under the advanced settings - Tracking Options, select the Track by name option and enter the variationID in the text box.
57+
In Crazy Egg, you will need to create a separate snapshot for each ID.
58+
1. The **Snapshot URL** will need to have the experiment page URL appended with `optimizely_x` query param. Example: https://www.example.com/my-page/?optimizely_x=VARIATIONID.
59+
2. The **Snapshot name** will need to be the **variant ID**.
60+
3. Under the **Advanced settings**, select the Tracking Option of **Track by name**. Note: You just need to select this option, you won't need to add the additional code on your page since the integration automatically handles it.

0 commit comments

Comments
 (0)