# Segment → Mixpanel → Salesforce, so sales sees product-qualified leads

Appsmith, growth engineer, 2024 to now. Turning marketing-site and product events into attributed pipeline and PQLs that reach sales.

Stack: Segment, Mixpanel, Salesforce

## Problem

Appsmith sells to developers in two ways: self-serve signups and an enterprise sales team. The data that connects them was spread across tools. Marketing could see sessions, product could see usage, and sales could see Salesforce, but nobody could follow one account from first visit to pipeline. Sales enriched and routed leads by hand. Experiments on the site were hard to judge because conversions didn't line up across tools.

## Constraints

I'm the only engineer on the marketing side and I report to the VP of Marketing. Product marketing owns the words. I ship the page, instrument the funnel and measure the lift. I can't change the product's own data model, so everything has to work with the events it already emits. Customer data and internal dashboards stay private, so nothing here shows real accounts.

## System

Site: appsmith.com is a Next.js site on Vercel with a headless CMS. I own the architecture, the component library, the signup flows and performance.

Events: Site and product events go through Segment into Mixpanel with one event taxonomy and identity resolution, so an anonymous visit and a signed-up user become the same person.

Attribution: Mixpanel feeds Salesforce, so each opportunity carries its acquisition source. Signup and demo-request conversions are also sent server-side to the Google, Meta and LinkedIn ad platforms.

Enrichment and routing: Reo.dev developer-intent signals and Clay enrichment are joined with CRM records in n8n. Accounts showing real engagement are scored and routed to the right rep without anyone copying data by hand.

Scoring: Product usage from Mixpanel, developer intent from Reo.dev, site visits and company data are combined into one behaviour score per account. When an account crosses the threshold, Salesforce starts an email sequence, the rep gets a Slack alert, and the account appears on their list in Reo.dev.

Activation loop: A cohort analysis in Mixpanel showed that users who connect several data sources stay much longer, but nothing pushed users towards that point. I instrumented the integration milestone as an event and built an n8n workflow that finds users one integration short of it and shows them an in-app tooltip and an email sequence. A Clay step keeps sales alerts to accounts with 50+ seats. There were no handoffs: I did the instrumentation, the tooltip and the workflow myself, shipped a working version and iterated.

Agents: n8n, Trigger.dev and the Claude API run reporting agents that surface funnel performance, with guardrails so nothing malformed is written to Salesforce.

Market intelligence: A content engine built on n8n and LLM workflows watches Reddit and developer forums, LinkedIn and X, competitor sites and G2 reviews. It posts a digest to Slack, writes a report and sends the people and companies it finds to the CRM as prospects.

Experiments: A/B tests on the signup and demo-request flows: hypothesis, build, ship, read the result, decide.

## Outcomes

- **+18% signup conversion**: Raised signup conversion on appsmith.com through A/B tests on the onboarding and signup flows. Experiments on signup and demo-request flows, measured in Mixpanel. (Appsmith · 2024–now; Self-reported · no public source) Names: Mixpanel, Segment, A/B testing, experimentation, conversion optimization.
- **+22% demo-request conversion**: Raised demo-request conversion on appsmith.com with the winning variant of a test program on the signup and demo-request flows. 40+ tests across the signup and demo-request flows. (Appsmith · 2024–now; Self-reported · no public source) Names: A/B testing, experimentation, conversion optimization.
- **$150K+ annual pipeline**: Growth experiments on appsmith.com contributed to annual pipeline. Attributed through Segment → Mixpanel → Salesforce. (Appsmith · 2024–now; Self-reported · no public source) Names: experimentation, attribution.
- **6 channels attributed**: Designed attribution from acquisition source to pipeline in Salesforce. Segment → Mixpanel → Salesforce, multi-touch. (Appsmith · 2024–now; Self-reported · no public source) Names: Segment, Mixpanel, Salesforce, attribution, multi-touch attribution.
- **12+ hrs/week of manual sales ops removed**: Built lead enrichment and routing that connects Reo.dev developer-intent signals, Clay and the CRM. n8n workflows feeding HubSpot and Salesforce routing. (Appsmith · 2024–now; Self-reported · no public source) Names: Reo.dev, Clay, Salesforce, n8n, HubSpot, lead enrichment, lead routing.
- **LCP 2.8s → 1.8s**: Cut Largest Contentful Paint on appsmith.com. Next.js marketing site on Vercel with a headless CMS. (Appsmith · 2024–now; Self-reported · no public source) Names: Next.js, TypeScript, Vercel, Contentful, Core Web Vitals, web performance.
- **~45K organic sessions/month**: Grew organic traffic on appsmith.com. (Appsmith · 2024–now; Self-reported · no public source) Names: SEO.
- **+28% integration milestone hit rate**: Built a workflow that finds users one integration short of the retention threshold and nudges them with an in-app tooltip and an email sequence. In the first week after launch; n8n workflow on a milestone event in Mixpanel. (Appsmith · 2024–now; Self-reported · no public source) Names: n8n, Mixpanel, activation, lifecycle automation, cohort analysis, event instrumentation.
- **2.4x PQL-to-demo conversion**: Flagged expansion-ready accounts for sales, with a Clay enrichment step that keeps alerts to accounts with 50+ seats. Flagged accounts compared with the baseline PQL-to-demo rate. (Appsmith · 2024–now; Self-reported · no public source) Names: Clay, n8n, PQL scoring, lead qualification, sales alerts.
- **~6 hrs/week of manual research removed**: Built an AI content engine that automates market intelligence across Reddit and forums, LinkedIn and X, competitor sites and G2 reviews. n8n and LLM workflows; output is a Slack digest, a report and prospects sent to the CRM. (Appsmith · 2024–now; Self-reported · no public source) Names: n8n, AI workflows, LLM workflows, market research automation.

## What broke

Tracking breaks silently. A tag change, a renamed event or a CRM workflow edit doesn't throw an error. It just makes the numbers wrong, and you find out weeks later in a report. Most of my debugging here was finding those breaks before they spoiled a quarter of reporting. That's why I later built RunMend.

## What I'd do today

I'd write the tracking plan and identity rules before building any dashboards, and add automated checks on event volume from day one instead of relying on someone noticing a drop. I'd also put the enrichment and routing logic in versioned code with tests earlier, not in one-off workflows.

Source: https://letdawid.work/work/appsmith-pql. By Dawid Nawrocki, Growth & GTM Engineer.
