Inclusion Criteria:  At least 18 years of age at the start of the study Non-organic insomnia Difficulty initiating, and/or maintaining sleep for ≥ 30 minutes and Use of sleep-promoting medication at least three nights per week for at least 3 months Ability to speak and read English Consistent and reliable access to the internet.  Exclusion Criteria:  Presence of another untreated sleep disorder Alcohol or substance use disorder Ongoing CBT Non-assessed or untreated clinically significant somatic or mental symptoms or illnesses Other sleep disorders that could explain current insomnia symptoms or interfere with or be worsened by e-CBTi Pregnancy