<?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: at.js 2.x TriggerView - Possible to Add Custom JS Code via VEC in Adobe Target Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539295#M7988</link>
    <description>&lt;P&gt;That is correct. Even such simple statement does not work using the "Custom Code" option with the "Add to Head" option checked (I also tried &amp;lt;div&amp;gt;&amp;lt;script&amp;gt;console.log("...")&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt; WITHOUT the "Add to Head" option checked).&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 12:00:02 GMT</pubDate>
    <dc:creator>KMarchewa</dc:creator>
    <dc:date>2022-08-04T12:00:02Z</dc:date>
    <item>
      <title>at.js 2.x TriggerView - Possible to Add Custom JS Code via VEC</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539055#M7985</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have implemented the triggerView functionality on my organization's SPA. I can add CSS, basic HTML, and other changes to a particular view in the VEC. However, I have not been able to successfully add Custom Code (specifically a JS script); the script simply does not execute. I have tried multiple combinations: adding to head/not adding to head, various scripts including simple console.logs, etc. To be clear, I am very familiar with adding custom JS to "normal" (not using triggerView()) Experiences to through the VEC, even to the same SPA that is not working with the triggerViews.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a known issue? Specifically, is it even possible to add custom JS to a particular view via the VEC? If not, any suggestions as to what may be going wrong?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:38:30 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539055#M7985</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-08-03T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: at.js 2.x TriggerView - Possible to Add Custom JS Code via VEC</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539237#M7987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17476746"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just to understand your problem correct. You can add HTML and it works, but if you within the HTML add Javascript like this via a script tag is does not execute?&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt; console.log("Hello"); &amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Aug 2022 07:08:46 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539237#M7987</guid>
      <dc:creator>ericb17371700</dc:creator>
      <dc:date>2022-08-04T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: at.js 2.x TriggerView - Possible to Add Custom JS Code via VEC</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539295#M7988</link>
      <description>&lt;P&gt;That is correct. Even such simple statement does not work using the "Custom Code" option with the "Add to Head" option checked (I also tried &amp;lt;div&amp;gt;&amp;lt;script&amp;gt;console.log("...")&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt; WITHOUT the "Add to Head" option checked).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 12:00:02 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/at-js-2-x-triggerview-possible-to-add-custom-js-code-via-vec/m-p/539295#M7988</guid>
      <dc:creator>KMarchewa</dc:creator>
      <dc:date>2022-08-04T12:00:02Z</dc:date>
    </item>
  </channel>
</rss>

