Hey there! All you have to do is click on Conversions inside Twitter Ads, then create a new conversion. You will get a snippet that looks like this:
The only unique part is the xyz123 ID.
Another option is to use Segment.io - then you just have to map an even you’re already tracking to that unique code 