Tag pH analysis