updated tracking utility functions for purchases