added analytics, with configurable analytics trackingId
only add analytics code if a trackingId is set
got rid of empty line
added example config file