add meta data and analytics code