<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add a code snippet to pages created on a AEM website? in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/463162#M133703</link>
    <description>&lt;P&gt;Thank you all for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 16:58:18 GMT</pubDate>
    <dc:creator>asa2022</dc:creator>
    <dc:date>2022-07-28T16:58:18Z</dc:date>
    <item>
      <title>How to add a code snippet to pages created on a AEM website?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461450#M133113</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone confirm if it is possible to add a code snippet on a webpage created on Adobe Experience Manager?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My company was selected as the SaaS vendor for an organization that uses AEM. It is the first client using this CMS, so we are not familiar with it yet. Our software works by copying a code snippet and embedding it on the selected webpage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, I would appreciate if you could direct me to the right user documentation, so I can pass that along to the client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 22:51:26 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461450#M133113</guid>
      <dc:creator>asa2022</dc:creator>
      <dc:date>2022-07-18T22:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code snippet to pages created on a AEM website?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461477#M133115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17555223"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;What kind of code snippet you want to add? It it any script?&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Pre-assuming,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If it's script eg. Google Tag Manager code which you wants to include in all pages automatically, In that case, your option is some form of component instance on every page, &amp;amp;&lt;/LI&gt;&lt;LI&gt;If some exceptional case where the author doesn't want it then component's dialog.xml has a simple include GTM/don't include GTM checkbox.&lt;BR /&gt;OR&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;You should use inheritance to achieve&amp;nbsp;this. usually we got a so called "abstract" or "base" template which is more or less extending the foundation&amp;nbsp;page template were every other template can get kind of global code snippet from. You can put this "global" code into a separate&amp;nbsp;JSP/HTL within the abstract-template too and let people overwrite/disable that functionality in some of the extending templates (in case it is not needed in 100% of them) optionally too. Use this template in a way you would normally use the foundation components in every other template you are creating as resourceSuperType.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For more details how and where to embed please visit this documentation:&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-64/assets/managing/touch-ui-using-page-tracker.html?lang=en" target="_blank" rel="noopener"&gt;https://experienceleague.adobe.com/docs/experience-manager-64/assets/managing/touch-ui-using-page-tracker.html?lang=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jul 2022 15:32:07 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461477#M133115</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-07-19T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code snippet to pages created on a AEM website?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461507#M133120</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are are various ways to inject code in the existing AEM page like Google Tag Manager, Adobe Target.&lt;/P&gt;&lt;P&gt;Even you can inject your own client side javascript which basically read the code and inject in the page on run time.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 07:29:31 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461507#M133120</guid>
      <dc:creator>arunpatidar</dc:creator>
      <dc:date>2022-07-19T07:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code snippet to pages created on a AEM website?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461547#M133128</link>
      <description>&lt;P&gt;experienceleague.adobe.com/docs/experience-manager-64/assets/managing/touch-ui-using-page-tracker.html?lang=en&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 10:12:25 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461547#M133128</guid>
      <dc:creator>Pallavi_Shukla_</dc:creator>
      <dc:date>2022-07-19T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code snippet to pages created on a AEM website?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461580#M133138</link>
      <description>&lt;P&gt;You may want to have a look at the HTMLContainer on the contrib github repo&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/adobe/aem-contrib-wcm-components/blob/master/ui.apps/src/content/jcr_root/apps/contrib/wcm/components/htmlcontainer/v1/htmlcontainer/README.md" target="_blank"&gt;https://github.com/adobe/aem-contrib-wcm-components/blob/master/ui.apps/src/content/jcr_root/apps/contrib/wcm/components/htmlcontainer/v1/htmlcontainer/README.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It actually forces the author to first upload to the DAM and then only after it's approved can they put in into a page. This helps with governance and preventing Authors from adding dangerous HTML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:16:21 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/461580#M133138</guid>
      <dc:creator>Paul-Myers</dc:creator>
      <dc:date>2022-07-19T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a code snippet to pages created on a AEM website?</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/463162#M133703</link>
      <description>&lt;P&gt;Thank you all for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 16:58:18 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-add-a-code-snippet-to-pages-created-on-a-aem-website/m-p/463162#M133703</guid>
      <dc:creator>asa2022</dc:creator>
      <dc:date>2022-07-28T16:58:18Z</dc:date>
    </item>
  </channel>
</rss>

