AdvancedIntegrations
Advanced

Integrations

Connect CleanClicks seamlessly with third-party analytics and ad platforms to automate data flow and enhance performance.

// Listen for webhook
app.post('/cleanclicks-webhook', (req, res) => {
  const cleanedData = req.body;
  console.log('Cleaned conversions:', cleanedData.conversions);
  res.status(200).send('OK');
});

Overview

CleanClicks integrates with popular analytics and advertising platforms to deliver cleaned traffic data automatically. You can set up connections via the dashboard or use webhooks for custom exports. This ensures accurate data flows to tools like Google Ads, Meta Ads, and GA4 without manual intervention.

All integrations require a CleanClicks API key. Generate one in your dashboard under Settings > API Keys.

Advertising Platform Integrations

Use the CleanClicks dashboard to connect ad platforms. Follow these steps for Google Ads and Meta Ads.

Enable Integration

Navigate to Integrations > Google Ads in your CleanClicks dashboard.

Authorize Access

Click "Connect Google Ads" and sign in with your Google account. Grant permissions for Ads API access.

Map Data Fields

Select campaigns and match CleanClicks metrics like cleaned_conversions to Google Ads fields.

Test Sync

Run a test sync to verify data flows correctly.

Analytics Tools (GA4 and More)

Link CleanClicks to GA4 or other tools by configuring measurement IDs or API endpoints.

// GA4 Setup - Add to gtag config
gtag('config', 'GA_MEASUREMENT_ID', {
  'cleanclicks_api_key': 'YOUR_CLEANCLICKS_API_KEY',
  'send_to_cleanclicks': true
});
path
api_keystring
Required

Your CleanClicks API key for authentication.

query
measurement_idstring

GA4 measurement ID for direct event forwarding.

Custom Data Export with Webhooks

For custom integrations, set up webhooks to push cleaned data to your endpoint.

Configure the webhook URL in your CleanClicks dashboard under Integrations > Webhooks.

Next Steps

Monitor sync status in the Integrations dashboard. Data typically updates every 15 minutes.