Amplitude (analytics browser)
What this integration does
What this integration doesEach time a visitor is exposed to an AB Tasty campaign, we add a timestamped ABTasty event to their Amplitude timeline—no custom wiring. The event carries two fields that tell you exactly what they saw:
abtasty_campaign→campaignName (campaignId)abtasty_variation→variationName (variationId)
,All campaign views are appended: when an Amplitude user profile is available, every exposure is attached to that profile; otherwise the event is recorded against the current device and will surface under the user once they are identified, per Amplitude behavior.
Because it’s an event, you can break down funnels, retention, and cohorts by campaign and variation, compare variants side‑by‑side, and join experiment exposure with your existing product analytics—all within Amplitude.
Requirements
is installed on your site. (See “Amplitude Browser SDK 2”.)
window.amplitudeandwindow.amplitude.trackare available when AB Tasty runs.The connector uses
amplitude.track()to send theABTastyevent. (See “Amplitude track” method.)
How Campaign Data Is Sent
AB Tasty sends one analytics event ABTasty for each campaign exposure. The event payload contains:
abtasty_campaign:<campaignName> (<campaignId>)abtasty_variation:<variationName> (<variationId>)

How to Set Up the Integration (AB Tasty)
Go to Integrations → Integration Hub.
(analytics browser) and select it.
Click on Create
Give the connector a name.
(Optional) Tick Automatically add to future campaigns.
Click Create.
How to Check if Events Are Sent Properly
Console (Debug Mode)
Open your website.
Paste this in the browser console:
document.cookie = "abTastyDebug=true;path=/;";Trigger an AB Tasty campaign. You should see a debug log indicating the
ABTastyevent was sent.

Network Tab
Open DevTools → Network.
Filter for requests to:
https://api.eu.amplitude.com/2/httpapiInspect the payload and confirm
event_propertiesinclude:abtasty_campaignabtasty_variation
Region endpoints may differ (e.g., US vs EU). Use the endpoint that matches your Amplitude data residency.
Retrieve the Event in Amplitude
Go to your Amplitude dashboard.
Open Live Events.
A new
ABTastyevent should appear, attached to the current user.Click the user/event to view details, including:
abtasty_campaignabtasty_variation
Good to Know
The event is automatically linked to an Amplitude user ID (e.g.,
user_42).You may set this yourself (see Custom User Identifier in Amplitude docs), or
Let Amplitude assign one randomly.
You can build user cohorts based on
ABTastyevents to group users by the campaigns/variations they saw.Works alongside your existing Amplitude events—use
ABTastyas a breakdown dimension in funnels and retention charts.
FAQ
Does AB Tasty create users in Amplitude? No. Amplitude creates user profiles according to its standard behaviour when events arrive.
Can we change the event name or keys?
Use the defaults (ABTasty, abtasty_campaign, abtasty_variation) for consistent reporting.
Is an Amplitude API key needed in AB Tasty? No. This integration utilises your client-side Amplitude SDK, which is already on the site.
Last updated
Was this helpful?

