Send Invoca calls and Signals to Optimizely as Events, attributed to the variation that drove them, to understand which experiments perform best.Optimizely is a marketing experimentation platform that makes it easy to test, learn from, and deploy customer experiences. By connecting Invoca and Optimizely, you can track calls and Signals as events to understand which variations are performing. This guide connects your Invoca and Optimizely accounts in three steps:
- Step 1: set up Events for each Invoca call and Signal you want to track in Optimizely.
- Step 2: set up the integration tile in Invoca.
- Step 3: update your Invoca Tag to capture the Optimizely visitor ID for people who call from your website.
Step 1: Create Events and Metrics in Optimizely
In Optimizely, create an Event for Invoca calls and for each Signal you want to send. You may also choose to create Metrics based on Invoca-reported Events. Follow the Optimizely documentation to create Events and Metrics, and make note of the ID and API Name for each Event you create — you’ll need them next.Step 2: Set up the integration in Invoca
- In the Invoca sidebar menu, click Integrations, then select Manage Integrations.
- Click the Optimizely tile. If the tile says “Learn More,” reach out to your account team or support@invoca.com to discuss adding the integration.
- Enter a friendly name to identify your Optimizely account, and enter your Optimizely Account ID. You can find your Account ID in Optimizely under Account Settings > Plan.
Create an Action
An Action is a Call or a specific Signal to report to Optimizely.- Enter a friendly name for the Action — include “Call” or the Signal name to distinguish between Actions.
- Optionally filter which calls/Signals to send by choosing a Profile (Network level) or Campaign (Profile/Advertiser level).
- Use the Triggered By dropdown to choose the transaction type to send. Select All Calls to report calls, or Signal and a specific Signal to report a Signal. To send more than one transaction type, create separate Actions for each.
- Triggering on the “Paid Calls” transaction type relates to affiliate/publisher calls that qualify for a commission in Invoca.
- Enter the Event Entity ID — the ID of the Event you created in Optimizely in Step 1 that corresponds to your Triggered By selection.
- Enter the Event API Name — the API Name of the same Event.
- Select Save to complete the Action. Repeat these steps for each transaction type you’d like to report to Optimizely as an Event.
- To create another Action, click + New Action and choose an existing environment.
Step 3: Configure your Invoca Tag(s) to capture the Optimizely visitor ID
- Click the gear icon, select Invoca Tags, and find the Tag implemented on your website.
- Open the Revision History tab and create a New Draft, or continue editing an existing one.
- On the edit Tag page, find the Optimizely Visitor ID parameter in the Marketing Data section.
- Select DataLayer as the Data Source Type and make sure it’s enabled.
- For the Data Source Name, enter
optimizely.get('visitor').visitorId. - Test your changes to confirm everything works.
- Click Save & Go Live.
- If your Invoca Tag consistently runs before the Optimizely identifier is set, use the “Re-run attribution” setting in the Invoca Tag. Start around 5 seconds and adjust based on how many tags load on your site.
- If you have multiple Invoca Tags, publish updates to each.
Validating that events reach Optimizely
- From your Invoca account, select Integrations, then Manage Integrations.
- Click the Optimizely tile, then click the name of the Action you created. You’ll see a Delivery Details chart showing the total number of times data was sent by day for the last 30 days, broken out by successes (green) and errors (red).
- Green indicates data is flowing. If you see red, click the Delivery History tab to see each individual request and response.
- Click a row to expand the details and view exactly what was sent and returned by the API. The response tab often has helpful information, and a web search on the error details can guide you toward a fix.