Breakdown of Me contó que había llegado el día anterior.
llegar
to arrive
que
that (relative pronoun, conjunction)
me
to me / myself (reflexive) / me (direct object)
contar
to tell (a story)
Questions & Answers about Me contó que había llegado el día anterior.
Why does the sentence use había llegado instead of just llegó?
Había llegado is the past perfect tense, meaning "had arrived". It is used to talk about a past action that happened before another past action. Because her arrival happened before she told the speaker about it (me contó), we use había llegado rather than the simple past.
Could I use me dijo instead of me contó here?
Why does it say el día anterior rather than ayer for "the day before"?
This happens because of reported speech. If she originally said "I arrived yesterday" (Llegué ayer), "yesterday" was relative to the exact day she was speaking. When you relay that information later on, her "yesterday" might not be your "yesterday" anymore. To keep the timeline logically correct, ayer changes to el día anterior (the previous day).
How do we know it means "She told me" and not "He told me"?
Looking at just this sentence, we actually don't know! The verbs contó and había are in the third-person singular, which can apply to él (he), ella (she), or usted (formal you). The translation says "she" because it assumes a wider context (like a previous sentence establishing the subject) that we can't see here.