Add analytics snippet