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:
When you sign up, a setup wizard walks you through the basics:
To find your attribution ID later, or to add another stream, go to Settings → Attribution IDs. Click New attribution ID to add one.
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', {
conversion_id: 'ORD-456', // your order ID, used to prevent double counting
value: 149.99,
currency: 'EUR'
}]);
After you install the script, verify that events arrive:
Your visit appears within a few seconds.
After a few visits, the dashboard shows:
| 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 the visitor makes a choice in your CMP
trustdata.push(['consent', {
analytics: true,
advertising: true,
preferences: true,
sale_of_data: false // CCPA
}, { interaction: true }]);
Pass { interaction: true } only when the visitor has just made a choice. Leave it out when you replay stored consent on page load. See consent management for details.
To see unified ROAS and attribution across your ad channels:
Before you connect, add TrustData parameters to your ad URLs:
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 sources sync every 3 hours. The first sync also loads historical data, so it can take longer.
Every property gets tracking health checks from the start, including:
| Alert | What it catches |
|---|---|
| TrustData tracking down | TrustData receives no events for 6 hours |
| Platform tracking down | A connected ad platform reports no conversions for 24 hours |
| Data freshness | No new data in 24+ hours |
| Conversion drop | Conversions fall sharply compared with the previous period |
By default, alerts are emailed to your organization's admins. No setup required. Data source sync problems show on the Data Sources page instead.
To send alerts to a different email, Slack, or a webhook, open your property's settings and go to Notifications. See Alerts for the full list.