Adding tracking to popup pages