TrustData
Getting started

Quickstart

Get TrustData running and see your first data in minutes.

This guide gets you from zero to seeing your traffic data—including consent rates and tracking health.

What you'll set up

By the end of this guide, you'll have:

  • Tracking installed on your website
  • Visibility into 100% of your traffic (not just consented)
  • Consent and adblock rate monitoring
  • (Optional) Ad platform data syncing

Step 1: Create an attribution ID

After signing up, create an attribution ID (data stream) for your website:

  1. Go to SettingsAttribution IDs
  2. Click Create Attribution ID
  3. Enter a descriptive name (e.g., example.com)
  4. Copy your Attribution ID

For most users, this also creates your organization and property automatically.

Step 2: Install the tracking SDK

Add the TrustData tracking script to your website, just before the closing </head> tag:

<script>
(function(w,d,s,u,n){
  w[n]=w[n]||[];
  w[n].push(['init','YOUR_ATTRIBUTION_ID',{sendPageView:true}]);
  var f=d.getElementsByTagName(s)[0],j=d.createElement(s);
  j.async=1;j.src=u;f.parentNode.insertBefore(j,f);
})(window,document,'script','https://t.trustdata.tech/t.js','trustdata');
</script>

Replace YOUR_ATTRIBUTION_ID with the Attribution ID from Step 1.

Step 3: Verify tracking

Once installed, verify data is flowing:

  1. Visit your website in a new browser tab
  2. Go to TrustData DashboardEvents

What you'll see immediately

After a few visitors, your dashboard will show:

MetricWhat It Tells You
Total VisitorsAll traffic hitting your site
Consent Rate% who accepted tracking
Adblock Rate% using ad blockers
Tracking HealthWhether data is flowing correctly

If you use a consent management platform (CMP), connect it to TrustData:

// After user consents via your CMP
trustdata.push(['setConsent', {
  analytics: true,
  advertising: true,
  preferences: true,
  sale_of_data: false  // CCPA
}]);

TrustData will track consent rates across all four levels.

Step 5: Connect ad platforms (optional)

To see unified attribution across your ad channels:

Configure URL parameters first

Before connecting, update your ad URLs to include TrustData parameters:

Google Ads example:

https://example.com/landing?trdt_cpid={campaignid}&trdt_agid={adgroupid}&gclid={gclid}

Meta Ads example:

https://example.com/landing?trdt_cpid={{campaign.id}}&trdt_agid={{adset.id}}&fbclid={{click_id}}

Connect data sources

  1. Go to SettingsData Sources
  2. Click Add Data Source
  3. Select your platform (Google Ads, Meta Ads, TikTok Ads, Shopify)
  4. Complete the OAuth authorization
  5. Select accounts to sync

Data will sync overnight. You'll see unified attribution the next day.

Alerts are enabled by default

When you create an attribution ID, TrustData automatically enables critical alerts:

AlertWhat It Catches
Tracking ErrorSDK errors or failed event ingestion
Sync FailureData source sync fails
Data FreshnessNo new data in 24+ hours

You'll be notified immediately if tracking breaks. No setup required.

To customize thresholds or add performance alerts, go to SettingsAlerts.

What's next?

Advanced tracking options, custom events, and consent handling.
Detailed setup for Google Ads, Meta Ads, TikTok Ads, and Shopify.
Adjust thresholds and add performance alerts.
Learn how TrustData attributes conversions fairly across channels.