How to migrate to the new Astra Trust Seal

You can easily migrate to the new trust seal by following these steps:

Step 1


Copy the code below and paste it at the location where you would like the seal to be shown.

<div class="ga-trust-seal" data-size="large" data-theme="dark" data-position="manual"></div>


Step 2


Copy the code below and paste just before the body tag in the footer of the website. You need to update the code snippet with the site id and site name. You can get the site id from the URL.

For eg: if the URL is http://dash.getastra.com/settings/58PHefoT6 then the site id is 58PHefoT6.

<script>
    var astra = {
        siteId: 'REPLACE_WITH_SITE_ID',
        siteName: 'REPLACE_WITH_SITE_NAME',
    };
(function() {
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.async = true;
    s.id = 'sdkscriptnode';
    s.src = 'https://api.getastra.com/dist/sdk.js';
    var x = document.getElementsByTagName('script')[0];
    x.parentNode.insertBefore(s, x);
})();
var script = document.querySelector('#sdkscriptnode');
script.addEventListener('load', function() {
    astraSDK.setSeal();
});
</script>

Updated on: 13/06/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!