---
title: "PostHog A/B Test Integration | RightMessage"
description: "RightMessage captures an rm_experience_impression event in PostHog with $feature/rm-<id> and an RM-<experienceId>-<variantId> string for every A/B test version."
canonical: "https://rightmessage.com/integrations/posthog"
---

# Analyze your RightMessage A/B tests in PostHog.

RightMessage is a personalization platform with built-in A/B testing. When a visitor sees a version of a test, RightMessage captures an rm_experience_impression event in PostHog with a $feature/rm-\<experienceId> property. You can break down funnels, retention, and other insights by the version each visitor saw.

Start here

## Keep your PostHog setup.

RightMessage calls the posthog object already on your page. It does not install PostHog for you.

[Book a demo](https://rightmessage.com/demo)[Start a 14-day trial](https://app.rightmessage.com/register?nocc=true)

## What RightMessage sends to PostHog.

### An rm_experience_impression event

Each impression is captured as rm_experience_impression. It sets $feature/rm-\<experienceId> to the version's ID, plus exp_variant_string, rm_experience_id, rm_experience_kind, rm_experience_name, rm_variant_id, rm_variant_name, and, when present, rm_campaign_id and rm_resource_id.

### The RM-\<experienceId>-\<variantId> string

exp_variant_string has the format RM-\<experienceId>-\<variantId>, for example RM-cpn_5didDYbc-control. The Send to your analytics panel on each test card lists the string for every version.

### Every test, in your reports

Impressions come from question, form, offer, and flow split tests, campaign holdbacks and A/B tests. Enable the PostHog app card in Integrations, then publish.

## How to set up the PostHog hand-off.

- Load PostHog on your page so window\.posthog.capture is available.
- In RightMessage, open Integrations, find the PostHog card, and click Enable. Changes reach your website after you publish.
- Break down insights by the $feature/rm-\<experienceId> property, or filter on exp_variant_string.
- Page tests, audience tests, campaign holdbacks, and legacy split tests all send the event.
- RightMessage also sends its rm\_ interaction events and identifies visitors it already knows by email.

## Frequently asked questions.

Which event does RightMessage send to PostHog?+

rm_experience_impression, captured when a visitor is assigned a version of a page test, audience test, campaign holdback, or legacy split test.

What is the $feature/rm-\<experienceId> property?+

Each impression sets $feature/rm-\<experienceId> to the ID of the version the visitor saw. PostHog reads $feature/ properties from custom exposure events, so you can break results down by version.

What does the exp_variant_string look like?+

RM-\<experienceId>-\<variantId>, for example RM-cpn_5didDYbc-control. The Send to your analytics panel on each test card lists it for every version.

Need detailed setup instructions? Read our [PostHog setup guide →](https://rightmessage.com/help/analyze-tests-in-posthog)

Ready to launch?

## Start personalizing your PostHog experience.

Keep PostHog in place and add personalized copy, proof, forms, and offers without rebuilding your site.

[Book a demo](https://rightmessage.com/demo)[Start a 14-day trial](https://app.rightmessage.com/register?nocc=true)
