Add analytics to popup