Importing the NuConomy JavaScript
In every page you want to use the NuConomy JavaScript API you must include the following code:<script type="text/javascript">
var _nucjs = (("https:" == document.location.protocol) ? "https://sslf" : "http://f");
document.write(unescape("%3Cscript src='" + _nucjs + ".nuconomy.com/n.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
NUCONOMY.ProjectToken = "XXXXXXXX-XX";
</script>
Note that instead of XXXXXXXX-XX (as illustrated above) you should enter the unique project token that was given to you by NuConomy. If you do not know your project token, please contact NuConomy support at support@nuconomy.com We generally recommend you place this code where your other analytics tags, if any, are located (e.g. just before the body tag of your page). However, the only requirement in terms of where to place this code on the page is that it must appear before any API call. Note that we also support a safe API that eliminates any chance of your users viewing JavaScript errors, even during disaster times when all communication to our servers is down. For more information read here.
