Skip to content

Step-by-step guide to integrate SamCart with AnyTrack for automated conversion tracking. Sync purchases to Google Ads, Meta, TikTok with server-side tracking and improved ROAS.

Transform your SamCart checkout experience with AnyTrack’s powerful conversion tracking. Automatically sync every purchase, upsell, and customer interaction across Google Ads, Facebook Ads (Meta Ads), TikTok, and other major advertising platforms.

What you’ll achieve:

  • Complete customer journey visibility from first click to final purchase
  • Real-time conversion data sent directly to ad platforms via Conversion APIs
  • Improved ROAS through better attribution and audience targeting
  • Automatic tracking of upsells, order bumps, and checkout events

When you connect SamCart to AnyTrack, every step of your customer’s journey gets tracked and attributed to the right marketing channel.

Step 1: Visitor lands on your SamCart checkout page

AnyTrack collects traffic source data and assigns unique visitor IDs

Step 2: Visitor starts the checkout flow

AnyTrack automatically tracks each step of the checkout and sends each event to ad platforms via Conversion API

Step 3: Visitor completes the order

When the order is complete, after the upsell funnel, SamCart sends the whole order to AnyTrack in one webhook

Step 4: AnyTrack sends conversion to Ad platforms Conversion API

Instantly sync conversion data to all connected ad platforms via Conversion API

The AnyTrack Conversion API An ad platform's server-to-server endpoint for receiving conversions directly from a server — bypassing the browser pixel — which AnyTrack enriches, deduplicates, and delivers automatically. Read more → approach ensures your ad platforms receive rich first-party data for better targeting, audience building, and campaign optimization.

Customer Journey Tracking

Track every touchpoint from initial visit to final purchase, including cross-device attribution

Conversion API Sync

Automatically send purchase data to Google Ads, Meta Conversion API, TikTok Events API, and other platforms via secure APIs

Complete Revenue Tracking

Collect all revenue including main purchases, upsells, and order bumps

Tag Management

Centralized tag management. AnyTrack handles all your Tracking Tags automatically

Watch the complete SamCart setup from start to finish: install the Tracking Tag, add the SamCart webhook, pass the atclid to your checkout, add the Tracking Tag to SamCart pages, and send your purchases to Facebook with the Conversion API.

Play YouTube video

Start by setting up your tracking foundation:

  1. Create New Property in your AnyTrack dashboard
  2. Copy Tracking Tag from Property Settings > Tracking Script
  3. Note your Property ID for reference
Copy your unique tracking tag from Property Settings
Copy your unique tracking tag from Property Settings

Configure SamCart to work with AnyTrack’s tracking system:

  1. In SamCart, go to the profile icon (top right) > Settings > Tracking & Pixels tab. If you set a marketplace logo, the logo replaces the profile icon.

  2. Add Tracking Tag: Paste your AnyTrack Tag in “Embed HTML/Scripts in Header”

  3. Enable Pre-Redirect Tracking: Turn on “Fire Pixels Before Redirect”

  4. Set URL Parameter: Enter atclid in “Content URL parameter”

  5. Add Custom Parameter: Click “Add Parameter” and enter atclid

  6. Save Changes

The Tracking & Pixels settings do not apply to pages that you build with SamCart Pages (the SamCart page builder). On these pages, SamCart shows this notice: “Any custom code entered in Settings/Tracking + Pixels will not work on this page.” Install the Tag on each page:

  1. Open the page in the SamCart page builder.
  2. Click the Settings tab.
  3. Open Pixels + Scripts.
  4. Paste your AnyTrack Tag in Inject Custom Code Into Header.
  5. Click Publish.

Do these steps again for each SamCart page in your funnel.

This step ensures customer data flows correctly to AnyTrack:

  1. Go to Custom Fields > New Custom Field
  2. Set both Name and Label to atclid
  3. Select Hidden as the field type
  4. Save the custom field
AnyTrack documentation screenshot

Link your SamCart account with AnyTrack:

  1. Install Integration: Go to AnyTrack’s Integration Catalog
  2. Find SamCart and click install
  3. Copy Webhook URL provided by the integration
AnyTrack documentation screenshot

Configure SamCart to send purchase data to AnyTrack:

  1. Install Webhooks App: Search for “Webhooks” in SamCart’s App Marketplace
  2. Enter Webhook URL: Paste the URL from Step 4
  3. Create Webhook Rule with these settings:
    • Rule Type: Global Rule
    • Action: Send Notify URL for POST for Orders
    • Trigger: Order Completed
AnyTrack documentation screenshot

Verify everything works correctly:

  1. Enable Test Mode in SamCart
  2. Complete Test Purchase using a test product
  3. Check Events Log in your AnyTrack integration dashboard
  4. Verify Data Flow: finish the upsell funnel of the test order, then verify that one Purchase appears with the order total

The SamCart integration page has a Settings tab. The tab has two SamCart settings: Enable Slide checkout tracking and SamCart Currency. You can change them on every AnyTrack plan. They apply to the property of your SamCart integration.

To open the tab:

  1. In the AnyTrack dashboard, open Integrations.
  2. Select your SamCart integration.
  3. Select the Settings tab.

If you use SamCart’s embedded Slide checkout:

The SamCart webhook does not send a currency. AnyTrack records each SamCart order in the currency of your property. If your SamCart store uses a different currency, set it in AnyTrack:

  1. Open the Settings tab of your SamCart integration.
  2. In SamCart Currency, select the currency of your SamCart store.
  3. Click Save.

Leave SamCart Currency empty if your SamCart store and your property use the same currency.

