• GoDaddy Community
  • GoDaddy Website Builders
  • GoDaddy Website Builders

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution
    New

    How to copy the code to my website clipboard?

    I have to add a code to my website clipboard but I don't know how to do it. Please help. Thanks

    1 ACCEPTED SOLUTION
    Super User 2020

    Unfortunately the JavaScript and HTML would need to be in the same HTML section, this platform is not compatible with site level scripting.

    View solution in original post

    3 REPLIES 3
    Super User 2020

    Here are the steps to add an HTML section.

    https://www.godaddy.com/help/add-html-or-custom-code-to-my-site-27252

     

    You can post the code here if you need help checking compatibility.

    Click the ... to expand the formatting toolbar, 
    then click </> to paste the code into a box like this.

    Hi Nate,

     

    Thanks!  I tried this but my website won't accept it. It doesn't appear in my website.   Here is the code.

     

    <script type="text/javascript">
    var vglnk = {key: 'a1f26a757b47fdeba66cb55555afea41'};
    (function(d, t) {
    var s = d.createElement(t);
    s.type = 'text/javascript';
    s.async = true;
    s.src='//cdn.viglink.com/api/vglnk.js';
    var r = d.getElementsByTagName(t)[0];
    r.parentNode.insertBefore(s, r);
    }(document, 'script'));
    </script>

    Super User 2020

    Unfortunately the JavaScript and HTML would need to be in the same HTML section, this platform is not compatible with site level scripting.

    View solution in original post