fix analytics snippet