Use a custom JavaScript variable in GTM:
function() {
return 'snap_evt_' + Date.now() + '_' + Math.floor(Math.random() * 100000);
}
window.dataLayer.push({
event: 'purchase',
event_id: 'tt_evt_1721456789123_45678',
// ...other parameters
});
Use GTM Preview mode and Snapchat Events Manager, in Ads Manager, to ensure deduplication is working and only one conversion is counted per user action.