//- if we have a GA token, insert the google analytics async script1- var GOOGLE_ANALYTICS = htmlWebpackPlugin.options.GOOGLE_ANALYTICS2if typeof GOOGLE_ANALYTICS !== "undefined" && GOOGLE_ANALYTICS !== null3//--- Google Analytics ---4script.5//- Instructs analytics.js to use the name `google_analytics`.6window.GoogleAnalyticsObject = 'google_analytics';7//- Creates an initial analytics() function.8//- The queued commands will be executed once analytics.js loads.9window.google_analytics = window.google_analytics || function() {10(google_analytics.q = google_analytics.q || []).push(arguments)11};12//- Sets the time (as an integer) this tag was executed.13//- Used for timing hits.14google_analytics.l = +new Date;15//- Creates a default tracker with automatic cookie domain configuration.16google_analytics('create', '#{GOOGLE_ANALYTICS}', 'auto');17//- Sends a pageview hit from the tracker just created.18google_analytics('send', 'pageview');1920//- Sets the `async` attribute to load the script asynchronously.21script(async src='//www.google-analytics.com/analytics.js')22//--- End Google Analytics ---2324