The build
A product led growth tech stack has eight layers: product analytics, an event pipeline, a warehouse, reverse ETL, the CRM, sales alerts, lifecycle email and billing. The logos matter less than the wiring. Track 10 to 15 events that carry an account id, roll them up per account, score them, and push a few fields and alerts to the CRM.
Most PLG teams already own half of this stack. They have PostHog or Mixpanel, a Stripe account and a CRM. What they lack is the wiring between them. Events come in without account ids. Scores live in a dashboard nobody opens. Reps hear about a hot account a week after the team hit its seat limit.
I covered how to define a product qualified lead in the PQL definition guide. This playbook is the plumbing under it. It covers the layers, the tracking plan, the account rollup in SQL, the three ways to get data into the CRM, the alerts and plays, identity matching, privacy, three stacks by budget, how it breaks and a 30-day build.
Key takeaways
- Account ids first. Every event needs an account or workspace id, or none of the sales wiring works.
- Track less. Ten to 15 well-named events beat 200 autocaptured ones for sales use.
- Two pipes. Use webhooks for the few alerts that need speed and reverse ETL for nightly scores.
- Route by fit. Send high-fit accounts to sales assist and leave the rest to self-serve email.
- Start scrappy. A free analytics tier, Postgres and a glue tool can run the whole thing for a seed team.
What layers does a PLG tech stack need?
A PLG stack has one job: turn what users do in the product into the right next step. Sometimes that step is an email. Sometimes it is a rep's call. Sometimes it is nothing, because the user is doing fine alone.
Eight layers do that job. You won't buy all eight on day one. But you should know which layer each tool fills, so you don't pay twice.
| Layer | Job | Common tools | Need it when |
|---|---|---|---|
| Product analytics | Capture and explore events | PostHog, Mixpanel, Amplitude | Day one |
| Event pipeline (CDP) | Collect events once, send to many tools | Segment, RudderStack | Three or more tools need events |
| Warehouse | Store events and join them with CRM and billing | Snowflake, BigQuery, Supabase or Postgres | Scores need data from two or more systems |
| Reverse ETL | Push modeled fields from the warehouse to tools | Hightouch, Census | You have a warehouse and a CRM to feed |
| CRM | Hold accounts, owners and tasks | HubSpot, Salesforce, Attio | Day one, once anyone sells |
| Sales alerts | Tell a rep something happened | Slack, CRM tasks, n8n or Zapier | First sales-assist hire |
| Lifecycle email | Nudge users who are not sales-ready | Customer.io, Intercom | Day one for onboarding |
| Billing | Plans, seats, payments | Stripe, Chargebee, Paddle | Day one |
Product usage signals start in analytics or your own app database. Everything to the right of that is a copy or a summary. That is why the tracking plan matters so much. A bad event at the source becomes a bad field in five tools.
How do the layers connect?
Here is the shape I build for most B2B PLG teams. Read it top to bottom.
App (web, server)
|-- track / identify / group calls
v
Analytics (PostHog) ----> Event pipeline (optional) ----> Warehouse
| |
|-- realtime alert events --> webhook --> n8n or Zapier |-- nightly SQL rollup
| | v
| v Reverse ETL (Hightouch)
| Slack + CRM task |
v v
Lifecycle email (Customer.io) <------------------------- CRM company fields
Billing (Stripe) --> webhook --> CRM plan, seats, MRR
Two pipes feed the CRM. A fast pipe carries a handful of alert events in seconds. A slow pipe carries scores and rollups once a day. Billing gets its own pipe, which I walk through in the Stripe to CRM webhook build.
Which analytics tool should you pick?
Pick the one your engineers will instrument well. The tools overlap a lot now. What differs is pricing shape and how they handle accounts.
PostHog gives you the first 1,000,000 product analytics events each month free, and its group analytics add-on also has its first 1,000,000 events free, per PostHog's pricing page as of November 2026. It also bundles session replay, feature flags and a data pipeline, which makes it a strong default for a small team.
Mixpanel includes up to 1M events a month on its free plan, but its group analytics add-on is only sold on paid plans, per Mixpanel's pricing page as of November 2026. Amplitude offers 2M events a month free and lists account-level analytics on its Growth and Enterprise plans, per Amplitude's pricing page as of November 2026.
That account feature is the deciding factor for B2B. If you sell to teams, you need to group events by workspace. Check which plan gives you that before you compare headline prices.
How do you write an event tracking plan for sales?
A tracking plan is a short document. It lists every event you send, what each property means and which id ties it to a user and an account. Product teams often have one for funnels. Sales needs a smaller, stricter one.
Write it in a sheet or a YAML file in the repo. Give it one owner. Any new event that sales will use goes through that owner first.
What naming rules keep events clean?
Use one pattern and never break it. I use object then action, past tense, in snake_case. So it's project_created, not Create Project or newProject.
- Object first.
invite_sentandinvite_acceptedsort together in every tool. - Past tense. An event records something that already happened.
- No values in names. Use
plan_upgradedwith aplanproperty, notupgraded_to_pro. - Same names everywhere. The web app, the server and the mobile app send the same event names.
- Property names match the CRM. If the CRM field is
seat_count, the event property isseat_counttoo.
Identify, track and group: what's the difference?
Three calls do the work. Most PLG wiring bugs come from mixing them up.
Identify says who the user is. You call it at signup and login with a stable user id and traits like email and role. Track records an action, like report_shared. Group ties the user to an account, like a workspace or company.
In the Segment spec, the group call needs a groupId from your own database plus a user id or anonymous id, and it takes traits such as name, plan and employees. PostHog works the same way. You call posthog.group('company', id) and later events link to that group. A project can have up to 5 group types, per PostHog's group analytics docs.
One PostHog detail trips people up. Group membership is stored on each event, not on the person. So every event that matters for sales must carry the group. If a server-side event skips it, that event never counts toward the account.
Which 10 to 15 events matter for sales?
Sales needs events that show value, team spread and buying intent. That's it. Feature-level clicks belong in product analytics, not in the CRM.
Here is a sample plan for a B2B collaboration product. Swap the value events for yours.
| Event | When it fires | Key properties | Why sales cares |
|---|---|---|---|
account_created |
Workspace created | account_id, signup_source, email_domain |
Start of the clock |
user_signed_up |
Each new user joins | account_id, user_id, role |
Counts people per account |
invite_sent |
User invites a teammate | account_id, invitee_domain |
Team spread starting |
invite_accepted |
Teammate joins | account_id, user_id |
Team spread confirmed |
integration_connected |
Connects a tool | account_id, integration |
Switching cost rising |
core_action_completed |
The value moment | account_id, action_type |
Activation |
project_shared |
Shared outside the creator | account_id, share_type |
Value spreading |
usage_limit_hit |
Hits a plan limit | account_id, limit, plan |
Commercial moment |
pricing_page_viewed |
Views pricing in app or site | account_id, source |
Buying research |
checkout_started |
Opens checkout | account_id, plan, seats |
Buying now |
plan_upgraded |
Plan changes up | account_id, plan, mrr |
Expansion |
plan_downgraded |
Plan changes down | account_id, plan, mrr |
Risk |
admin_settings_viewed |
Views SSO, security or roles | account_id, page |
Enterprise need |
export_completed |
Exports data | account_id, export_type |
Could be value or churn risk |
That's 14 events. Most teams can ship this in a sprint. Note that account_id is on every row. That is the rule that makes the rest of this playbook work.
What does a clean event look like?
Here is a trimmed example of a server-side event in the Segment format. The data is fake.
{
"type": "track",
"event": "usage_limit_hit",
"userId": "usr_8821",
"messageId": "msg_4f2a9c1e",
"timestamp": "2026-11-20T15:42:10Z",
"context": {
"groupId": "acct_1042"
},
"properties": {
"account_id": "acct_1042",
"limit": "seats",
"limit_value": 5,
"plan": "team",
"email_domain": "example.com"
}
}
I put account_id in the properties even when the group is set in context. It costs nothing, and it survives every tool that drops context fields. The messageId matters too. Downstream tools use it to throw away duplicates.
How do you roll usage up to the account?
Raw events are useless to a rep. A rep wants one row per account with a few numbers. That row is the rollup. You build it in SQL, in the warehouse or in Postgres, and refresh it daily.
This is where a warehouse earns its keep. You can join product events with billing and CRM data in one query. If you don't have a warehouse yet, Postgres on Supabase or your app's read replica works fine at seed stage.
The rollup query
Here is a short version for Postgres or BigQuery-style SQL. It assumes an events table with account_id, user_id, event and ts.
with last_14 as (
select *
from events
where ts >= current_date - interval '14 days'
and account_id is not null
)
select
account_id,
count(distinct user_id) as active_users_14d,
count(*) filter (where event = 'core_action_completed') as core_actions_14d,
count(*) filter (where event = 'invite_accepted') as invites_accepted_14d,
max(ts) filter (where event = 'usage_limit_hit') as last_limit_hit_at,
max(ts) filter (where event = 'pricing_page_viewed') as last_pricing_view_at,
bool_or(event = 'admin_settings_viewed') as viewed_admin_14d,
max(ts) as last_active_at
from last_14
group by account_id;
In BigQuery, swap count(*) filter (where ...) for countif(...) and bool_or for logical_or. The logic doesn't change.
Turning the rollup into a score
Now add fit data and turn the numbers into points. Keep the weights in one place so you can change them without hunting through queries.
select
r.account_id,
a.company_domain,
a.employee_count,
( case when r.active_users_14d >= 3 then 25 else 0 end
+ case when r.core_actions_14d >= 5 then 30 else 0 end
+ case when r.last_limit_hit_at >= current_date - 7 then 20 else 0 end
+ case when r.last_pricing_view_at >= current_date - 7 then 15 else 0 end
+ case when a.employee_count between 50 and 2000 then 20 else 0 end
+ case when r.last_active_at < current_date - 14 then -20 else 0 end
) as pql_score
from account_rollup r
join accounts a using (account_id);
The points here are placeholders. Set yours by comparing accounts that converted with ones that didn't, which the PQL guide walks through step by step. The structure is what matters: behavior plus fit, with decay for silence.
How do you get product data into the CRM?
You have three options: a direct integration, webhooks or reverse ETL. Most teams end up using two of them. The trick is knowing which data goes down which pipe.
| Direct integration | Webhooks plus glue | Reverse ETL | |
|---|---|---|---|
| How it works | Analytics tool syncs to the CRM natively | App or tool posts events to n8n, Zapier or a function, which writes to the CRM | SQL model in the warehouse syncs to CRM fields on a schedule |
| Speed | Varies by tool | Seconds | Hourly to daily |
| Setup | Low | Medium | Medium to high |
| Who maintains it | Marketing ops | GTM engineer | Data or GTM engineer |
| Best for | Simple cohorts and a few fields | Alerts that need speed | Scores, rollups, anything joined |
| Breaks when | You need logic the integration lacks | Volume grows or nobody watches errors | Model changes upstream without notice |
When are webhooks the right pipe?
Use a webhook when a rep should act within the hour. That means usage_limit_hit, checkout_started on a large plan, admin_settings_viewed and a pricing view by an active workspace. Four or five events, no more.
A webhook is your app or tool calling a URL the moment something happens. Your glue tool catches it, looks up the company in the CRM and creates a task. I cover the mechanics, retries and security in the webhooks guide for GTM teams.
Two rules keep this pipe healthy. First, make every write idempotent, which means sending the same event twice gives the same result as sending it once. Use the event's messageId as a key and skip repeats. Second, verify the sender. Stripe, for example, signs each webhook in a Stripe-Signature header and retries undelivered events for up to three days, per Stripe's webhook docs. Retries are good, but they mean your handler will see the same event more than once.
When is reverse ETL the right pipe?
Use reverse ETL for anything you computed. Scores, active user counts, last active dates and the PQL flag all come from a SQL model. Reverse ETL copies that model's output into CRM fields on a schedule.
Hightouch has a free plan with 2 active syncs, per Hightouch's plan docs as of November 2026. That's enough for one company sync and one contact sync. Census does the same job and is now part of Fivetran, which announced the acquisition in May 2025. Segment also includes reverse ETL records on its free and Team plans, per its pricing page.
The field map I start with
Whatever the pipe, the CRM ends up with the same small set of fields. Put them on the company record.
CRM COMPANY FIELD SOURCE PIPE REFRESH
product_account_id accounts.account_id reverse ETL daily (match key)
pql_score score model reverse ETL daily
pql_status score >= threshold reverse ETL daily
active_users_14d account_rollup reverse ETL daily
last_active_at account_rollup reverse ETL daily
plan_name, seat_count Stripe subscription webhook realtime
mrr Stripe subscription webhook realtime
last_limit_hit_at usage_limit_hit event webhook realtime
last_pricing_view_at pricing_page_viewed webhook realtime
Match on product_account_id, never on company name. If the CRM has no company with that id, write the row to a review queue. Don't let the sync create a new company. Duplicate companies are the fastest way to lose a rep's trust.
Which alerts and plays should product signals trigger?
An alert is only useful if it comes with a play. Each one should tell the rep what happened, why it matters and what to do in the next hour.
| Signal | Trigger rule | Route to | Play | Respond within |
|---|---|---|---|---|
| Activation milestone | First core_action_completed plus 2 or more active users |
Self-serve email; sales only if high fit | Send a use-case guide; rep sends a short note to fit accounts | 1 day |
| Team invite wave | 3 or more invite_accepted in 7 days |
Sales assist if fit is high | Offer a team setup call | 1 day |
| Usage limit hit | usage_limit_hit on seats or projects |
Sales assist if 5 or more users, else in-app upgrade | Explain plan options, offer a trial of the next tier | 2 hours |
| Pricing visit by active workspace | pricing_page_viewed and active in last 7 days |
Sales assist if fit is high | Answer pricing questions before they ask | Same day |
| Admin or security interest | admin_settings_viewed on SSO or roles |
Sales, always | Offer the security pack and an enterprise call | Same day |
| Downgrade or silence | plan_downgraded or no activity for 14 days |
Customer success or lifecycle email | Check in, ask what changed | 2 days |
Speed to lead matters here like it does with demo requests. A team that just hit its seat limit is deciding today. Next week they will have picked a workaround.
Sales assist or self-serve?
Not every signal deserves a human. Most PLG accounts should never talk to sales. They buy on a card and that's the point.
I route on two questions. Is the account a fit for a larger contract? And is the signal commercial, not just usage? Both must be yes for a rep to get the alert.
IF company_fit = high (ICP size, work domain, target industry)
AND signal in (usage_limit_hit, pricing_page_viewed, admin_settings_viewed, invite wave)
THEN create CRM task for account owner + Slack alert
ELSE IF signal = usage_limit_hit
THEN in-app upgrade prompt + Customer.io email
ELSE
THEN lifecycle email only
Then assign the owner with your normal lead routing rules. If the company already has an owner, the alert goes to them. If not, use the same territory or round robin logic you use for inbound.
What does a good alert look like?
Short, specific and linked. A rep should decide in five seconds whether to act.
:rotating_light: Usage limit hit: Acme Corp (acct_1042)
Plan: Team, 5 of 5 seats used. 7 active users in 14 days.
Fit: 220 employees, SaaS, owner Jane Doe
Last pricing view: today
Play: offer Business trial + team setup call
CRM: open company record
Post alerts to a channel per team or as a direct message to the owner. Slack limits incoming webhooks and posts to about one message per second per channel, with short bursts allowed, per Slack's rate limit docs. That's plenty for alerts. If you ever hit it, you are sending too many alerts, not too few.
How do you match workspaces to companies?
This is identity resolution for PLG. You have workspaces and users. The CRM has companies and contacts. Something has to connect them, and it is messier than it looks.
What do you do with personal email signups?
A user who signs up with a Gmail address is an individual until proven otherwise. Don't create a company for them, and don't guess.
Look for proof inside the workspace instead. Common clues:
- A teammate in the same workspace uses a work domain.
- An invite was sent to a work address.
- The billing email in Stripe uses a company domain.
- The user typed a company name or website during onboarding.
Ask for the company website in onboarding if you can. One optional field saves hours of matching later. Your enrichment tool can then turn that domain into firmographics like size and industry.
How do you match a workspace to a company domain?
Run this as a nightly job. Work through the steps in order and stop at the first confident match.
- Use a stored match. If the workspace already has a
crm_company_id, keep it. - Pick the main work domain. Count users per email domain, drop personal domains, take the most common one.
- Look up the domain in the CRM. Match on the company's primary domain field.
- Check other domains. Some companies have several domains. Match on an alternate domains field if your CRM has one.
- Queue the rest. No match means a review queue, not a new record.
Keep your personal domain list in a table, not hard-coded. It changes, and someone will need to add a regional provider.
What if one company has many workspaces?
It happens a lot. Three teams at the same company each start a trial. In the CRM, that should be one company with three workspaces under it.
Store workspaces as their own object or as rows in the warehouse, each with a crm_company_id. Then sum active users across workspaces in the rollup. Three teams of four users is a 12-person signal. Seen separately, each one looks small.
How do you handle privacy and consent in a PLG stack?
Product data is personal data. Moving it into a CRM and an email tool means more people and vendors can see it. Treat that as a design choice, not an afterthought.
A few rules I follow on every build:
- Sync summaries, not raw events. The CRM gets counts and dates, not a log of every click.
- Keep sensitive content out. Never send document titles, message text or file names to sales tools.
- Respect consent and opt-outs. If a user declined analytics cookies or opted out of marketing email, the pipeline must honor it downstream too.
- Separate product email from marketing email. Onboarding and billing messages are different from sales nurture. Your email tool should know which is which.
- Check vendor terms. Every tool in the chain processes user data. Make sure each one has a data processing agreement you've signed.
- Write down retention. Decide how long raw events live in the warehouse, and delete on schedule.
Your privacy policy should say that usage data informs sales and support outreach. Have your counsel review the wording for the regions you sell in. Rules differ by region, and this is not a place to guess.
What does a PLG stack cost at three budgets?
Here are three real stacks, from a seed team to a scaled one. Prices are list prices I read on each vendor's page as of November 2026. Your quote may differ, and usage-based tools grow with volume.
The scrappy stack (seed, under 1M events a month)
- Analytics: PostHog free tier, with group analytics, 1,000,000 events free each.
- Warehouse: Postgres on Supabase. The free plan includes a 500 MB database but pauses after a week of inactivity, so most teams move to Pro at $25 a month, per Supabase's pricing page.
- Glue and alerts: n8n Cloud Starter at 20€ a month billed annually for 2.5K executions, per n8n's pricing page.
- CRM: HubSpot or Attio on whatever plan you already have.
- Lifecycle email: Customer.io Essentials from $100 a month for 5,000 profiles, per Customer.io's pricing page.
- Billing: Stripe, with its own webhooks.
There's no CDP and no reverse ETL tool here. n8n runs the nightly rollup query and writes fields to the CRM, and it catches the alert webhooks.
The mid stack (Series A to B, a few sales-assist reps)
- Analytics: Mixpanel Growth or Amplitude with account-level analytics, or PostHog on paid usage.
- Event pipeline: Segment Team from $120 a month with 10,000 MTUs included, per Twilio Segment's pricing page.
- Warehouse: BigQuery, where the first 1 TiB of queries and 10 GiB of storage each month are free, then $6.25 per TiB on demand, per Google's BigQuery pricing.
- Reverse ETL: Hightouch, starting on the free plan's 2 active syncs.
- CRM: HubSpot Sales Hub Professional, listed at $90 a seat per month on annual billing plus a $1,500 onboarding fee, per HubSpot's pricing page.
- Alerts: Slack plus n8n or Zapier.
- Lifecycle email and billing: Customer.io and Stripe.
The scaled stack (many reps, many tools, a data team)
- Analytics: Amplitude or Mixpanel on enterprise terms.
- Event pipeline: RudderStack Growth from $265 a month for 1 million events, per RudderStack's pricing page, or Segment Business on a quote.
- Warehouse: Snowflake or BigQuery, owned by a data team, with dbt models.
- Reverse ETL: Hightouch or Census on a paid plan.
- CRM: Salesforce, with a custom object for workspaces.
- Lifecycle email: Customer.io Premium from $1,000 a month billed yearly, per the same Customer.io page.
The stack choice depends on stage more than anything. I break that down further in the GTM stack by stage guide.
How does a PLG stack break?
PLG stacks tend to break in one of five ways. None of them is a tool problem. All of them are fixable in a week once you see them.
Event drift
An engineer ships a new onboarding flow and renames core_action_completed to first_action_done. Nobody tells sales. Scores drop to zero for new accounts and reps think signups dried up.
The fix is a tracking plan with an owner and a check. Segment and RudderStack can block or flag events that aren't in the plan. Without a CDP, run a daily query that counts each event name and alerts when a known event drops to zero.
Missing account ids
Server-side events often skip the group. So do events fired before the user joins a workspace. Those events count for the user but never for the account.
Add a check that fails loudly. A nightly query that counts events with a null account_id by event name will show you exactly which code path forgot it.
Alert fatigue
Week one, reps love the alerts. Week four, the channel is muted. Too many alerts with too little context train people to ignore them.
Review alert volume per rep every week for the first month. If a rep gets more than a handful a day, tighten the fit filter. Each alert should feel like a lead, not a notification.
Duplicate companies
A sync that creates companies when it can't find a match will flood the CRM. Reps then see two Acme records, one with the product data and one with the deal.
Never let a product sync create companies. Match on the product account id, queue the misses and have a person resolve them weekly.
Retries create duplicate tasks
Webhook senders retry when your endpoint is slow or down. Without a dedupe key, one limit hit becomes three CRM tasks. Store each event id you've processed and skip any you've seen.
How do you build a PLG stack in 30 days?
This plan assumes you have analytics, a CRM and Stripe already. It gets you to working alerts and a daily score in a month.
Week 1: write the tracking plan
- List the 10 to 15 events from the table above, adapted to your product.
- Define
account_idand make sure every event carries it. - Add the group call at login and workspace switch.
- Name one owner for the plan.
Week 2: instrument and check
- Ship the events, server-side where you can.
- Run the null
account_idcheck daily. - Build the account rollup query and look at the top 20 accounts by hand.
- Add the company website field to onboarding.
Week 3: wire the CRM
- Create the company fields from the field map.
- Set up the nightly sync, by reverse ETL or a scheduled n8n job.
- Build the workspace to company matching job and the review queue.
- Connect Stripe webhooks for plan, seats and MRR.
Week 4: alerts and plays
- Turn on two alerts first: usage limit hit and pricing view by an active workspace.
- Write the play for each, with a message template.
- Route by fit, using your owner rules.
- Review alert volume and rep feedback on Friday, then add the next alert.
What should you do this week?
Pick one thing and finish it. If your events lack account ids, fix that first. Nothing else works without it. If they have ids, write the rollup query and look at your top accounts. You will spot at least one team that should have heard from sales already.
Then pick the first alert. Usage limit hit is usually the best start, because the signal is clear and the play is obvious.
If you want help wiring this up, that's the kind of build we do in our GTM engineering work. Either way, start with the tracking plan. It is the cheapest fix with the biggest payoff in the whole stack.