Why Does Adobe Web SDK Return 204 Requests?

Adobe Analytics BCS 2 years ago (2024-05-22) 3441 Views 0 Comments

When Adobe Analytics is implemented through Adobe Experience Platform Web SDK, you may see requests containing collect or interact in the browser’s Network panel. Some of these requests return:

Why Does Adobe Web SDK Return 204 Requests?

This is normal and does not mean that tracking failed.

What Does 204 No Content Mean?

A 204 status means the Adobe Edge Network successfully processed the request but did not need to return any content.

It does not mean that the request or page-view data is empty.

What Are collect and interact Requests?

  • collect: Sends data to the Adobe Edge Network without requiring a response body.
  • interact: Sends data and may return information such as personalization decisions or identity updates.

These endpoint names do not directly represent page views and link clicks. Check the request payload to identify the actual event type.

 

Why Do 204 Requests Appear?

This usually happens because automatic click collection is enabled in the Adobe Experience Platform Web SDK extension.

When enabled,

Why Does Adobe Web SDK Return 204 Requests?

Web SDK can automatically track:

  • Download links
  • Exit links
  • Other eligible link clicks

Each tracked click may generate an additional request and Adobe Analytics server call.

Which XDM Fields Are Collected?

Web SDK automatically populates:

  • xdm.web.webInteraction.name
  • xdm.web.webInteraction.type:The corresponding type for download tracking, exit tracking, and link click tracking are: download, exit, and other
  • xdm.web.webInteraction.URL

 

How to Disable Automatic Link Tracking

If you do not need all automatic link tracking, configure Web SDK to disable specific types, such as internal, exit or download links.

You can also disable automatic click collection completely:

alloy("configure", {
  datastreamId: "YOUR_DATASTREAM_ID",
  orgId: "YOUR_ORG_ID",
  clickCollectionEnabled: false
});

After making the change, use the browser’s Network panel or Adobe Experience Platform Debugger to confirm that the unwanted requests are no longer sent.

Conclusion

A 204 response is not an error. It means Adobe successfully processed the request without returning a response body.

If you see many 204 requests, check whether automatic click collection is enabled and disable only the link-tracking types that you do not need.

Like (6)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website