Adobe AEP Client Side SDKs Non-Interactive Collection Method | Community
Skip to main content
Harveer_SinghGi1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 28, 2025
Solved

Adobe AEP Client Side SDKs Non-Interactive Collection Method

  • January 28, 2025
  • 3 replies
  • 1142 views

Hi Team,

Is it possible to to use Collect endpoint (non-interactive collection) instead of Interact endpoint (interactive collection) with AEP Client Side SDKs like Mobile SDK or Web SDK to queue the events upto a certain time or number of events and then send them as a batch?

I understand that use of this endpoint will mean not sending the events real-time and also as these events won't be interactive we can't use them in use cases where we need response back from AEP/Edge. For use cases where we don't have any real-time needs for certain actions and there isn't a response for these events, is it even possible to send them as batch through collect endpoint?

Thanks.

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 Harveer_SinghGi1

Did some testing by sending fetch calls with more than 1 events in the body, both the events are sent and show in AEP but they go out through interact endpoint only. It looks like there is no way to selectively use the collect endpoint, it is used by SDK for automated click tracking and stuff.

Cheers!

3 replies

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 28, 2025

Good question, this is surely an interesting offline use case.

 

Tbh, I've always wondered why the standard Web SDK events actually contain an events array that always only includes a single item.

So, presumably this is not (yet) out of the box possible with the Web SDK extensions, but have you tried replicating the POST call from the documentation using a fetch with some sample data?

 

Would be a nice POC. Else reach out to support to check if they know more.

Cheers from Switzerland!
Harveer_SinghGi1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 31, 2025

Hi @bjoern__koth ,

Yeah the intent of having "events" array in Web SDK events is to accommodate multiple events like, 

 

{ "events":[ { "xdm":{}, "data":{} }, { "xdm":{}, "data":{} } ] }

 

I have not done a POC to try collect endpoint but Web SDK does use this endpoint as others have mentioned in another community thread - Acquire and Collect request type in web SDK.

I believe AEP SDKs do use this endpoint at times but this is an automatic decision by the SDKs when to use collect or interact endpoints. What I'm trying to understand is if it possible to request this behavior on demand, like if there are some events happening on our property and we want to send them as batch using collect endpoint.

Cheers!

RiteshY18
Community Advisor
Community Advisor
February 7, 2025

@harveer_singhgi1 based on the documentation understanding is Collect endpoint sends a batch of events to a datastream but applies to mobile SDK not WebSDK [has to be streaming]

kautuk_sahni
Community Manager
Community Manager
February 17, 2025

@harveer_singhgi1 Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
Harveer_SinghGi1
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 20, 2025

Hi @kautuk_sahni ,

I'm doing some POC to test this use case, I'll post the result here and close this thread.

Thanks

Harveer_SinghGi1
Community Advisor and Adobe Champion
Harveer_SinghGi1Community Advisor and Adobe ChampionAuthorAccepted solution
Community Advisor and Adobe Champion
March 4, 2025

Did some testing by sending fetch calls with more than 1 events in the body, both the events are sent and show in AEP but they go out through interact endpoint only. It looks like there is no way to selectively use the collect endpoint, it is used by SDK for automated click tracking and stuff.

Cheers!