### Initializing Google Analytics Tracking (JavaScript)
Source: https://github.com/explv/explv.github.io/blob/master/index.html
This snippet initializes Google Analytics tracking by setting up the `dataLayer` array and defining the `gtag` function. It then configures the analytics for the specified tracking ID 'UA-111933116-1', enabling data collection for page views and other events.
```JavaScript
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-111933116-1');
```
--------------------------------
### Conditionally Loading External JavaScript Libraries
Source: https://github.com/explv/explv.github.io/blob/master/index.html
This code block checks for the existence of global objects (jQuery, jQuery UI, Bootstrap's modal function, and Leaflet's `L` object) and, if they are not found, dynamically writes a `');
window.jQuery.ui || document.write('');
window.jQuery.fn.modal || document.write('');
window.L || document.write('');
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.