trackAttributes is optional