Install
This documentation refers to SDK v3. For previous versions, select a different version in the top right corner of the page. To know which version you're using, check your integration URL.
It takes just two steps to install and start using the SDK in your website.
Prepare your SDK application key
The application key (app key) tells the SDK which configurations are set to use (colors, required expert expertise, etc.).
If you don't have an app key yet, please contact us.
Add the snippet
Use one of these ways to add the snippet below to your website:
- With the
<script>
tags in a high-level element of the website. We highly recommend placing them in theHEAD
. - Without the
<script>
tags, directly in your javascript code.
Make sure to replace APP_KEY_HERE
with your app key.
<script>
(function () {
const w = window,
a = '__AE_SDK_ACTIONS',
d = document,
s = d.createElement('script', {}),
b = d.getElementsByTagName('script')[0];
w[a] = [];
w.AE_SDK = function (_) { w[a].push(_); };
s.type = 'text/javascript';
s.async = true;
s.defer = true;
s.src = 'https://assets.ae-sdk.io/core/v3?appKey=APP_KEY_HERE';
b.parentNode.insertBefore(s, b.nextSibling);
})();
</script>
That's it!
You should have the Anywhere Expert SDK up and running. Check out the next sections for more detailed usage documentation.