Override MCID over cookies for mobile app implementation | Community
Skip to main content
Ashok_Adiyolil
Level 2
August 24, 2020
Solved

Override MCID over cookies for mobile app implementation

  • August 24, 2020
  • 2 replies
  • 3171 views

how to override the MCID over the cookies for mobile app implementation?

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 Andrew_Wathen_

It is a while since I looked at this so I could be wrong or might even be referring to an old version of the SDK.  Caveats aside....

 

If you are looking to set the MCID in a mobile app, I don't think you can directly overwrite the MCID but you can set a custom visitor ID which takes precedence over the MCID (the equivalent of setting s.visitorID on the web). There is some nuances which may be relevant depending on why you want to do it.

 

As mentioned setting a custom visitor ID does not overwrite the MCID.  It is an additional visitor ID that is captured as well to the MCID.  When it comes to processing the data, if a custom visitor ID is set, both MCID and custom visitor ID exist but I believe the custom visitor ID takes precedence and will be used for joining journeys together, counting visitor numbers etc.

 

At the time I was looking at this, we had been considering passing the MCID from our website to mobile app so the journey joined up as a single visitor.  However, the nuance we found was that it isn't treated exactly as thought the MCID has been replaced. So even though the custom visitor ID we were setting was the same value as the MCID on the website, the website and app journeys did not join up - i.e. it was not seen as the same visitor.  We might have got round this by setting the MCID as a custom visitor ID on the website but it was getting all too complex!

 

As mentioned things might have moved on... would be interested to hear if anyone else has experience of this!

 

2 replies

khurshid
Adobe Employee
Adobe Employee
August 25, 2020

If my understanding is correct, you are looking for overwriting existing MCID cookies on a web page when a user arrives via a mobile app. If that is the scenario, you might want to use appendToURL function along withoverwriteCrossDomainMCIDAndAID. Refer to the below docs.

 

https://docs.adobe.com/content/help/en/mobile-services/android/sdk-reference-android/hybrid-app.html

https://docs.adobe.com/content/help/en/id-service/using/id-service-api/configurations/overwrite-visitor-id.html

 

Ashok_Adiyolil
Level 2
August 26, 2020
Thanks for the reply,
Andrew_Wathen_
Community Advisor
Andrew_Wathen_Community AdvisorAccepted solution
Community Advisor
August 26, 2020

It is a while since I looked at this so I could be wrong or might even be referring to an old version of the SDK.  Caveats aside....

 

If you are looking to set the MCID in a mobile app, I don't think you can directly overwrite the MCID but you can set a custom visitor ID which takes precedence over the MCID (the equivalent of setting s.visitorID on the web). There is some nuances which may be relevant depending on why you want to do it.

 

As mentioned setting a custom visitor ID does not overwrite the MCID.  It is an additional visitor ID that is captured as well to the MCID.  When it comes to processing the data, if a custom visitor ID is set, both MCID and custom visitor ID exist but I believe the custom visitor ID takes precedence and will be used for joining journeys together, counting visitor numbers etc.

 

At the time I was looking at this, we had been considering passing the MCID from our website to mobile app so the journey joined up as a single visitor.  However, the nuance we found was that it isn't treated exactly as thought the MCID has been replaced. So even though the custom visitor ID we were setting was the same value as the MCID on the website, the website and app journeys did not join up - i.e. it was not seen as the same visitor.  We might have got round this by setting the MCID as a custom visitor ID on the website but it was getting all too complex!

 

As mentioned things might have moved on... would be interested to hear if anyone else has experience of this!

 

Ashok_Adiyolil
Level 2
September 3, 2020

Thanks for the reply,But we can't utilize append URL since URL have many redirection ,also final loading URL not getting the appended parameters.Can you please share your thoughts on this?Can you give a solution for achieving it? If possible could you please give a step by step process?