<?php
/**
 * GoogleAnalytics Loader view.
 *
 * @package GoogleAnalytics
 */

if (!defined('ABSPATH')) exit;
?>
<script>
	jQuery(document).ready(function () {
		jQuery.post(
			'<?php echo esc_url( $ajaxurl ); ?>',
			{action: 'googleanalytics_get_script'}, function(response) {
			var s = document.createElement("script");
			s.type = "text/javascript";
			s.innerHTML = response;
			jQuery("head").append(s);
		});
	});
</script>
