Copecart Integration
Learn how to integrate Copecart with AnyTrack to track sales, optimize ad campaigns, and improve ROI. This step-by-step guide is designed for merchants and product owners, offering seamless setup, AutoTag support, and real-time event logging.
Unlock the power of precise conversion tracking with Copecart and AnyTrack integration. This guide provides step-by-step instructions for merchants and product owners to configure the integration and maximize the value of their marketing campaigns.
Merchant Focus
This integration is designed for merchants and product owners who manage and sell products through Copecart. It is not intended for affiliates.
Simplified Tracking with AutoTag
AnyTrackβs AutoTag handles parameter tracking automatically, ensuring a seamless integration process without manual adjustments.
Introduction
Copecart is a robust platform for managing and selling digital products, while AnyTrack is a universal tracking and attribution platform. By integrating Copecart with AnyTrack, you can seamlessly track customer actions, sales, and other events, giving you the data needed to optimize your marketing efforts.
With AnyTrackβs AutoTag feature, you can streamline your setup, ensuring your click IDs and other tracking parameters are automatically handled.
How It Works
The integration connects Copecartβs IPN (Instant Payment Notifications) system with AnyTrack, enabling real-time tracking of your customersβ actions, including purchases, fulfillment, and more.
Hereβs how the process flows:
- Webhook Connection: Copecart sends transaction data to AnyTrack using a webhook URL.
- Parameter Tracking with AutoTag: AnyTrackβs AutoTag automatically appends the necessary tracking parameters (
--CLICK-ID--
) to your Copecart checkout links. - Event Logging: All tracked events are logged in AnyTrack, allowing you to analyze conversions and marketing ROI.
Step-by-Step Setup Guide
1. Create a New Property
- Create a New Property on AnyTrack
- Copy the AnyTrack Tag from the property, and install it in the
<head>
section of your website, the AnyTrack Tag must be available on the landing page for your ad, and every page where you have links to Copecart product checkouts.
Install the AnyTrack Pixel Helper Extension
Install the AnyTrack Pixel Helper Chrome extension to verify the AnyTrack Tag is installed on a page. It also shows connected ad networks and browser-side events. Learn more.
2. Install Integration on AnyTrack
- From your AnyTrack dashboard, navigate to Integrations, search for Copecart, click on it, and then click Install Integration.
- Once installed, click on the Webhook URL to copy to the clipboard.
-
Install a Copecart IPN Integration
- On Copecart, navigate to Settings > IPN Integrations and click on New Integration
- For the integration type choose Generic and click on Create Integration.
- Configure the integration:
- Name your integration (e.g., AnyTrack)
- Paste the AnyTrack Webhook URL
- Set the Secret Key to: KEY
- Set the integration type to "Contract Fulfillment integration"
- Toggle the Active setting and SAVE.
4. Modify Your Product Links
The final step is to modify every link on your website that points to your Copecart checkouts.
- Append the following parameter to the end of your Copecart checkout URL:
?metadata=--CLICK-ID--
- Example:
https://www.copecart.com/products/fe65ec63/checkout?metadata=--CLICK-ID--
- Place the updated checkout link on your website where the AnyTrack Tagis installed. The AnyTrack Tag will automatically replace
--CLICK-ID--
with the actual Click ID.
5. Test the Integration
-
Generate a test sale using the published modified link.
-
Verify that the test Purchase appears in the Events Log of your Copecart integration.
The Copecart conversion payload example
{
"buyer_country": "Germany",
"category_option_name": null,
"is_addon": false,
"product_internal_name": "Mock Product A - Masterclass",
"buyer_company_name": "MockCompany",
"metadata": "click id value goes here",
"subscriptions": [],
"category_name": null,
"bundle_addon": false,
"is_cancelled_for": null,
"transaction_discount_amount": "0.0",
"order_time": "10:30",
"buyer_id": "MockBuyerID12345",
"is_upsell": false,
"buyer_lastname": "Doe",
"frequency": null,
"event_type": "payment.made",
"product_id": "mock_product_a",
"transaction_earned_amount": "109.18",
"buyer_vat_number": null,
"payment_plan": "one_time_payment",
"payment_method": "credit_card",
"transaction_date": "2025-01-09T10:31:17+01:00",
"transaction_id": "MockTransactionID12345",
"buyer_email": "[email protected]",
"shipping_price": "0.0",
"line_item_vat_amount": "1.33",
"buyer_phone_number": null,
"earned_amount": "6.53",
"line_item_amount": "8.33",
"buyer_country_code": "DE",
"transaction_type": "sale",
"product_name": "Mock Product A - Masterclass",
"tags": [],
"buyer_zipcode": "12345",
"bundle_id": null,
"buyer_address_details": null,
"test_payment": false,
"order_id": "MockOrderID12345",
"transaction_vat_amount": "22.23",
"transaction_amount_per_product": [
{
"name": "Mock Product A - Masterclass",
"is_addon": false,
"amount": "8.33",
"internal_name": "Mock Product A - Masterclass",
"vat_amount": "1.33",
"slug": "mock_product_a"
},
{
"name": "Mock Product B - Workshop",
"is_addon": true,
"amount": "65.45",
"internal_name": "Mock Product B - Workshop",
"vat_amount": "10.45",
"slug": "mock_product_b"
},
{
"name": "Mock Product C - Guide",
"is_addon": true,
"amount": "65.45",
"internal_name": "Mock Product C - Guide",
"vat_amount": "10.45",
"slug": "mock_product_c"
}
],
"rate_number": 1,
"buyer_street": "MockStreet",
"transaction_amount": "139.23",
"total_number_of_payments": null,
"buyer_subscribed_for_newsletter": false,
"transaction_processed_at": "2025-01-09T10:31:17+01:00",
"next_payments": null,
"cash_flow_at": "2025-01-09T10:30:14+01:00",
"buyer_firstname": "Jane",
"transaction_currency": "EUR",
"buyer_address": "MockStreet, 14",
"first_payment": "7.0",
"quantity": 1,
"payment_status": "paid",
"next_payment_at": null,
"buyer_city": "MockCity",
"order_source_identifier": null,
"order_date": "2025-01-09",
"product_type": "digital",
"buyer_house_number": "14",
"product_discount_amount": "0.0",
"affiliate": null,
"buyer_state": "MockState"
}
By following this guide, youβll have a seamless setup to track customer interactions and optimize your marketing campaigns using the Copecart and AnyTrack integration. Your Copecart Purchases will be sent to all Ad networks connected to your AnyTrack account.
FAQ and Troubleshooting
-
Can I import past conversions into Anytrack?
No. AnyTrack can only ingest conversions triggered following a visitor session on your website.
-
Can I track direct linking campaigns?
Yes, but this requires a custom setup. Please refer to this article.
-
Can I use a different
subid
parameter than the one predefined by Copecart?No. Copecart currently supports
metadata
. -
Can I track conversions without the
click_id
?No. The
click_id
passed to the Copecart checkout links is required to track conversions. -
The Conversion Event Name is not what I am expecting, how can I change it?
You can update the Event Name in the Integration page.
General troubleshooting
-
- Verify that your tracking tag is set in the
head
section of the site where you have the Copecart links published. - If you're on the free plan, verify that you didn't reach the monthly traffic limit and upgrade if needed.
- Verify that your tracking tag is set in the
Updated 14 days ago