Back to problems

Last-Click Attribution Tracker

Object-Oriented Programming · Uber · Medium

Requirements Build a last-click attribution tracker that accepts two kinds of events: click(timestamp, userId, campaignId) conversion(timestamp, userId) When a conversion occurs, associate it with the latest click from that same user that satisfies both conditions: The click happened no later than the conversion: click_time = conversion_time - conversion_window_seconds. If no click meets both conditions, leave the conversion unattributed. Implement the following API: Use…

Checking your access…