Create new Snap Conversions API v3 destination with intelligent event mapping and batching#3192
Create new Snap Conversions API v3 destination with intelligent event mapping and batching#3192
Conversation
Co-authored-by: varadarajan-tw <[email protected]>
… tests Co-authored-by: varadarajan-tw <[email protected]>
Co-authored-by: varadarajan-tw <[email protected]>
|
@copilot you should create a separate destination called snap-conversions-v3 and not update the existing one. |
Co-authored-by: varadarajan-tw <[email protected]>
I've addressed your feedback and created a separate destination called The new destination includes:
This approach maintains full backward compatibility with existing integrations while providing the enhanced functionality as a separate destination option. Commit: 818255e |
This PR creates a new separate destination called
snap-conversions-v3with enhanced functionality for Snapchat Conversions API integration, while preserving the existingsnap-conversions-apidestination unchanged for backward compatibility.New Destination: Snap Conversions API v3
The new destination provides four specialized actions with intelligent defaults and enhanced functionality:
1. Track Event (
trackEvent)type = "track"2. Track App Event (
trackAppEvent)type = "track" and context.device.type != null3. Track Purchase (
trackPurchase)type = "track" and event = "Order Completed"4. Sync User Data (
syncUserData)type = "identify"Key Features
Intelligent Event Mapping
The
trackEventaction automatically maps Segment event names to Snapchat event names:Batching Support
All new actions support batching up to 2,000 events per request (Snapchat API limit):
Enhanced Default Mappings
Each action includes optimized default field mappings:
action_source: 'website', standard field mappingsaction_source: 'app', app-specific mappingsevent_name: 'PURCHASE', ecommerce mappingsevent_name: 'UPDATE_PROFILE', user profile mappingsTechnical Implementation
snap-conversions-v3destination preserves existing integrationsprocessHashingutilityBenefits
This implementation provides a more intuitive and powerful interface for sending conversion data to Snapchat while maintaining full compatibility with existing integrations.
Fixes #3191.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.