<?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 send custom event through API without triggering a UI-based event? in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627655#M1440</link>
    <description>&lt;P&gt;With the current v1 JS API you can only send cart (cartview, checkout, purchase) and cartaction (add, remove, update) events that would go straight to the appropriate table in the data model without the need for a rule in the UI.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the new v2 JS API (you will need to load the ot-all.min.js tag to get access) you have you can send any event (except a business process step) directly from the API.&amp;nbsp; That even includes explicit load events in case you are running an SPA. These events will show up in the appropriate tables and will also be available for task targeting, metrics or be streamed to an on-prem agent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=cintcdc&amp;amp;cdcVersion=production.a&amp;amp;docsetId=cintag&amp;amp;docsetTarget=ing-events-api.htm&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;https://go.documentation.sas.com/?cdcId=cintcdc&amp;amp;cdcVersion=production.a&amp;amp;docsetId=cintag&amp;amp;docsetTarget=ing-events-api.htm&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To receive these API events in the appropriate tables and to be able to use them in Engage tasks you have to declare them in the UI.&amp;nbsp; There you can also declare any additional custom attributes that you like to send along. Something the v1 API didn't support.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a functionality that we are planing to release in our upcoming March release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whilst you can already use the v2 API today to send click, submit or the new load events you will have to wait for the March release to take full advantage of it and be able to consume the additional API events like custom, internal search, promotion, product view, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also this community announcement:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Customer-Intelligence/Preview-of-CI360-March-2020-release-20-03/m-p/621171" target="_blank"&gt;https://communities.sas.com/t5/SAS-Customer-Intelligence/Preview-of-CI360-March-2020-release-20-03/m-p/621171&lt;/A&gt;&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>Wed, 26 Feb 2020 20:28:16 GMT</pubDate>
    <dc:creator>OlafKratzsch</dc:creator>
    <dc:date>2020-02-26T20:28:16Z</dc:date>
    <item>
      <title>How to send custom event through API without triggering a UI-based event?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627624#M1439</link>
      <description>&lt;P&gt;My company is using Adobe DTM with SAS [Adobe injects the SAS embed script on all pages and custom JS when necessary for particular rules]. I'd like to send custom events to the SAS API without needing to set up a rule on the SAS side. Where can I specify in my script what 'rule'/event should be appearing after the data is processed in SAS, eg: "Clear Cart"?. I see in the documentation that there's eventName but appears to only be for the type of event, eg submit, click, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 18:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627624#M1439</guid>
      <dc:creator>mmartinezcampos</dc:creator>
      <dc:date>2020-02-26T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to send custom event through API without triggering a UI-based event?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627655#M1440</link>
      <description>&lt;P&gt;With the current v1 JS API you can only send cart (cartview, checkout, purchase) and cartaction (add, remove, update) events that would go straight to the appropriate table in the data model without the need for a rule in the UI.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the new v2 JS API (you will need to load the ot-all.min.js tag to get access) you have you can send any event (except a business process step) directly from the API.&amp;nbsp; That even includes explicit load events in case you are running an SPA. These events will show up in the appropriate tables and will also be available for task targeting, metrics or be streamed to an on-prem agent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=cintcdc&amp;amp;cdcVersion=production.a&amp;amp;docsetId=cintag&amp;amp;docsetTarget=ing-events-api.htm&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;https://go.documentation.sas.com/?cdcId=cintcdc&amp;amp;cdcVersion=production.a&amp;amp;docsetId=cintag&amp;amp;docsetTarget=ing-events-api.htm&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To receive these API events in the appropriate tables and to be able to use them in Engage tasks you have to declare them in the UI.&amp;nbsp; There you can also declare any additional custom attributes that you like to send along. Something the v1 API didn't support.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a functionality that we are planing to release in our upcoming March release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whilst you can already use the v2 API today to send click, submit or the new load events you will have to wait for the March release to take full advantage of it and be able to consume the additional API events like custom, internal search, promotion, product view, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also this community announcement:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Customer-Intelligence/Preview-of-CI360-March-2020-release-20-03/m-p/621171" target="_blank"&gt;https://communities.sas.com/t5/SAS-Customer-Intelligence/Preview-of-CI360-March-2020-release-20-03/m-p/621171&lt;/A&gt;&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>Wed, 26 Feb 2020 20:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627655#M1440</guid>
      <dc:creator>OlafKratzsch</dc:creator>
      <dc:date>2020-02-26T20:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to send custom event through API without triggering a UI-based event?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627946#M1443</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/242825"&gt;@OlafKratzsch&lt;/a&gt;. Until then, i'll create UI rules. For JS API v2, is eventName the Rule name in SAS? If not, how do I specify which rule will receive the data?&amp;nbsp; If sending an event from DTM (initiated by a click rule in DTM), should I still use a click event in the SAS UI, or set up a javascript variable change event?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example script to follow would be very helpful. Thanks for your help so far!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 15:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627946#M1443</guid>
      <dc:creator>mmartinezcampos</dc:creator>
      <dc:date>2020-02-27T15:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to send custom event through API without triggering a UI-based event?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627970#M1444</link>
      <description>The eventName defines what type of event it is. If you send click, JSVar or submit events with v2 it's the same as you do now with v1.  You will have a rule (or multiple ones) that look for specific attributes of the click event like the AltText, URI or any of the data- elements.&lt;BR /&gt;If you send business events like a custom event or an internal Search event with v2 all you have to do in the UI to create that event as a JS API event , give it a name and an apiEventKey and define any custom attributes you want to send along. In teh API call you then send that apiEventKey and based on the eventName it ends in the correct table. We are currently updating the documentation and adding the information which table events are ending up based on their eventName.&lt;BR /&gt;&lt;BR /&gt;When using v1 I would always use a click event as it is more flexible and allows for more attributes when using the html5 data- attributes,  The documentation has a good example. &lt;A href="https://go.documentation.sas.com/?cdcId=cintcdc&amp;amp;cdcVersion=production.a&amp;amp;docsetId=cintag&amp;amp;docsetTarget=ing-eventsapi-types.htm&amp;amp;locale=en#n067qjasszzwuhn1vfy0ht3xrsov" target="_blank"&gt;https://go.documentation.sas.com/?cdcId=cintcdc&amp;amp;cdcVersion=production.a&amp;amp;docsetId=cintag&amp;amp;docsetTarget=ing-eventsapi-types.htm&amp;amp;locale=en#n067qjasszzwuhn1vfy0ht3xrsov&lt;/A&gt;</description>
      <pubDate>Thu, 27 Feb 2020 16:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/How-to-send-custom-event-through-API-without-triggering-a-UI/m-p/627970#M1444</guid>
      <dc:creator>OlafKratzsch</dc:creator>
      <dc:date>2020-02-27T16:21:11Z</dc:date>
    </item>
  </channel>
</rss>