For funnels that include external landing pages:

EventDescriptionSourceTiming
PageViewPage visits across funnelJS TagReal-time
OutboundClickClicks to checkout pagesJS TagReal-time
InitiateCheckoutCheckout process startsJS TagReal-time
AddPaymentInfoBuyer submits payment (successful or not)JS TagReal-time
PurchaseOrder completed (includes order bumps and upsells). An order with a total of 0 becomes LeadWebhookServer-side

The Purchase event comes from the webhook only. The AnyTrack Tag does not send Purchase from SamCart checkout pages.

SamCart integration: technical details
Supported features SamCart
Plan Ad platforms need Starter or higher.
All plans
Required
Tracking method Via Webhook
Server-side tracking
Setup method
Webhook URL
  • InitiateCheckout
  • AddPaymentInfo
  • Purchase
Event attributes
Conversion Mapping Rename or turn off events.
Yes
Combined Orders Groups upsells with the purchase.
No
Tracking Group Integration reference for AutoTag.
samcart
Tracking parameter Carries the click_id.
atclid

InitiateCheckout and AddPaymentInfo come from the AnyTrack Tag. Purchase comes from the webhook.

Once tracking is active, connect your advertising platforms:

Check these common issues:

  1. Verify the tracking tag is installed in SamCart’s header section
  2. Confirm the atclid custom field is created and set to Hidden
  3. Test that webhooks are properly configured with the correct URL
  4. Ensure test mode is enabled for initial testing

Still having issues? Check the browser console for JavaScript errors or contact support with your Property ID.

Potential causes:

  1. Currency mismatch between SamCart and AnyTrack. Set SamCart Currency when your SamCart store and your property use different currencies
  2. Tax or shipping handling differences
  3. The webhook rule uses the Product Purchased trigger instead of Order Completed

To resolve: Open the Events Log of the SamCart integration. Verify that the Purchase includes all products and fees.

Attribution data missing for some conversions

Section titled “Attribution data missing for some conversions”

This typically happens when:

  1. Customers use different devices or browsers
  2. Long consideration periods exceed cookie lifespans
  3. Customers disable JavaScript or use ad blockers

AnyTrack’s server-side tracking minimizes these issues, but some attribution gaps are normal in privacy-focused browsing environments.

SamCart Integration - Frequently Asked Questions

FAQ was last reviewed on 2026-11-04

What does the AnyTrack integration for SamCart do?
The integration automatically tracks customer journeys from first website visit through purchase completion. It collects checkout events, processes attribution data, and sends conversion information to your connected advertising platforms via secure Conversion APIs.
Do I need to install tracking code on every page?
Install the AnyTrack Tag once in your SamCart account settings. It automatically applies to all checkout pages and products. Pages that you build with SamCart Pages need the Tag on each page. Also, if your funnel includes external landing pages, add the tag to those pages too for complete journey tracking.
How does this affect my existing Facebook and Google Ads tracking?
AnyTrack replaces your existing tag-based tracking with more accurate server-side Conversion APIs. You should remove existing ad platform pixels from SamCart to avoid duplicate data and conflicting attribution.
Why are my SamCart purchases counted twice?
Check the trigger of your SamCart webhook rule. Use Order Completed. The Product Purchased trigger sends one webhook for each product, so AnyTrack can record one order more than once. The AnyTrack Tag does not send Purchase from SamCart checkout pages, so the browser does not add a second Purchase. Before October 2026, a legacy option named Enable client side purchase tracking could add one. AnyTrack removed that option. Do not remove the Tracking Tag from your checkout pages: the Tracking Tag generates the atclid value that SamCart returns in the webhook, so removing it breaks attribution for visitors who land directly on a checkout page.
Where are the SamCart settings in AnyTrack?
Open Integrations, select your SamCart integration, and select the Settings tab. The tab has Enable Slide checkout tracking and SamCart Currency. You can change them on every AnyTrack plan. In October 2026, these settings moved there from Property Settings. Your saved values did not change. See SamCart Settings Tab.
Will this track upsells and order bumps separately?
No. The SamCart Order Completed webhook sends the whole order: the main product, the order bumps, and the upsells. AnyTrack records one Purchase event with the order total as its value, and lists each product as an item. SamCart orders do not need Combined Orders. Do not use the Product Purchased trigger: SamCart sends it once for each product, so AnyTrack can record one order more than once.
How quickly do conversions appear in my ad platforms?
SamCart sends the Order Completed webhook when the order is complete, after the upsell funnel. AnyTrack processes the order when the webhook arrives and sends the Purchase to your connected ad platforms. Each ad platform then adds its own processing delay. See Attribution Delays.
Where do I see the customer's name for a SamCart order?
SamCart's Order webhook sends the buyer's name and email to AnyTrack. To see it, open the Conversions Report, click the Purchase event, and view the Event Details and Timeline panel. The name and email appear there when SamCart included them. Customer identity is shown inside each conversion, not as a column in the main event list. Test purchases send placeholder values like 'Test', so use a real order to confirm. For returning customers AnyTrack has already identified, identity is resolved as soon as they land, so their events show the customer's identity even on event types that don't collect it themselves, like InitiateCheckout. See Identity Resolution.
Can I use this with other analytics tools?
Yes! AnyTrack complements tools like Google Analytics, providing enhanced attribution data while your existing analytics continue tracking website behavior and performance metrics.

Ready to optimize your campaigns? With SamCart tracking active, you can now build powerful retargeting audiences, optimize for higher-value customers, and improve your return on ad spend across all connected platforms.