move stream tracking to ajax call