Is there an onReady method?
UTMSimple has a handl_js.onload
method that you can use to make sure UTMSimple is loaded. This trigger makes sure that all the cookies are captured and ready to be consumed.
<!-- Global site UTM Simple Tracking Start-->
<script>
var handl_custom_params = [];
var handl_js = document.createElement("script");
handl_js.setAttribute("src", "https://track.utmsimple.com/utm.js?license=<license code goes here>"), document.head.appendChild(handl_js),
handl_js.onload = function() {
/*This is the UTM Simple ready event, you can put any code you'd like to trigger after the script fully loaded here*/
console.log("I\'m ready")
console.log("prnting all the cookies")
console.log(HandL.getAll())
};
</script>
<!--Global site UTM Simple Tracking End -->