Landing page hits arrive with campaign tracking parameters bolted onto the URL by whoever built the link, so the same campaign appears under a dozen spellings. Normalize them before they reach the warehouse.
Return one dict per URL, in the order given, with keys in this order:
url, source, medium, campaign
utm_source, utm_medium and utm_campaign; parameter names match case-insensitively+ means a space, then trimmed and lowercasedNoneurl is returned exactly as it was given, unchanged# fragmenturls[ "https://example.com/pricing?utm_source=Newsletter&utm_medium=Email&utm_campaign=Spring_Launch", "https://example.com/pricing" ]
| url | source | medium | campaign |
|---|---|---|---|
| https://example.com/pricing?utm_source=Newsletter&utm_medium=Email&utm_campaign=Spring_Launch | newsletter | spring_launch | |
| https://example.com/pricing | null | null | null |
urls[ "https://example.com/a?utm_source=Paid%20Search&utm_medium=&utm_campaign=q1+push" ]
| url | source | medium | campaign |
|---|---|---|---|
| https://example.com/a?utm_source=Paid%20Search&utm_medium=&utm_campaign=q1+push | paid search | null | q1 push |
Community-reported interview topic. Not an official company question and no affiliation is implied.
Run against the public tests, or submit to score against all of them.