add quotes to analytics queries

addresses #777