SamCart

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

🚧

Limited Support for Custom Integrations

We currently do not offer setup support for custom integrations not listed in the Integration Catalog. Any guidance provided in our documentation for such integrations is to be used at your own risk and may no longer be updated or maintained.

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 e-commerce platform that offers similar functionality.

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

  1. Your entire funnel runs on SamCart.
  2. Your funnel runs across multiple domains. For example, your funnel is on clickfunnels, and the payment is on _yourbusiness.samcart.com_

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

Here is the SamCart Purchase Conversion TAG  

Update the following code with your postback url  

   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'   }]});
  1. Once you've updated the code you can copy/paste it into the product checkout confirmation Script Field  

  

  1. Save your product
  2. 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 domain as your funnel

For example:

Your funnel is on www.yourfunnel.foo

Your Samcart checkout is on checkout.yourfunnel.foo

Then you are done!

  1. 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 integration

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