JS Snippet Triggered Event-Driven Marketing
Klaviyo: the $665M/year HubSpot for ecommerce
The key shift was that marketing software stopped guessing from CSVs and started reacting to live behavior. A small JS snippet turned every page view, signup, cart add, and purchase into structured customer data inside the app itself. That made tools like Intercom, Braze, Customer.io, Iterable, and Klaviyo feel more like operating systems for messaging, because they could decide who to contact and when based on what a person had just done.
-
Before this model, teams often exported lists, grouped users by hand, and sent one campaign per segment. With an embedded snippet, the product could build a user profile automatically, update it after every action, and trigger emails or messages without manual file work.
-
This also created a new product shape. Intercom leaned into support and in app messaging, Braze and Iterable into multi channel lifecycle marketing, Customer.io into developer friendly event driven messaging, and Klaviyo into ecommerce retention tied closely to Shopify merchant workflows.
-
Once Segment popularized a universal analytics.js layer in 2012, the data collection layer became more portable. That lowered switching costs between messaging tools, because customer events could be routed into whichever destination app a company wanted, pushing vendors to bundle more CRM and CDP functionality to keep data and workflows inside their own product.
The market keeps moving toward whoever owns both the event stream and the workflow. That is why these companies have expanded beyond messaging into profiles, segmentation, orchestration, and CDP features. The next leg is deeper verticalization, where the winning product is the one that best understands a merchant, app team, or enterprise’s specific customer data and acts on it fastest.