This document will go over the steps in embedding the Ambassador Application on any of your pages on your website. You should have your IT staff or web developer help with embedding the SLWeb Module iframe onto your website.
Copy the code block below into the body tag where you want to host the iFrame:
<div id="slWebAppWidget"></div>
<script src="https://socialladder.rkiapps.com/SLWeb/slweb-frame.js"></script>
<script>
var areaGuid = "[AREA_GUID]";
var appGuid = getParameterFromURLByName("appGuid");
if (!appGuid) {
appGuid = "[APPLICATION_GUID]";
}
var campGuid = getParameterFromURLByName("campGuid");
var resGuid = getParameterFromURLByName("resGuid");
var crmShopName = "[CRM_SHOP_NAME]";
var customerEmail = "[CRM_CUSTOMER_EMAIL]";
var customerId = "[CRM_CUSTOMER_ID]";
loadSLApplicationWidget(areaGuid, appGuid, customerEmail, customerId, campGuid, crmShopName, resGuid);
</script>
NOTE:
The div tag with id=”slWebAppWidget” is important in the snippet as the script will look for that id to load an application iframe inside that div.
The sequence of the div & script should be exactly the same as shown in the snippet.
areaGuid: Will be provided from SocialLadder and is required.
appGuid: You can get this from Portal, need to use the appGuid according to which application you want the user to fill.
CRM_CUSTOMER_EMAIL: Email address of the user logged into the page you have hosted the application.
CRM_CUSTOMER_ID: External user id. We will use this in SSO login to get user’s deviceUUID and log them in directly into SLWeb.
campGuid: If an ambassador is invited manually from the SocialLadder portal, we will add the campGuid into the ecommerce URL. This information is automatically captured.
crmShopName: pixel tracking code under Manage Shop (Fixed Code). This information is automatically captured.
resGuid: Sent to load the user in the current state on the website. Shows page where user left off - only happens when users connect IG or reloads form. We will add the resGuid into your ecommerce URL. This information is automatically captured.