This guide gets you from zero to having an independent view of your marketing performance — separate from what the ad platforms report.
By the end of this guide, you'll have:
After signing up, create an attribution ID (data stream) for your website:
example.com)For most users, this also creates your organization and property automatically.
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.
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'
}]);
Once installed, verify data is flowing:
After a few visitors, your dashboard will show:
| Metric | What it tells you |
|---|---|
| Revenue | Total conversion value tracked independently |
| Conversions | Orders attributed across all channels |
| ROAS by channel | Return on ad spend per platform, deduplicated |
| Tracking health | Whether 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
}]);
To see unified ROAS and attribution across your ad channels:
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}}
Data will sync overnight. You'll see unified attribution the next day.
When you create an attribution ID, TrustData automatically enables critical alerts:
| Alert | What it catches |
|---|---|
| Tracking error | SDK errors or failed event ingestion |
| Sync failure | Data source sync fails |
| Data freshness | No 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 Settings → Alerts.