The history of Trataka must be read through the sources — Haṭha Yoga Pradīpikā, ch. II — distinguishing what the texts say from what modern readings have added.
Between its earliest attestations and modern readings, Trataka has been taken up, translated and sometimes simplified: separating the layers is the first task of any student.
A fixed gaze on a small object, often a candle flame, counted among the six purifying actions.
Origin and sources: Haṭha Yoga Pradīpikā, ch. II
The main historical reference remains Haṭha Yoga Pradīpikā, ch. II; later interpretations should be read in the light of that starting point.