Marketo
Complete these steps in your Marketo instance before configuring the integration in the Optibase dashboard.
Create a LaunchPoint Service
This generates the Client ID and Client Secret used by Optibase.
Go to Admin → Integration → LaunchPoint
Click New → New Service
Fill in:
Display Name:
OptibaseService:
CustomAPI Only User: select the user created in Step 2
Click Create
Click View Details on the new service — copy the Client ID and Client Secret
Create the Custom Activity Type
Optibase sends a custom activity to Marketo each time a visitor is exposed to a test variant.
Go to Admin → Marketo Custom Activities
Click New Custom Activity
Fill in:
Name:
Optibase Variant SeenAPI Name: leave as auto-generated
Description:
Fired when a visitor is assigned and exposed to a test variant in Optibase
Set the Primary Attribute:
Name:
Test IDAPI Name:
testIdData Type:
String
Add the following Secondary Attributes (click Add Attribute for each):
NameAPI NameData TypeVariant ID
variantIdString
Variant Name
variantNameString
Test Name
testNameString
Workspace ID
workspaceIdString
Origin URL
originUrlString
View ID
viewIdString
The API Name values must match exactly as shown — Optibase uses these to map data.
Click Create
Click Approve on the activity — it will not be usable until approved
Note the Activity Type ID shown in the Custom Activities list — you will need this in the Optibase dashboard
Set Up the Lookup Field
The Lookup Field is the Marketo Lead field that contains the same value you pass to Optibase as the user's external identifier.
When Optibase receives:
optibase.setTestedUserExternalId(externalId)it will search Marketo for a lead where:
{Lookup Field} = {externalId}Example
If your application calls:
optibase.setTestedUserExternalId("user_123")then the Marketo lead must contain:
externalId
user_123
If your application calls:
optibase.setTestedUserExternalId("john@example.com")then the Marketo lead must contain:
email
john@example.com
The value stored in Marketo must exactly match the value being sent to Optibase.
Option A — You pass the user's email address as externalId
If the value passed to Optibase is the user's email address:
optibase.setTestedUserExternalId("john@example.com")then you can use Marketo's built-in email field.
Enter:
emailas the Lookup Field in the Optibase dashboard.
No additional Marketo field setup is required.
Option B — You pass any other identifier as externalId
If the value passed to Optibase is not an email address (for example a customer ID, CRM ID, user ID, or account ID), you must create a Marketo Lead field that stores that same value.
Go to Admin → Field Management
Click New Custom Field
Fill in:
Object:
LeadType:
String(orIntegerif your identifier is numeric)Name: any name you prefer (e.g.
External ID)API Name: note this value exactly (e.g.
externalId,crmUserId,customerId)
Click Create
Enter the field's API Name as the Lookup Field in the Optibase dashboard.
Example
Application:
optibase.setTestedUserExternalId("user_123")Marketo:
externalId
user_123
Optibase Lookup Field:
externalIdThe Lookup Field must contain the same value that your application passes to
optibase.setTestedUserExternalId(...). If the values do not match, Optibase will not be able to find the correct Marketo lead.
If you leave the Lookup Field blank in the Optibase dashboard, Optibase defaults to:
externalIdIn that case, create a Marketo Lead field with API Name:
externalIdand store the same external identifier value that you pass to Optibase.
Configure in Optibase
Go to Optibase Dashboard → Settings → Integrations → Marketo and enter:
Munchkin ID
Admin → Munchkin → Munchkin Account
Client ID
LaunchPoint → View Details
Client Secret
LaunchPoint → View Details
Lookup Field
The API name of the field you chose in Step 6. Leave blank to use the default externalId
Activity Type ID
Admin → Custom Activities (the number shown next to your activity)
Click Connect — Optibase will verify the credentials before saving.
How it works after setup
When a visitor is identified in the app with the external identifier provided by your application, Optibase associates that identifier with the visitor
Optibase looks up the lead in Marketo using the Lookup Field and the provided
externalIdIf no lead exists, one is created automatically with that field set to the
externalIdEach test variant the visitor has been exposed to is sent to Marketo as an Optibase Variant Seen custom activity attached to that lead
Previously seen variants from before identification are backfilled automatically
Troubleshooting
Connection fails on save
Double-check the Munchkin ID format (
XXX-XXX-XXX)Ensure the Client ID and Secret are from the LaunchPoint service, not from another integration
Confirm the API-only user has the role with all three permissions
No activities appearing on leads
Confirm the custom activity is in Approved status
Confirm the Activity Type ID in Optibase matches the one in Marketo Admin
Lead not found / created with wrong field
Confirm the Lookup Field API name matches exactly (case-sensitive) what is in Marketo Field Management
Confirm the
externalIdyour app passes to Optibase matches the value stored on the lead in Marketo for that field