Web&H5

1. Initializing the SDK

Embed the following code in the head TAB of the business-critical entry page

<script type="text/javascript">
	(function(){
		window._fmOpt = {
			partner: 'your partner',
			appName: 'your appName',
			success: function(data) {
				console.log('blackbox: ', data)
			}
		};
		var fm = document.createElement('script'); 
    fm.type = 'text/javascript'; fm.async = true;
		fm.src = 'Base URL' + '?t=' + (new Date().getTime()/3600000).toFixed(0);
		var s = document.getElementsByTagName('script')[0]; 
    s.parentNode.insertBefore(fm, s);
	})();
</script>
Base URL