Skip to main content

Find Conversion Rates

Medium

You are given the following tables:

attribution table:

session_idmarketing_channelpurchase_value
stringstringfloat

user_sessions table:

session_idad_click_timestampuser_id
stringdatetimestring

Find what percentage of link clicks convert to a purchase for each marketing channel and arrange them in decreasing conversion rate. Your output should have the following columns: marketing_channel, avg_purchase_value, conversion_rate