Skip to content
  • There are no suggestions because the search field is empty.

Integrate Convert Experiences with SamCart

Install Convert Experiences on SamCart to run A/B tests and track revenue from completed orders.

Author: Dionysia Kontotasiou

IN THIS ARTICLE YOU WILL:

  • Get an Overview
  • Know What You Can Do With This Integration
  • Understand Prerequisites
  • Step 1: Install Convert Tracking Script
  • Step 2: Create a Revenue Goal in Convert
  • Step 3: Configure Revenue Tracking in SamCart
  • Step 4: Verify the Integration

Overview

The SamCart and Convert Experiences integration allows you to run A/B tests on your SamCart pages and track revenue generated from completed orders.

By installing the Convert tracking code in SamCart, you can measure visitor behavior and experiment performance. You can also configure revenue tracking to understand how your experiments impact sales.

What You Can Do With This Integration

  • Install Convert Experiences tracking across supported SamCart pages.
  • Run A/B tests on pages where the Convert tracking code is successfully loaded.
  • Track revenue from completed SamCart orders.
  • Measure the financial impact of your experiments using Convert Revenue goals.

📒 Note:

Page tag functionality is currently not available with this integration.

Prerequisites

Before getting started, make sure you have:

  • An active Convert Experiences account and project.
  • Access to your SamCart dashboard.
  • Permission to modify SamCart marketplace settings and product-level advanced settings.
  • A Revenue goal configured in Convert Experiences for tracking order revenue.

Step 1: Install the Convert Tracking Code in SamCart

To start tracking visitors and running experiments, add the Convert tracking code to your SamCart marketplace.

  1. Log in to your Convert Experiences account.
  2. Navigate to Project > Settings > Tracking Code.
  3. Copy the Convert tracking code for your project.
  4. Log in to your SamCart Dashboard.
  5. Navigate to General Marketplace Settings.
  6. Locate the Embed HTML/Scripts in Header field.
  7. Paste your Convert tracking code into this field.
  8. Click Save Changes.

Once installed, the Convert tracking code can initialize on supported SamCart pages where the header script is loaded.

⚠️ Important:

Make sure the tracking code is added to the header rather than the footer to help Convert initialize before visitors interact with the page.

Step 2: Create a Revenue Goal in Convert

To measure revenue generated by completed purchases, you first need to create a Revenue goal in Convert Experiences.

  1. Open your Convert Experiences project.
  2. Navigate to the relevant experience and its Goals configuration.
  3. Create a new goal using the Revenue goal type.
  4. Save your goal.
  5. Copy the Goal ID associated with your Revenue goal.

You will need this Goal ID when configuring the revenue tracking script in SamCart.

Step 3: Configure Revenue Tracking in SamCart

SamCart supports custom scripts that execute after an order is completed. You can use this functionality to send transaction revenue to Convert Experiences.

Add the Revenue Tracking Script

  1. Log in to your SamCart Dashboard.
  2. Open the product for which you want to track revenue.
  3. Navigate to the product's Advanced Settings tab.
  4. Locate the Fire pixels/scripts after an order is completed field.
  5. Add a custom dynamic event using the following script:
<script>
window._conv_q = window._conv_q || [];
window._conv_q.push([
  "pushRevenue",
  ##total_amount##,
  ##product_quantity##,
  "YOUR_GOAL_ID"
]);
</script>

Replace YOUR_GOAL_ID with the actual Goal ID from Convert Experiences.

For example, if your Revenue Goal ID is 123456789, your script would look like this:

<script>
window._conv_q = window._conv_q || [];
window._conv_q.push([
  "pushRevenue",
  ##total_amount##,
  ##product_quantity##,
  "123456789"
]);
</script>

Save your changes.

Understanding the Revenue Tracking Parameters

Parameter Description
pushRevenue Convert tracking command used to record revenue.
##total_amount## SamCart dynamic variable representing the total order amount.
##product_quantity## SamCart dynamic variable representing the product quantity.
YOUR_GOAL_ID The unique identifier of your Convert Revenue goal.

SamCart must replace the dynamic variables with numeric values before the script executes.

Step 4: Verify the Integration

After installing the tracking code and configuring revenue tracking, verify that the integration works correctly.

Verify the Convert Tracking Code

  1. Open a SamCart page where the tracking code should be installed.
  2. Open your browser's developer tools.
  3. Check that the Convert tracking script is loading.
  4. Use Convert's available debugging tools to verify that the project is initialized correctly.

Verify Revenue Tracking

  1. Create a test experience with a Revenue goal in Convert.
  2. Visit the SamCart page as a participant in that experience.
  3. Complete a test purchase using an appropriate SamCart testing method.
  4. Check whether the revenue event executes after the order is completed.
  5. Verify that the Revenue goal records the expected transaction amount in Convert.

Allow for any normal reporting delay before evaluating the results.