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 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:
- An AnyTrack account with a Basic Plan.
- A SamCart account with any plan.
There are two scenarios to integrate SamCart with AnyTrack
- Your entire funnel runs on SamCart.
- Your funnel runs across multiple domains. For example, your landing page is on clickfunnels, and the payment is on
yourbusiness.samcart.com
.
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.
- In AnyTrack Create A new Property
- Grab the AnyTrack Tracking Tag
- Navigate to the product Advanced Settings and Paste the Tracking Tag in the Header Section
- Return to AnyTrack and add a new integration using the custom integration
- Fill in the placeholder fields with dummy values and save
- Copy the Postback URL and paste it into a notepad so you can edit it.
- Remove all query parameters,including the
?
. The result should look like this:
https://t1.anytrack.io/xxxxxxx/collect/custom-samcart
- 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.
<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>
- Once you've updated the code you can copy/paste it into the product checkout confirmation Script Field:
- Save your product.
- You can preview the product and run a test order to see how the conversion shows up in the conversion log.
- 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.
- 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
yourbusiness.samcart.com
- Open the property settings.
- Scroll down to the cross domain settings and add samcart.com in the cross domain field.
- Toggle the UTM parameters options.
- Save and you are done!
Testing your Samcart and Anytrack integration
Simply go through your funnel as if you were a visitor, then open the integration log to see the data showing up.
Updated 1 day ago