TrustData
Getting started

Quickstart

Get TrustData running and see your first independent marketing data in minutes.

This guide gets you from zero to having an independent view of your marketing performance — separate from what the ad platforms report.

What you'll set up

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

  • First-party event tracking installed on your website
  • Conversion data flowing independently of ad platform pixels
  • Tracking health monitoring with automatic alerts
  • (Optional) Ad platform data syncing for unified ROAS

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: Track conversions

Send a conversion event when an order is confirmed — this is the data TrustData uses for attribution:

trustdata.push(['event', 'purchase', {
  order_id: 'ORD-456',
  value: 149.99,
  currency: 'EUR'
}]);

Step 4: 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

After a few visitors, your dashboard will show:

MetricWhat it tells you
RevenueTotal conversion value tracked independently
ConversionsOrders attributed across all channels
ROAS by channelReturn on ad spend per platform, deduplicated
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
}]);

Step 6: Connect ad platforms (optional)

To see unified ROAS and 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, server-side conversions, 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.