SamCart

Get the most out of SamCart with AnyTrack custom integration. Streamline conversion data and boost ROAS with AnyTrack SamCart integration.

SamCart is an e-commerce shopping cart platform founded in 2013 by Scott and Brian Moran. It has become a viable alternative to Thrivecart, which is another supported e-commerce platform that offers similar functionality. When you integrate SamCart to AnyTrack you are able to track your sales and send them to your connected ad networks via Conversion APIincluding rich first-party dataand attribution to improve ad targetting, retargeting, and audiences, consequently ROASand other conversion metrics improve.

Overview

While we don't have a native SamCart integration we leverage our general purpose Custom Integration to track all your sales automatically from SamCart. With the help of AnyTrack, you can now send data like revenue, product name, customer name, email etc, easily and accurately to platforms conversion APIssuch as Google Ads, Facebook Conversion API and Tiktok API for efficient tracking. This lets you get full control over conversion metrics without having to manually update each one individually - saving time while ensuring accuracy! Maximize ROI with customizable goals that match your unique business needs.


How does the SamCart - AnyTrack integration work:

  1. Traffic: When visitors land on your website or SamCart checkout, AnyTrack collects traffic source data and First Party data.
  2. Conversions: When visitors complete a purchase event the Purchase code trigger sends AnyTrack real-time conversion data through a server-side connect.
  3. Attribution: AnyTrack processes the conversion data and reports it across various reporting sections of the Anytrack Dashboard.
  4. Conversion API: AnyTrack then sends your conversions to your Ad Platforms' Conversion API so you can feed your ad platform's Machine Learning, AI and automatic optimization according to 100% of your conversion data.

Technical details

ReferenceValueInformation
Tracking GroupthrivecartThe Tracking Group reference can be used to activate AutoTag.
Subid Parameterpassthrough[atclid]The Subid Parameter used to pass the AnyTrack click_id.
Tracking MethodWebhook-

How it works

Traffic: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
Engagements: When visitors click on your ThriveCart checkout, AnyTrack does a few things:
Collects granular data tied to the OutboundClick.
Triggers Event Tracking API requests to your pixels and analytics.
Conversions: When visitors complete a purchase event, AnyTrack receives real time conversion data through Webhook.
Attribution: AnyTrack processes the conversion data and reports it across various reporting sections of the Anytrack Dashboard.
Conversion API: AnyTrack then sends your conversions to your Ad Platforms' Conversion API so you can feed your ad platform's Machine Learning, AI and automatic optimization according to 100% of your conversion data.
Technical details
Reference Value Information
Tracking Group thrivecart The Tracking Group reference can be used to activate AutoTag.
Subid Parameter passthrough[atclid] The Subid Parameter used to pass the AnyTrack click_id.
Tracking Method Webhook -
Standard Conversions
Event Name Details Data Source
OutboundClick When a visitor clicks on ThriveCart checkout links. AnyTrack JS Tag
Purchase When a user triggers a purchase. Webhook



SamCart integration overview

The goal of this integration is to enable you to pass your customer and purchase data to AnyTrack in order to forward it to your Ads integrations such as Facebook, Google Analytics and other ad platforms.

🚧

Prerequisites

To enable the SamCart integration you need the following:

  1. An AnyTrack account with a Basic Plan.
  2. A SamCart account with any plan.

There are two scenarios to integrate SamCart with AnyTrack

  1. Your entire funnel runs on SamCart.
  2. Your funnel runs across multiple domains. For example, your landing page is on clickfunnels, and the payment is on yourbusiness.samcart.com.

Step-by-Step Setup Guide

Video Tutorial Available

Watch this video to learn how to integrate SamCart with AnyTrack, however, keep reviewing this page to learn the steps involved in the setp




Option #1: SamCart is your funnel

Essentially, this flow assumes that you're sending traffic directly from your marketing channels to your Samcart product hosted page.

  1. In AnyTrack Create A new Property
  2. Grab the AnyTrack Tracking Tag
  3. Navigate to the product Advanced Settings and Paste the Tracking Tag in the Header Section  

  

  1. Return to AnyTrack and add a new integration using the custom integration
  2. Fill in the placeholder fields with dummy values and save  

  

  1. Copy the Postback URL and paste it into a notepad so you can edit it.  

  

  1. Remove all query parameters,including the ?. The result should look like this:
  https://t1.anytrack.io/xxxxxxx/collect/custom-samcart
  1. Update the following code with your postback url

🚧

Caution

You must replace the postback url in the code below with your postback url created on step 7.

Trigger code for SamCart Purchase


<script>
  AnyTrack('postback', 'https://t1.anytrack.io/xxxxxxx/collect/custom-samcart?clickId={click_id}', {
    event_name: 'Purchase',
    email: '##email##',
    firstName: '##first_name##',
    lastName: '##last_name##',
    phone: '##phone_number##',
    transactionId: '##order_id##',
    commission: ##total_amount##,
    currency: '##currency##',
    productTotal: ##product_total##,
    shippingPrice: ##total_shipping##,
    taxPrice: ##total_tax##,
    items: [{
      id: '##product_id##',
      name: '##product_name##',
      price: ##product_price##,
      quantity: ##product_quantity##,
      brand: 'AnyTrack'
    }]
  });
</script>

  1. Once you've updated the code you can copy/paste it into the product checkout confirmation Script Field:    
  2. Save your product.
  3. You can preview the product and run a test order to see how the conversion shows up in the conversion log.  

  

  1. And you're done!

Option #2 SamCart is the the last step of your funnel

This scenario assumes that you're funnel starts on a website that is not hosted on Samcart domain.

  1. Run through all the steps from the Option #1

Unless you've got already a property and in this case you simply need to edit the current property in order to grab the Tracking Tag and paste it into your product Script.

Your checkout is on the same domain: 

If your SamCart checkout product page runs on the same root domain as your funnel:

For example:

  • Your funnel is on www.yourfunnel.foo
  • Your Samcart checkout is on checkout.yourfunnel.foo

Your checkout is on yourbusiness.samcart.com

  1. Open the property settings.
  2. Scroll down to the cross domain settings and add samcart.com in the cross domain field.
  3. Toggle the UTM parameters options.
  4. Save and you are done!

Testing your Samcart and Anytrack integration

Samcart Integration Validation Guide

Simply go through your funnel as if you were a visitor, then open the integration log to see the data showing up.

FAQ & Troubleshooting

🔎

Install the AnyTrack Pixel Helper Extension

Install the AnyTrack Pixel Helper Chrome extension to verify the AnyTrack Tag is installed on your funnel websites and your SamCart checkout. It also shows connected ad network pixels and browser-side events. Learn more.

I don't see the Purchase events from SamCart:
If you can't see the Purchase events in the Reports or the Events Log, ensure that:

  1. The AnyTrack Tag is installed on SamCart checkout and all the pages involved in the funnel and leading to SamCart checkout. Use the AnyTrack PIxel helper for this audit.
  2. You have installed the Purchase trigger in the right place and adjusted the code to your own custom integration.
  3. If your thank you page is not located on samcart.com the trigger might not be firing on run time, to address this situation please set your thank you page within samcart.com
  4. If these steps have not solved the issue contact AnyTrack support.