Case Study 01
Connecting a niche e-commerce platform to marketing automation
- Client
- Custom t-shirt printing business
- Platforms
- Deco Network, Klaviyo, Make.com
- Work
- Custom integration, on-site tracking, order & customer sync
At a glance
- Challenge
- The store ran on Deco Network, a specialized platform with no connection to any marketing tool. Klaviyo couldn't see browsing, carts, or purchases.
- Solution
- Custom on-site tracking plus an hourly order and customer sync, built so the client can monitor it without a developer.
- Outcome
- Abandoned-cart, browse-abandonment, and post-purchase automations became possible for the first time.
The challenge
Deco Network is purpose-built for decorated apparel — product configuration, artwork, and orders — but sits outside the mainstream e-commerce ecosystem and ships with no marketing integrations or outbound webhooks. Without behavioral and purchase data, Klaviyo was limited to sending broadcasts; none of the automations that drive store revenue could run.
What I built
On-site behavior tracking
Custom JavaScript in the storefront templates sends product views and add-to-cart events (product, price, image) to Klaviyo in real time, tied to the right customer.
Hourly order & customer sync
A Make.com scenario pulls new and updated orders from the Deco Network API every hour and writes customer profiles and purchase events into Klaviyo.
One customer record
Email address joins on-site behavior and order history on a single Klaviyo profile, so automations act on the full picture.
The result
The store can now run the automations it was missing, and the client owns the integration day to day.
- Abandoned-cart and browse-abandonment flows triggered by real on-site behavior
- Post-purchase flows triggered by actual orders
- Sync run history, failures, and schedule visible and adjustable in Make.com — no developer required
Technical details
Technical Stack & Tools
- Client-side event tracking
- Custom JavaScript deployed into the Deco Network storefront templates, firing on product-view and add-to-cart events. Each event pushes the product identifier, name, price, and image to Klaviyo along with the visitor's identity so the event lands on the right profile.
- Server-side order & customer sync
- A scheduled Make.com scenario running hourly. It authenticates against the Deco Network API, pulls orders created or updated since the last run, transforms the payload into Klaviyo's expected shape, and writes both profile records and purchase events. Make.com was chosen over a hosted script for maintainability: the client can see the run history, inspect failures, and adjust the schedule without a developer.
Protocols & Specs
- Transport
- HTTPS REST with JSON payloads in both directions.
- Deco Network API
- REST/JSON, HTTP Basic authentication with credentials stored in Make.com's encrypted connection store rather than inline in the scenario. The orders endpoint is paginated, so retrieval runs as an iterator in Make.com that requests successive pages until the response returns an empty or short page, then passes the accumulated orders downstream for transformation.
- Klaviyo API
- JSON:API-formatted request bodies with a dated revision header for version pinning. Client-side events authenticate with the public site key; server-side profile and event writes use a private API key held in Make.com's credential store, never exposed to the browser.
- Identity resolution
- Email address as the primary key joining anonymous on-site behavior to known customer records, so client-side events and server-side order data land on the same Klaviyo profile.
- Sync model
- Incremental hourly pull rather than webhook push, since Deco Network exposes no outbound webhooks.