
🚀 Why Use ClickFlare to Track Your Shopify Store
ClickFlare gives you full-funnel, click-level tracking — something traditional Shopify apps can’t do. With ClickFlare, you can:- Easily set it up in minutes — no complex development required
- Track each user’s journey from ad click to final purchase
- Rotate and test landers before sending traffic to your Shopify store
- Attribute conversions from both paid and organic channels
- Send 100% of conversions back to ad platforms server-side
- See all key metrics (costs, conversions, upsells, ROAS) in one dashboard
🧠 Whether you’re running ads, SEO, or email flows — ClickFlare gives you the data and attribution accuracy you need to scale.
🧭 Overview
This guide walks you through tracking the following Shopify events using ClickFlare:- View Content → view_content
- Add to Cart → add_to_cart
- Checkout Initiated → checkout_initiated
- Checkout Completed → sale and product_sale (for item-level tracking)
- ClickFlare Setup – define events, landers (optional), and campaigns
- Shopify Setup – add tracking scripts and configure webhooks
I. 🔧 ClickFlare Setup
1. Create Custom Conversion Events
You’ll need to create a custom conversion in ClickFlare for each Shopify event we are going to track. Steps:- Go to Settings > Custom Conversions
- Click Add
-
Create a separate custom event for each of the following:
view_contentadd_to_cartcheckout_createdsaleproduct_sale
Important: Use these exact event identifiers as shown above.

2. Create a Traffic Source
- From the left menu, go to Traffic Sources
- Click the + New button to add a new traffic source
- Choose a template from the list (e.g., Meta, Google Ads, TikTok)
-
Fill in the following:
- Traffic Source Name
- Workspace
- Currency used for cost reporting
- Cost Integration — connect to pull ad spend automatically
💡 ClickFlare templates will auto-fill most parameters (like click ID macros). You can always adjust them if needed.
3. (Optional) Add a Lander Before Shopify
If you’re sending traffic to a quiz, article, or presell page before Shopify:- Go to Landers > New Lander
- Enter your lander URL and give it a name
- Save the lander to generate your ClickFlare click URL
Advanced Funnels: With ClickFlare’s visual Advanced Flow builder, you can set up multi-step funnels with up to 3 landers before the Shopify store, and rotate different landers or even multiple Shopify stores at each step.
Note: Be sure to update the CTA buttons or links on your lander to use the ClickFlare click URL. This ensures tracking continuity when users are redirected to Shopify.
4. Create an Offer (Your Shopify Store)
- Go to Offers > New Offer
- Paste your Shopify store URL (e.g., https://yourstore.myshopify.com)
5. Create a Tracking Campaign (Per Traffic Source)***
- Go to Campaigns > New Campaign
-
Choose:
- Redirect Tracking — use this if your traffic source allows redirects. This method enables lander rotation and A/B testing.
- Direct Tracking — use this if you’re sending traffic directly to your Lander or Shopify, or if your traffic source doesn’t allow redirects (e.g., Google Ads).
-
Configure:
- Campaign Name: e.g., Shopify – Meta
- Traffic Source: select the one created in step 2
- Lander (optional): select your lander from step 3
- Offer: select your Shopify store offer
- In the Tracking tab, copy the ClickFlare Campaign URL - this is the link you’ll use in your traffic source when setting up your ads
📌 Create one campaign per traffic source to ensure clean attribution.
6. Create a Campaign for Organic Traffic
While not mandatory, we recommend setting up a dedicated campaign for organic traffic (e.g., SEO, direct visits, email, influencers). This helps you attribute conversions that didn’t come from paid traffic sources — and otherwise may go untracked. Steps:- Duplicate an existing campaign
- Create a new traffic source called Organic and assign it to this campaign
- Keep using the same offer from step 4 (your Shopify store)
https://trackin_domain.com/cf/scripts/direct?cpid=CLICKFLARE_ORGANIC_CAMPIGN_ID

II. 🛒 Shopify Setup
Now that your ClickFlare setup is complete, log in to your Shopify admin to complete the final steps.1. Add the ClickFlare Script to Your Shopify Theme
Steps:-
**Go to **Online Store > Themes in your Shopify admin
-
Click the three-dot menu next to your active theme and select Edit Code
-
Under the Layout folder, open
theme.liquid -
Scroll to the bottom of the file and paste the following script just before the closing </body> tag:

2. Add Webhooks to Track Shopify Events
ClickFlare uses webhooks to track checkout and order events triggered from Shopify. Steps:- In Shopify admin, go to Settings > Notifications
- Scroll to the Webhooks section and click Create Webhook
-
Add the following webhooks:
✅ Webhook: Checkout Initiated
- Event: Checkout creation
- Format: JSON
-
URL:
-
API Version: Use the latest (e.g., 2025-07)

✅ Webhook: Order Completed (Sale)
- Event: Order creation
- Format: JSON
-
URL:
-
API Version: Use the latest (e.g., 2025-07)


✅ Verifying Your Setup
- Click through a campaign URL
- Complete a test checkout using a coupon or test gateway
- Go to Reports > Conversions in ClickFlare
-
Filter by:
- Event: sale, checkout_initiated
- Campaign: the one you used
FREQUENTLY ASKED QUESTIONS Got questions? Find the answers below:
Q1: Do I need to use a lander before sending users to my Shopify store?A1: No, it’s optional. You can send traffic directly to Shopify. However, using a lander allows you to test different angles, presell pages, or quizzes, and rotate them using ClickFlare’s built-in funnel features.
Q2: What’s the difference between Redirect and Direct Tracking?A2: Redirect Tracking allows you to rotate landers, apply conditional routing, and capture click data via redirect URLs. Direct Tracking is used when sending traffic straight to Shopify, especially when redirects are not allowed (e.g., Google Ads). Whenever possible, use Redirect Tracking; it gives you more control, better flexibility, and access to advanced funnel features.
Q3: Why do I need to append the click ID to my Shopify store URL?A3: Appending
cf_click_id={cf_click_id} ensures that ClickFlare can associate conversions back to the original click. This is especially important for Redirect Tracking campaigns, where the ClickFlare direct tracking script is not installed on Shopify. Without this, ClickFlare won’t be able to attribute conversions accurately.
Q4: Is it necessary to set up a separate campaign for organic traffic?A4: Not mandatory, but highly recommended. Without a campaign for organic traffic, conversions from unpaid sources (SEO, email, etc.) may go unattributed.
Q5: How many landers or steps can I use before the Shopify store?A5: ClickFlare allows up to 3 lander steps before the Shopify offer. You can build multi-step funnels visually using the Advanced Flow editor.
Q6: Do I need to use both webhooks and scripts in Shopify?A6: Yes. The ClickFlare script tracks actions that happen on the website, like when a visitor views a product or adds it to the cart. The webhooks are used to report key events that happen during and after the checkout process, like when a checkout is started or an order is completed. Using both ensures accurate tracking across the full customer journey.