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:

  1. Webhook Connection: Copecart sends transaction data to AnyTrack using a webhook URL.
  2. Parameter Tracking with AutoTag: AnyTrack’s AutoTag automatically appends the necessary tracking parameters (--CLICK-ID--) to your Copecart checkout links.
  3. 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

  1. Create a New Property on AnyTrack
  2. 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

  1. From your AnyTrack dashboard, navigate to Integrations, search for Copecart, click on it, and then click Install Integration.
Find the Copecart Integration in the Integrations Catalog

Find the Copecart Integration in the Integrations Catalog

  1. Once installed, click on the Webhook URL to copy to the clipboard.
Copy the Webhook URL to use it on Copecart.

The Webhook URL will be used to receive IPN events from Copecart

  1. Install a Copecart IPN Integration

  2. On Copecart, navigate to Settings > IPN Integrations and click on New Integration
Install a new integration on Copecart

Install a new integration on Copecart

  1. For the integration type choose Generic and click on Create Integration.
Use the Generic integration type

Use the Generic integration type

  1. Configure the integration:
    1. Name your integration (e.g., AnyTrack)
    2. Paste the AnyTrack Webhook URL
    3. Set the Secret Key to: KEY
    4. Set the integration type to "Contract Fulfillment integration"
    5. Toggle the Active setting and SAVE.
copecart IPN integration with anytrack

Copecart IPN Integration with AnyTrack

4. Modify Your Product Links

The final step is to modify every link on your website that points to your Copecart checkouts.

The checkout URL is found in the Product page in Copecart.

The checkout URL is found in the Product page in Copecart.

  1. 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--
    
  1. 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.
Hover the cursor over your modified links to see the ClickId

Hover the cursor over your modified links to see the ClickId

5. Test the Integration

  1. Generate a test sale using the published modified link.

  2. Verify that the test Purchase appears in the Events Log of your Copecart integration.

    Ensure the Copecart Integration is receiving your Copecart sales.

    Ensure the Copecart Integration is receiving your Copecart sales.

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.

    You can rename the Purchase event from Copecart

    You can rename the Purchase event from Copecart

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.

What’s Next

Connect your ad networks to AnyTrack