Fix analytics
Very strange. All of a sudden, this code stopped working. createElement('script')
seemed to work before, but now the call to retrieve it fails. This is a more sensible and straightforward approach modeled after the suggestion in this blog: