Accessing the ECID - Web SDK | Community
Skip to main content
June 6, 2024
Solved

Accessing the ECID - Web SDK

  • June 6, 2024
  • 1 reply
  • 1298 views

Hi, I am currently migrating from appMeasurement to Web SDK and would like to keep mapping the ECID value to Adobe Analytics (and now to have it set in a custom field of the new created schema).

 

I could see there are 2 suggested methods for doing this, which one of them is recommended. The recommended method is via Data Prep, but I couldn't manage to find the information about the data selection step previous to the mapping in this functionality. When it comes to define the incoming data, what kind of JSON data structure am I supposse to paste or add? Can you give me an example?

 

I checked this post where a user had the same issue, but I couldn't find the answer I am looking for. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anil_Umachigi

Here's a sample, use it initiate mapping, Also make sure your mapping the ECID in XDM in every sendEvent. Use QueryService or reports to confirm data is flowing thru. 

 

{ "data": { "eventMergeId": "cce1b53c-571f-4f36-b3c1-153d85be6602", "eventType": "view:load", "timestamp": "2021-09-30T14:50:09.604Z", "web": { "webPageDetails": { "siteSection": "Product section", "server": "example.com", "name": "product home", "URL": "https://www.example.com" }, "webReferrer": { "URL": "https://www.adobe.com/index2.html", "type": "external" } }, "commerce": { "purchase": 1, "order": { "orderID": "1234" } }, "product": [ { "productInfo": { "productID": "123" } }, { "productInfo": { "productID": "1234" } } ], "reservation": { "id": "anc45123xlm", "name": "Embassy Suits", "SKU": "12345-L", "skuVariant": "12345-LG-R", "priceTotal": "112.99", "currencyCode": "USD", "adults": 2, "children": 3, "productAddMethod": "PDP", "_namespace": { "test": 1, "priceTotal": "112.99", "category": "Overnight Stay" }, "freeCancellation": false, "cancellationFee": 20, "refundable": true } } }

 

1 reply

Anil_Umachigi
Adobe Employee
Anil_UmachigiAdobe EmployeeAccepted solution
Adobe Employee
June 6, 2024

Here's a sample, use it initiate mapping, Also make sure your mapping the ECID in XDM in every sendEvent. Use QueryService or reports to confirm data is flowing thru. 

 

{ "data": { "eventMergeId": "cce1b53c-571f-4f36-b3c1-153d85be6602", "eventType": "view:load", "timestamp": "2021-09-30T14:50:09.604Z", "web": { "webPageDetails": { "siteSection": "Product section", "server": "example.com", "name": "product home", "URL": "https://www.example.com" }, "webReferrer": { "URL": "https://www.adobe.com/index2.html", "type": "external" } }, "commerce": { "purchase": 1, "order": { "orderID": "1234" } }, "product": [ { "productInfo": { "productID": "123" } }, { "productInfo": { "productID": "1234" } } ], "reservation": { "id": "anc45123xlm", "name": "Embassy Suits", "SKU": "12345-L", "skuVariant": "12345-LG-R", "priceTotal": "112.99", "currencyCode": "USD", "adults": 2, "children": 3, "productAddMethod": "PDP", "_namespace": { "test": 1, "priceTotal": "112.99", "category": "Overnight Stay" }, "freeCancellation": false, "cancellationFee": 20, "refundable": true } } }