Follow

Javascript API

Include our JavaScript API brainsins.js

The first step is to include our JavaScript file into everypage of your online store, in the bottom of the body section:

<!-- BrainSINS Code Starts -->
<script type="text/javascript">
   brainsins_token = "TOKEN";
</script>
<script type="text/javascript" async="" src="//d2xkqxdy6ewr93.cloudfront.net/brainsins.js" charset="UTF-8"></script>
<!-- BrainSINS Code Ends -->

The variable TOKEN should be replaced by your unique BrainSINS client ID. You can find that ID accessing our management tool: Settings->Account info. This id has the following structure: BS-0000000000-1.

For instance, if your client code is “BS-1234567890-1″, the could you should generate into the BODY section would be:

<body>
.
.
.
<!-- BrainSINS Code Starts --> <script type="text/javascript"> brainsins_token = "BS-1234567890-1"; </script> <script type="text/javascript" async="" src="//d2xkqxdy6ewr93.cloudfront.net/brainsins.js"></script>
<!-- BrainSINS Code Ends -->
</body>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk