Knowledge Base Adviserly For Administrators Code Snippets

            SRP-DP - Adviser Plugin Code Block

            NOTE: You can use the following code block if you do NOT have access to the client's Adviserly Admin Console

            The only difference in this code block and the one that would be obtained within the Admin console is that you must enter the APP_ID manually (instead of it being auto generated).

            The APP_ID is the client's website domain name without any TLD designation (remove the www and the .com)

            Place the domain name (APP_ID) in the Script replacing the "place_appId_here"


            1. <script type="text/javascript">
            2.     var AdviserlyPluginConfig = {
            3.         'appId': 'YOUR_APP_ID_HERE'
            4.     };
            5.     (function (doc, script, js, fjs) {
            6.         js = doc.createElement(script);
            7.         js.src = 'https://sdk.adviserly.com/plugins/plugins.min.js';
            8.         fjs = doc.getElementsByTagName(script)[0];
            9.         fjs.parentNode.insertBefore(js, fjs);
            10.         js.onload = js.onreadystatechange = function () {
            11.             var rs = this.readyState;
            12.             if (rs && rs != 'complete' && rs != 'loaded') return;
            13.             window.setTimeout(function () {
            14.                 try { Adviserly.Plugins.load(AdviserlyPluginConfig); } catch (e) { }
            15.             }, 100);
            16.         };
            17.     }(document, 'script'));
            18. </script>


            Updated: 31 Aug 2019 02:32 AM
            Helpful?  
            Help us to make this article better
            0 0