ios code for marketing app for PS Insights