Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Android Adobe SDK APIS from Mobile Core not capturing trackAction and trackState data.

Avatar

Level 1

Hi ,

I am using below code to integrate Adobe Mobile SDK and dependency respectively.

amolp86453083_0-1646919717562.png

Dependencies:

implementation 'com.adobe.marketing.mobile:analytics:1.2.9'
implementation 'com.adobe.marketing.mobile:mobileservices:1.1.5'
implementation 'com.adobe.marketing.mobile:userprofile:1.1.0'
implementation 'com.adobe.marketing.mobile:sdk-core:1.9.0'
And used syntax for trackAction and trackState from below URL in my Activities and Fragments.

https://aep-sdks.gitbook.io/docs/getting-started/initialize-the-sdk

Kindly help me with this integration as the documentation is not clear .
Thanks

3 Replies

Avatar

Employee

Hi @amolp86453083 -

Have you had a chance to look at the logs generated by the SDK?  My initial thought is there are one of two issues:

  1. The app property didn't get fully published in Data Collection (Launch) - you can verify this by checking the remote location mentioned in the logs: https://assets.adobedtm.com/<<YOUR_APP_ID>>.json
  2. Privacy status is not set to opted-in - the logs will indicate the privacy status for the device.  If the status is anything other than opted-in, Analytics requests will not be sent.

Let me know if this helps!  Thanks.

-steveb

Avatar

Level 1

Hi Steve,

Thank you very much for quick reply !

 

As suggested I have gone through logs and found below .

{
"global.privacy": "optedin",
"analytics.launchHitDelay": 0,
"analytics.backdatePreviousSessionInfo": true,
"analytics.offlineEnabled": true,
"__dev__analytics.rsids": "xxxxxxxmobileappdev",
"build.environment": "dev",
"__ui__.mobileServiceApp": "IMO Ecom Mobile App (Dev) (xxxxxxxmobileappdev)",
"rules.url": "https://assets.adobedtm.com/launch-EN4f6c873becfe45ecb0axxxxxxxxxxx-development-rules.zip",
"experienceCloud.org": "A35C256C5B8D27B30A495EEA@AdobeOrg",
"lifecycle.sessionTimeout": 300,
"mobile.acquisitionAppId": "b431a38f1fe710c9021eab5e6321795cb47a55076a82afb323d6881c4ff1cbb0",
"analytics.server": "xxxxxxxxx.sc.omtrdc.net",
"__stage__analytics.rsids": "xxxxxxxxmobileappdev",
"mobile.acquisitionTimeout": 0,
"analytics.rsids": "xxxxxxxxmobileappdev",
"__ui__.manualMode": false,
"mobile.messagesUrl": "https://assets.adobedtm.com/b213090c5204bf94318f4ef0539a38b487d10368/scripts/satellite-5cxxxxxxxxxx6...",
"analytics.batchLimit": 5,
"property.id": "PR23fce8d587114d3e93334xxxxxx",
"analytics.aamForwardingEnabled": false
}

 

Please check highlighted fields and suggest.

Thanks

Amol

Avatar

Employee

Hey Amol,

Can you turn on verbose logging for the SDK?

MobileCore.setLogLevel(LoggingMode.VERBOSE);

Assuming that the proper APIs are being called, the logs should confirm the following:

  • The app SDK is getting properly configured
  • The Analytics extension is being registered
  • Analytics requests are being sent by the device

Are you able to confirm activity matching the above?  Thanks.

-steveb