Most Shopify merchants run Klaviyo for email and SMS. Most also know that automated flows, including post-purchase sequences, win-back campaigns, and review requests, are where the real retention magic happens. What fewer merchants realize is that GoodAPI slots directly into those flows, so the same Klaviyo automations that drive repeat purchase can also show customers the real-world impact of every order they place.
This guide covers everything: how the GoodAPI Klaviyo integration works, the setup steps, and four high-value use cases you can build in an afternoon.
Why Combine Klaviyo and GoodAPI?
On its own, GoodAPI plants a verified tree (or removes a bottle of ocean-bound plastic) for every order, product, or review on your Shopify store. Trees are tracked via GPS, planted through Veritree’s globally-verified reforestation projects, and reported back to you in a live dashboard.
The problem is that most customers never see that data. They complete checkout, get a standard confirmation email, and move on. The environmental impact happens. It just stays invisible.
Klaviyo closes that gap. By connecting GoodAPI’s live impact feed to your Klaviyo account, you can pull real-time tree-planting numbers into any campaign or flow. The post-purchase thank-you email can say: “Your order just planted 1 tree. We’ve now planted 14,832 trees together.” That kind of message does two things: it validates the purchase decision and it starts building the identity that this shopper is someone who cares about what they buy.
When you combine environmental storytelling with Klaviyo’s segmentation and flow logic, you get something more powerful than either tool delivers alone.
What the Integration Covers
GoodAPI’s Klaviyo integration has two distinct layers, and it helps to understand both before jumping into setup.
Layer 1: Live impact data in email templates. GoodAPI exposes a web feed URL that Klaviyo reads as a JSON data source. Once connected, you can drop variables like {{ feeds.goodapi.total_trees_planted_merchant }} into any email template and Klaviyo will substitute in the live count at send time. Every campaign automatically reflects your most current impact numbers.
Layer 2: Event-driven automation. GoodAPI sends events into Klaviyo when impact actions occur, and you can also trigger tree planting directly from Klaviyo flows via webhooks. This lets you build sequences like “customer leaves a review, GoodAPI plants a tree, Klaviyo sends a thank-you email with the customer’s personal impact count” and the whole process is automated with no manual work required.
Setting Up the GoodAPI Web Feed in Klaviyo
This is the foundation layer. Once it’s in place, every email you send can include live impact data.
Get your GoodAPI feed URL
Log in to your GoodAPI dashboard, navigate to the Advanced section, and find the Klaviyo subsection. Click Setup Instructions to open the integration guide. You’ll see a unique feed URL tied to your account. Copy it.
Add the web feed in Klaviyo
In Klaviyo, go to Profile Settings (click your account name in the lower left) and find Other in the navigation. Select Web Feeds, then Add Web Feed.
Fill in the following:
- Feed Name: GoodAPI
- Feed URL: Paste the URL you copied from GoodAPI
- Request Type: GET
- Feed Format: JSON
Save, and Klaviyo will start polling that feed on its own schedule.
Add impact data to your templates
Inside any email campaign or flow template, insert the variable where you want the number to appear. The main ones are:
{{ feeds.goodapi.total_trees_planted_merchant }}for total trees planted by your store{{ feeds.goodapi.total_bottles_registered_merchant }}for total plastic bottles removed
You can use these in subject lines, preheader text, or email body copy. Klaviyo substitutes the live value at send time, so the numbers are always current.
Example copy: “Your order just planted a tree. Together, we’ve now planted {{ feeds.goodapi.total_trees_planted_merchant }} trees through Veritree’s verified reforestation projects.”
Use the Preview and Test function in Klaviyo to confirm the variable resolves correctly before sending.
Four Klaviyo Flows to Build With GoodAPI
Once the web feed is live, here are the highest-value automations to build.
1. Post-Purchase Impact Email
This is the most straightforward and often the highest-ROI flow. Trigger it on the “Placed Order” event in Klaviyo, with a delay of 24-48 hours after delivery confirmation.
The email shows:
- How many trees this specific order planted (usually 1, or more if you’ve set per-product or per-spend rules)
- Your store’s cumulative total using the feed variable
- A map or imagery of the Veritree project site where trees are planted
The goal is to make the environmental impact feel real and personal, not like a footnote in a confirmation email. Customers who receive a dedicated impact email are significantly more likely to mention your sustainability credentials when leaving reviews or sharing with friends.
Add a call-to-action at the bottom linking to your GoodAPI impact widget or sustainability page, so customers can see the full picture of what their purchases are doing.
2. Email Signup Welcome Flow
If you plant trees for email signups (GoodAPI supports non-purchase triggers, including list joins), the welcome sequence is where you tell that story.
In Klaviyo, set the flow trigger to “Joined List” for your newsletter or popup sign-up list. In the first email, sent within minutes of signup, tell new subscribers that their signup just planted a tree. This is a high-attention moment: they just opted in, the inbox engagement rate on welcome emails is typically 3-5x higher than regular campaigns, and you have their full attention.
If you are using Shopify Flow to trigger the tree-planting action on list joins, pair it with a Klaviyo flow so the email goes out at the same time the tree is planted. The synchronization matters: you want the email to arrive when the action is fresh, not 48 hours later.
3. Review Request With Impact Incentive
GoodAPI lets you plant trees specifically when customers leave reviews. Pair this with Klaviyo’s review request flow for a closed-loop incentive: ask for a review, explain that leaving one will plant a tree, then follow up with an impact confirmation once it happens.
The flow structure in Klaviyo looks like this:
-
Email 1 ( 7 days post-delivery): “How was your order? Leave a review and we’ll plant a tree in your honor.”
-
Wait for event: GoodAPI fires a “review tree planted” event into Klaviyo.
-
Email 2 (triggered by the event): “Your review just planted a tree. Here’s where it’s growing.” Include the impact feed variable showing the cumulative total.
Customers who receive this kind of follow-up report higher satisfaction scores and are more likely to leave a second review on a future order.
4. Impact Milestone Campaigns
Using Klaviyo’s segmentation combined with GoodAPI’s per-customer data, you can send milestone emails when a customer’s cumulative impact reaches a threshold.
Once that data is flowing, you can create segments like “customers who have contributed to planting 10 or more trees” and trigger a milestone email automatically.
These emails work particularly well for repeat buyers. A message that says “You’ve now helped plant 25 trees through your purchases. Here’s what that means for the reforestation project in Madagascar” creates a relationship narrative that generic loyalty points can’t match.
Shopify Flow as the Glue
For more complex triggers, like planting a tree when a customer reaches a certain spend threshold or when they hit Gold status in your loyalty program, Shopify Flow is often the right tool to handle the conditional logic, with GoodAPI doing the planting and Klaviyo handling the communication.
GoodAPI has a full library of ready-made Shopify Flows in its help center. These can be imported directly into your Shopify admin and customized. If you use Klaviyo’s Shopify integration (standard for any Klaviyo merchant on Shopify), you can chain these together: Shopify Flow triggers the GoodAPI plant action, then emits a custom event that Klaviyo picks up and uses to send the right email.
For merchants who want deep Shopify Flow customization, GoodAPI’s advanced automation guide is worth reading alongside the Klaviyo flow setup docs.
What to Measure
Once these flows are live, the metrics to watch are:
Getting Started
If you are already running GoodAPI on your Shopify store, the Klaviyo web feed setup takes about 10 minutes . GoodAPI’s help center includes a video walkthrough alongside the step-by-step documentation, including the events integration layer and the impact email template.
If you’re not yet on GoodAPI, you can install the app from the Shopify App Store or find it directly in the Klaviyo App Marketplace. Tree planting starts at $0.43/tree with no monthly fees. You only pay for the impact you create.
For merchants who are already running Klaviyo and want to turn their email marketing into an active sustainability signal, this integration is one of the highest-leverage changes you can make without touching your store’s core setup. The infrastructure is already there. GoodAPI and Klaviyo just need to talk to each other.