# 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
Region | Base URL |
---|---|
China | https://static.tongdun.net/v3/fm.js |
North America | https://static.tongdun.net/us/fm.js |
Singapore | https://static.tongdun.net/sg/fm.js |
Germany | https://static.tongdun.net/fra/fm.js |
Indonesia | https://static.tongdun.net/idn/fm.js |