• Hello.

    I want to use the following custom code in AMP pages.

    <div class="ja-gadget-virtual-assistant-hybrid cleanslate">
    <link rel="stylesheet" href="https://components.justanswer.com/css/ja-gadget-virtual-assistant-hybrid" />
    <script type="text/javascript" src="https://components.justanswer.com/js/ja-gadget-virtual-assistant-config,ja-gadget-virtual-assistant-hybrid"></script>
    <script type="text/javascript">
    (function(){
    require("ja-gadget-virtual-assistant-hybrid")(
    (function() { var scripts = document.querySelectorAll('script[src="https://components.justanswer.com/js/ja-gadget-virtual-assistant-config,ja-gadget-virtual-assistant-hybrid"]'); return scripts[scripts.length - 1].parentNode })(),
    require("ja-gadget-virtual-assistant-config")({"partner":"US","affiliateId":"ho|10107|2522","profile":"microsoft-office","settings":"default","size":"default","showCopyright":false,"trackingPixels":{"transition":"https://trk.justanswer.com/aff_c?offer_id=2&aff_id=10107&file_id=2522"}})
    ).initialize();
    })();
    </script>
    </div><img src="https://trk.justanswer.com/aff_i?offer_id=2&file_id=2522&aff_id=10107" width="0" height="0" style="position:absolute;visibility:hidden;" border="0" />

    When I created the ad using your plugin, it is working in non-AMP pages.

    But in AMP pages it is showing raw code.

    How to display this custom code ad in AMP pages.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Code to include in AMP pages’ is closed to new replies.