Expand my Community achievements bar.

SOLVED

what is mcid is used for A4t in data insertion Api?

Avatar

Level 2

we want to use adobe analytics for reports and we see that there is an API called data insertion API is used for processing the request and counting unique visitors we pass and mcid is required for that API 
and I don't know it is required and from where I should get this mcid ?
// our approach of the implementation ::

- first we call delivery API to fetch the content with experience cloud object that has 

 "analytics": {
          "logging""client_side"
        }

- second we want to call the data insertion API 
https://{{datacollectionhost}}.sc.omtrdc.net/b/ss/11/0/MOBILE-1.0?pe=tnt&tnta=567993:0:0|0,567993:0:0|2,567993:0:0|1&mcid=2304820394812039
"I don't know how can I get the value of (datacollectionhost) ? can any one help ?"
the problem is data insertion API it only gets you 200 as  a status and I don't know how to validate the success or failure what should I expect from the request
Thanks for your help

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

MCID

This is the visitor ID that Adobe Experience Cloud ID (ECID) Service generates automatically. In regular implementations, the ECID is implemented together with Analytics and Target, so that there is one common ID that is used to identify visitors across all Adobe products.

In your case, assuming that you already have ECID implemented in your website, then you can get the MCID value from the AMCV cookie. See https://experienceleague.adobe.com/docs/id-service/using/intro/cookies.html?lang=en#section-c55af548.... If you are using AEP Tags (aka Adobe Launch) as your tag management system, then you can also get this MCID value by running _satellite.getVisitorId().getMarketingCloudVisitorID().

 

datacollectionhost

Assuming that you have implemented Analytics in your website already, then you can get this "datacollectionhost" value quickly by searching your Network requests for other hits that go out to the same "/b/ss" path.

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

MCID

This is the visitor ID that Adobe Experience Cloud ID (ECID) Service generates automatically. In regular implementations, the ECID is implemented together with Analytics and Target, so that there is one common ID that is used to identify visitors across all Adobe products.

In your case, assuming that you already have ECID implemented in your website, then you can get the MCID value from the AMCV cookie. See https://experienceleague.adobe.com/docs/id-service/using/intro/cookies.html?lang=en#section-c55af548.... If you are using AEP Tags (aka Adobe Launch) as your tag management system, then you can also get this MCID value by running _satellite.getVisitorId().getMarketingCloudVisitorID().

 

datacollectionhost

Assuming that you have implemented Analytics in your website already, then you can get this "datacollectionhost" value quickly by searching your Network requests for other hits that go out to the same "/b/ss" path.

Avatar

Level 2

Thank you for your responding .
do you mean that datacollectionhost is some thing i create from adobe analytics adminstration or that is some thing in the activity itself I read something about that tracking server is the datacollectionhost

is tracking server same as datacollection host ?

atef00_0-1662461697544.png

atef00_1-1662461780325.png

 

 

 

Avatar

Community Advisor

Tracking server would be the complete "{{datacollectionhost}}.sc.omtrdc.net". So you'd just need that first part for your datacollectionhost.

Avatar

Level 2

is that mean if my tracking server is : 

metrics.companyname.co.us

so the dataCollection host will be  : "metrics.companyname.co.us"

No need for "sc.omtrdc.net"
is there any difference between metrics and smetrics   "I see smetrics a lot "  ?
Thanks a lot for your help I really appreciate it

Avatar

Community Advisor

Oh, you're using a first-party CNAME for your tracking server. See this page for more information about it: https://experienceleague.adobe.com/docs/core-services/interface/administration/ec-cookies/cookies-fi...

In that case, you would use the full "metrics.companyname.co.us" in your Data Insertion API call, i.e. https://metrics.companyname.co.us/b/ss/...

Avatar

Community Advisor

The Marketing Cloud ID (MCID) Service enables most Adobe Experience Cloud solutions to uniquely identify a visitor. It is the basis of the people identification. It is a must-have component in every modern implementation of Adobe Analytics. Please refer https://experienceleaguecommunities.adobe.com/t5/adobe-experience-cloud-audiences/what-is-the-market... for more details.

 

If AA is already implemented on your website you can use (as mentioned) b/ss to search in network call to see/verify hostname 

Pradeep_Kumar_Srivastav_0-1662347108075.png