Rule reminder
Use 'che' as the direct object relative pronoun in past tense sentences. It works the same as in present tense.
La canzone … ho sentito alla radio mi è rimasta in testa.