CI replaces a/in/da + place and always goes before the conjugated verb (present, passato prossimo, imperfetto, futuro). In compound tenses, it goes before the auxiliary.
CI: Mixed Tense Practice1 / 10
Sono stata a Milano tre volte. → … sono stata tre volte. [Ci]