• 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

    Adding HTML from Constant Contact

    I'm using the GoCentral Online Store plan.

     

    I'm trying to add a Constant Contact Archived Newsletter Widget to my site using an HTML code provided by Constant Contact. I do not know HTML code myself so I was happy to see they provide them when following instructions on the Constant Contact site.

     

    However, when publishing it on my GoDaddy site, it just shows up blank. It should show up here under the "Missed an e-Moosletter?" section:

    https://hansendairy.com/e-moosletters

    1 ACCEPTED SOLUTION

    Hey there again @Jordan80,

     

    Unfortunately, it sounds like it won't work with GoCentral as it puts the HTML into an iframe. You may have to check out options like WordPress for your site.



    I am a GoDaddy End User - Just Like You
    * Please note that I DO NOT answer private messages. Please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. If you contact me via PM for help, I will give you a price quote for my personal services. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community


    View solution in original post

    8 REPLIES 8
    Super User II

    Hey there @Jordan80,

     

    When I view the page source for the site, I get an error for the Constant Contact HTML:

     

    Access to XMLHttpRequest at 'about://campaign.constantcontact.com/archive?m=a07e29oq0ry0&l=25' from origin 'https://hansendairy.com' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

     

    It looks as if you didn't enter all the HTML code correctly so it blocked it. I would review the HTML code they asked you to put on there and make sure it has an http/https in front of it. That seems to be the issue.

     

    If that doesn't work, let us know.



    I am a GoDaddy End User - Just Like You
    * Please note that I DO NOT answer private messages. Please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. If you contact me via PM for help, I will give you a price quote for my personal services. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community


    Thanks for your reply. This is the code they gave me:

     

    <!--Begin CTCT Archive-->
    <script id="archiveScript" src="//static.ctctcdn.com/js/archive-static/current/archive-static.min.js"></script> <div id="archiveList" data-archive-count="25" data-m="a07e29oq0ry0"></div>
    <!--End CTCT Archive-->

     

    Where exactly should the http/https go?

    Hmmm, that looks like a correct HTML embed. However, when I tried to put it in a regular html file and display it, it didn't work either. I don't think the fault lies in the Website Builder. I would reach out to constant contact and see if maybe they have a solution. I'm 99% certain it's something with the code they provided.



    I am a GoDaddy End User - Just Like You
    * Please note that I DO NOT answer private messages. Please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. If you contact me via PM for help, I will give you a price quote for my personal services. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community


    I talked with Constant Contact, and they are opening a case on it. Hope to have answers this week. Thanks for your advice.

    If they give you any info you don't understand, reach out here. I'll subscribe to the thread so I'll see if you update it.

     

    Good luck!



    I am a GoDaddy End User - Just Like You
    * Please note that I DO NOT answer private messages. Please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. If you contact me via PM for help, I will give you a price quote for my personal services. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community


    Community Manager

    Hi @Jordan80. The script is referring to an externally hosted javascript document. My experience has been that it's not easy to get this type of script to run within an iframe, which is what GoCentral uses when you use the HTML section. I tested it by using an online HTML renderer and enclosing the script within iframe tags. I wasn't able to get it to work there either. There is some good documentation on using javascript within an iframe here. If you can figure out a way to get the code to load in an iframe, then it should work in GoCentral. I hope that helps. 

     

    JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.

    So this is what Constant Contact said. At this point, the consensus seems to be that this code will not work in an iframe, which is what GoDaddy uses for the Website Builder, so am I just out of luck?

     

    "After looking deeper at the spot where the archived emails should appear, I found the page is not rendering the code correctly. My team has very limited knowledge about each website type it is best you contact the Web hosting company for the best support. I still wanted to let you know what I found in the hopes that it would be a breadcrumb to follow on GoDaddy's Support page. 

    The iframe that contains our code may not be a widget, or block, that supports the Javascript our widget needs to successfully pull in the archived newsletters. If you right click on the spot the archive widget code is, then choose inspect, then find the widget code you will see that the page is converting the < and > to their ascii equivalents &gt; and &lt;. This will break the code and not have the widget work as expected.

     

    I would double check the block type the code is added to first. If it is already the correct type I am going to say to reach out to GoDaddy about alternative block types."

    Hey there again @Jordan80,

     

    Unfortunately, it sounds like it won't work with GoCentral as it puts the HTML into an iframe. You may have to check out options like WordPress for your site.



    I am a GoDaddy End User - Just Like You
    * Please note that I DO NOT answer private messages. Please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. If you contact me via PM for help, I will give you a price quote for my personal services. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community


    View solution in original post