Hey team, I've connected Twitter(Destination) with...
# support
v
Hey team, I've connected Twitter(Destination) with JS SDK(source) it's giving me an error for missing twclid. I read about it and knows how to fix it. The point is I'm not able to find here shall I get twclid from? And it has to be passed for each event or only on the SDK?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
HI Rahul can you share the destinationId?
Hi Rahul, it appears that either the twclid or emailId or phone number are essential for a conversion (docs - Section Preparing Identifiers for Conversion events). Also the twclid or equivalent is to be sent for every event.
v
destination id: 2c39jDBS5BQlba2Wd9j2qnJG8nm I'm actually sending the email
m
Yes but it appears that this is a unique identifier generated by the Twitter SDK, so not sure how to replicate this.
Can you share a sample event?
Can you add the email Id in the properties as well? It should be called email. See this sample
I mean the property name is "email".
v
{ "type": "track", "event": "User Signed In", "sentAt": "2024-03-06T140143.207Z", "userId": "4w94xcimmoft", "channel": "web", "context": { "os": { "name": "", "version": "" }, "app": { "name": "RudderLabs JavaScript SDK", "version": "2.48.3", "namespace": "com.rudderlabs.javascript" }, "page": { "url": "https://app.apexnetwork.co/login", "path": "/login", "title": "Apex - Customer area", "search": "", "tab_url": "https://app.apexnetwork.co/login", "referrer": "$direct", "initial_referrer": "$direct", "referring_domain": "", "initial_referring_domain": "" }, "locale": "en-US", "screen": { "width": 430, "height": 932, "density": 3, "innerWidth": 430, "innerHeight": 738 }, "traits": { "email": "splendidmuch85@gmail.com", "user_id": "4w94xcimmoft" }, "library": { "name": "RudderLabs JavaScript SDK", "version": "2.48.3" }, "campaign": {}, "timezone": "GMT+0100", "sessionId": 1709733703189, "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.1", "sessionStart": true }, "rudderId": "76e38b1c-9a63-490c-94c5-eacd43c60408", "messageId": "c7f18aaa-2f84-420f-912f-da35cd8d7184", "timestamp": "2024-03-06T140144.166Z", "properties": { "UserID": "4w94xcimmoft", "method": "email" }, "receivedAt": "2024-03-06T140144.185Z", "request_ip": "102.89.23.125", "anonymousId": "e588d977-21fc-4c9c-b163-b7f6cca02c92", "integrations": { "All": true }, "originalTimestamp": "2024-03-06T140143.188Z" } Here are two event. { "type": "track", "event": "Withdrawal", "sentAt": "2024-03-06T065939.168Z", "userId": "9f0sbnfpmxd5", "channel": "web", "context": { "os": { "name": "", "version": "" }, "app": { "name": "RudderLabs JavaScript SDK", "version": "2.48.3", "namespace": "com.rudderlabs.javascript" }, "page": { "url": "https://app.apexnetwork.co/withdraw/fiat/ngn", "path": "/withdraw/fiat/ngn", "title": "Apex - Customer area", "search": "", "tab_url": "https://app.apexnetwork.co/withdraw/fiat/ngn", "referrer": "$direct", "initial_referrer": "$direct", "referring_domain": "", "initial_referring_domain": "" }, "locale": "en-GB", "screen": { "width": 414, "height": 896, "density": 3, "innerWidth": 430, "innerHeight": 738 }, "traits": { "email": "akinkunmiolawale0@gmail.com" }, "library": { "name": "RudderLabs JavaScript SDK", "version": "2.48.3" }, "campaign": {}, "timezone": "GMT-0500", "sessionId": 1709708341035, "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1" }, "rudderId": "07fa6040-0361-4318-8d60-eb82fa77e175", "messageId": "42f6382a-1b8f-4507-bdc7-4ea84e5bf581", "timestamp": "2024-03-06T065939.281Z", "properties": { "UserID": "9f0sbnfpmxd5", "amount": 2000, "wallet": "Naira NGN", "transaction_id": "mbefp9xtues6d56v", "withdrawal_category": "Fiat" }, "receivedAt": "2024-03-06T065939.291Z", "request_ip": "105.113.20.9", "anonymousId": "9d5e6f11-5ef4-4877-8d68-791c4c30313f", "integrations": { "All": true }, "originalTimestamp": "2024-03-06T065939.158Z" }
Your properties object should look like this "properties": {"email": "splendidmuch85@gmail.com", "UserID": "9f0sbnfpmxd5", "amount": 2000,"wallet": "Naira NGN","transaction_id": "mbefp9xtues6d56v","withdrawal_category": "Fiat"}
v
Okay I got it. thanks a lot, let me fix this and check if everything is fine after that