Table of Contents
Setting up conversion tracking is essential for understanding your Shopify store's performance and optimizing your marketing efforts. Heap provides a powerful, automated way to track user interactions without extensive coding. This guide walks you through the step-by-step process to configure Heap conversion tracking for your Shopify store effectively.
Prerequisites
- A Shopify store with admin access.
- An active Heap account.
- Basic knowledge of Shopify and Heap interfaces.
- Access to your Shopify theme code.
Step 1: Create a Heap Account and Get Your Tracking Code
If you haven't already, sign up for a Heap account at heap.io. Once signed in, navigate to your project dashboard. Copy the Heap tracking snippet provided in the setup instructions, which you'll add to your Shopify store.
Step 2: Add Heap Tracking Code to Shopify
Log in to your Shopify admin panel. Go to Online Store > Themes. Find your active theme and click Actions > Edit code. Locate the theme.liquid file under the Layout folder. Paste the Heap tracking code just before the closing
</head>
tag to ensure it loads on every page.
Step 3: Define Conversion Events in Heap
Within your Heap dashboard, navigate to Events. Click Create Event. Define specific user actions you want to track as conversions, such as:
- Completed a purchase
- Added an item to the cart
- Signed up for a newsletter
- Clicked a specific button or link
Name each event clearly for easy identification. Save your event definitions.
Step 4: Set Up Conversion Goals in Heap
Go to the Conversions section in Heap. Click Create Conversion. Select the event you previously defined as your conversion goal. Assign a value if applicable, such as revenue amount or lead value. Save your conversion goal.
Step 5: Integrate Conversion Tracking with Shopify
To track conversions accurately, ensure Heap recognizes when a user completes a conversion. For example, you can add a JavaScript trigger on your checkout confirmation page. In Shopify, locate the checkout.liquid or use Additional Scripts in checkout settings, and insert the following code:
<script>heap.track("Purchase Completed");</script>
Step 6: Test Your Setup
Perform test transactions or user actions to verify that Heap records the events. Check your Heap dashboard for incoming data. Confirm that conversions are tracked correctly and attributed to the right campaigns.
Step 7: Analyze and Optimize
Use Heap's analytics tools to review your conversion data. Identify high-performing channels, user behaviors, and bottlenecks. Use these insights to refine your marketing strategies and improve your store's performance.