Adobe Experience Platform Web SDK에서 Last Event Service JavaScript 라이브러리 사용

Adobe Advertising-Adobe Analytics 통합만 있는 광고주

If your organization uses the legacy Adobe Analytics visitorAPI.js library for data collection, you can optionally switch to using the Adobe Experience Platform Web SDK library (alloy.js), which allows you to interact with the various Adobe CX Enterprise services through the Edge Network.

Analytics for Advertising Last Event Service JavaScript 라이브러리는 있는 그대로 뷰스루 및 클릭스루 이벤트를 기록하고 보조 ID(SDID)를 사용하여 연결된 전환에 결합합니다. 그러나 Web SDK 라이브러리는 stitch ID을(를) 제공하지 않습니다. Analytics for Advertising에 대해 Web SDK을(를) 사용하려면 1) 웹 페이지에서 사용하는 Last Event Service 태그와 2) Web SDK sendEvent 명령을 적절하게 수정해야 합니다.

Step 1: Edit your Last Event Service tag to generate a StitchID

웹 페이지에서 사용하는 Analytics for Advertising Last Event Service 태그에서 라이브러리에 번들로 제공된 임의의 ID 생성기를 사용하여 StitchID을(를) 생성하는 코드를 추가하십시오.

기존 태그:

<script>
     if("undefined" != typeof AdCloudEvent)
          AdCloudEvent('IMS ORG Id','rsid');
</script>

새 태그:

<script>
     if("undefined" != typeof AdCloudEvent)
          stitchId = AdCloudEvent('IMS ORG Id','rsid').generateRandomId();
</script>

Step 2: Use Web SDK to send the StitchID as XDM data for Analytics

Insert the following property within your Web SDK sendEvent command to send the StitchID to Experience Edge as Experience Data Model (XDM) data for Analytics. Analytics이(가) 값을 SDID(으)로 사용합니다.

추가할 속성:

     "_adcloud": {
       "advertisingStitchID": stitchId
     }

예:

<script>
  alloy("sendEvent", {
    "xdm": {
      "commerce": {
        "order": {
                ………
        }
     },
     "_adcloud": {
       "advertisingStitchID": stitchId
     }
    }
  });
</script>
recommendation-more-help
advertising-help-integrations