Multi-Platform Conversion APIs Best Practices (LinkedIn, Snap, X)
LinkedIn Conversions API, Snap Conversions API, and X Conversions API - setup, event_id deduplication, and match-quality quirks per platform.
By Samarth Analytics · Published · Updated · Conversion Tracking · 10 min read
Summary: The overlooked third tier of conversion APIs. Covers LinkedIn Conversions API (B2B attribution), Snap Conversions API (in-app commerce), X Conversions API (post-2022 overhaul), shared event_id patterns, hashing variants each platform prefers, and consent handling.
- TL;DR
- Multi-platform conversion APIs are essential for accurate attribution across LinkedIn, Snap, and X.
- Treating these platforms the same can lead to missed insights and reduced tracking accuracy.
- Each platform has unique setup requirements and data handling nuances that impact performance.
- Sharing event IDs across platforms can be beneficial, but be mindful of the specific data attributes each requires.
- Hashing user data correctly is crucial for match quality and compliance.
Why treating LinkedIn, Snap, and X as the others is a mistake
When it comes to multi-platform conversion APIs, it’s a common pitfall to approach LinkedIn, Snap, and X with a one-size-fits-all mindset. Each platform has its own strengths, quirks, and user behaviors. If you treat them the same, you risk losing valuable insights and attribution accuracy.
-
Unique Audiences: LinkedIn is primarily B2B, catering to professionals and businesses. Snap, on the other hand, is heavily focused on younger audiences and visual content. X (formerly Twitter) has its own unique user base that thrives on real-time engagement. Understanding these nuances is key to effective targeting.
-
Different Data Models: Each platform has distinct data models and requirements. For example, LinkedIn relies on the
li_fat_idfor click identification, while Snap uses the_scidcookie for tracking. Implementing conversion APIs without accounting for these differences can lead to data mismatches and gaps in attribution.
LinkedIn Conversions API: the B2B goldmine
LinkedIn's Conversions API is a powerful tool for tracking conversions, especially for B2B companies. It allows you to attribute conversions directly to LinkedIn ads, providing a clearer picture of ROI.
Key Points for Setup
-
LinkedIn Insight Tag vs CAPI: The Insight Tag is useful for tracking page views and events, but the Conversions API delivers more robust data directly to LinkedIn without relying solely on browser cookies.
-
Required Fields: When setting up LinkedIn CAPI, ensure you include essential fields like
conversion.id,conversionHappenedAt, anduser.id(hashed).
Here’s an example of a LinkedIn Conversions API POST body:
{
"conversion": {
"id": "123456",
"conversionHappenedAt": "2023-10-01T12:00:00Z",
"user": {
"id": "[email protected]"
},
"conversionValue": 100.00
}
}
Snap Conversions API: in-app commerce attribution
The Snap Conversions API excels in tracking in-app conversions. If your business leverages mobile applications for commerce, this API is a must-have.
Implementation Details
- Setup Requirements: Similar to LinkedIn, ensure you are capturing the necessary event data. This includes the Snap
_scidcookie, which is pivotal for user identification.
Here’s a simplified version of Snap's API structure:
{
"event": {
"event_type": "purchase",
"event_time": "2023-10-01T12:00:00Z",
"user": {
"id": "hashed_user_identifier"
},
"value": 100.00
}
}
X Conversions API: what you still get post-2022 ad-platform overhaul
Even after the major changes to X's ad platform in 2022, the Conversions API remains a valuable asset for marketers.
What’s New and Different
- Data Requirements: X requires more stringent data handling practices. The user data must be hashed properly to ensure compliance.
Here’s a sample structure for X’s API:
{
"event": {
"type": "conversion",
"time": "2023-10-01T12:00:00Z",
"user": {
"id": "hashed_user_identifier"
},
"value": 100.00
}
}
Can you share one event_id across all three platforms?
Using a single event_id across LinkedIn, Snap, and X can streamline tracking but comes with caveats. Each platform has different requirements for how this ID is structured and utilized.
- Cross-Platform Consistency: Ensure that the event ID conveys similar meanings across platforms, but remember that each platform may process this ID differently.
Tip: We recommend using distinct event IDs when necessary, as it can help maintain clarity in your reporting and reduce confusion during data analysis.
Hashed user_data: platform-specific quirks that break match quality
Hashing user data is a critical step in ensuring privacy and security. However, each platform has its preferred hashing methods, which can affect match quality.
Hashing Variants
-
LinkedIn: Prefers emails to be hashed as lowercase and trimmed. This helps avoid mismatches due to case sensitivity.
-
Snap: It accepts both hashed and un-hashed data but recommends hashing for better privacy.
-
X: Has strict requirements for hashing and will reject improperly formatted data.
Warning: LinkedIn treats emails differently under CPRA/GDPR than Meta/Google do. Careless server-side forwarding can trigger account warnings even for opted-in users.
Consent handling and data-minimization per platform
Ensure compliance with various data protection regulations by handling consent appropriately across all platforms. Each platform has its own guidelines on consent and data-minimization practices.
-
LinkedIn: Requires explicit consent for tracking emails and events. Ensure your processes align with their policies.
-
Snap: Make sure to implement user consent pop-ups that align with their data policies, especially in mobile apps.
-
X: Has specific requirements around user consent for conversion tracking that you need to adhere to.
Common mistakes we see
- Failing to hash user data correctly, leading to poor match quality.
- Treating all platforms the same, ignoring their unique requirements.
- Not validating the response from each platform after sending data.
- Overlooking consent handling, resulting in compliance issues.
- Sharing event IDs across platforms without understanding the implications.
Implementation checklist
- Set up LinkedIn Conversions API with required fields.
- Configure Snap Conversions API to capture in-app events.
- Implement X Conversions API with strict data handling practices.
- Hash user data according to each platform's requirements.
- Ensure consent handling is compliant with regulations.
- Validate API responses to catch errors early.
- Monitor conversion data regularly for discrepancies.
How Samarth Analytics helps
Navigating the complexities of multi-platform conversion APIs can be daunting. At Samarth Analytics, we specialize in optimizing your tracking and attribution strategies. Whether you need a free audit of your current setup or want to contact us for tailored solutions, we’re here to help you maximize your marketing efforts.