Created analytics queries and added a bash script to automate analytics.