• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | 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

    3 REPLIES 3
    Super User III Super User III
    Super User III

    Re: How to copy the code to my website clipboard?

    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.
    New

    Re: How to copy the code to my website clipboard?

    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 III Super User III
    Super User III
    Solution

    Re: How to copy the code to my website clipboard?

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