/
Attribution
/
Web
/
Amplitude

How to Integrate Campaignswell with Amplitude

Create a New Sync

Step 1. Open Amplitude Data

  • Go to Amplitude Data > click Catalog
  • Select the Destinations tab

Step 2. Choose Webhook

  • Under the Event Streaming section, click Webhook
Under the Event Streaming section, click Webhook

Step 3. Create Sync

  • Enter any name for the sync (e.g., Campaignswell Sync)
  • Click Create Sync

Configure the Webhook

Step 4. Set Status

Choose Status: Enabled

Step 5. Add Webhook URL

Paste the Campaignswell-provided endpoint URL from Campaignswell UI

Step 6. Select Events

In Select & Filter Events, add the event: Start session, cw_events + events, which can be relevant for us (custom cases)

Step 7. Enable User Data

Set Send Users: Enabled

Set Send Users: Enabled

Step 8. Save

Click Save to activate the webhook

Configure SDK Settings (Required for Web Attribution)

Step 9. Enable Page URL Enrichment & Attribution

To track web attribution properly, you need to enable only attribution and pageUrlEnrichment in your Amplitude Browser SDK configuration, while keeping all other autocapture events disabled.

Add this to your Amplitude SDK initialization code:

javascript

amplitude.init(API_KEY, {
 autocapture: {
   attribution: true,          
// Required for UTM tracking
   pageUrlEnrichment: true,    
// Required for referrer & URL tracking
   
// Disable all other autocapture events
   pageViews: false,
   sessions: false,
   formInteractions: false,
   fileDownloads: false,
   elementInteractions: false,
   webVitals: false,
 },
});

Important: If you use autocapture: { ... } without explicitly disabling other options, Amplitude will automatically enable all autocapture events (page views, sessions, clicks, etc.), which may consume your event limits unexpectedly.