Hosting AE SDK in your website
Including and using the SDK in your website is fairly straightforward, and consists of two stages only.
1. Add Anywhere Expert SDK
Add the following script import to your HTML file
<script type="text/javascript" src="https://sdk-assets.anywhere.expert/production/v2/ae-sdk-loader.umd.js"></script>
The JS bundle must be loaded before any other JS code that interacts with the SDK API (window.AE_SDK).
The bundle is very light (~12kB) and shouldn't affect the website loading time.
We highly recommend to not write code that adds the script to DOM, but using the script tag directly in the html.
2. Initialize Anywhere Expert in your website
The last step is to add the initialization code to your website, during this step you will be able configure the SDK behavior, to get further understanding about the initialization parameters, refer to this document.
Add the following script import to your HTML file, fill it up with your details
The sample code provided here is incomplete, you must add your app key in order for the SDK to behave properly.
window.AE_SDK.initialize('YOUR-APP-KEY', settings);
That's it.
Only 2 steps. you should have Anywhere Expert up and running in your website, check out the next sections for more detailed usage!