Skip to content

Send pixel events for the RMF remote image load success/ failure#7496

Merged
catalinradoiu merged 35 commits intodevelopfrom
feature/cradoiu/add-pixels-for-rmf-image-load
Jan 19, 2026
Merged

Send pixel events for the RMF remote image load success/ failure#7496
catalinradoiu merged 35 commits intodevelopfrom
feature/cradoiu/add-pixels-for-rmf-image-load

Conversation

@catalinradoiu
Copy link
Copy Markdown
Contributor

@catalinradoiu catalinradoiu commented Jan 15, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/project/1211724162604201/task/1212774577583911?focus=true

Description

Added tracking for remote message image loading success and failure events. This PR implements two new pixels:

  • m_remote_message_image_load_success: Fired when a remote message image loads successfully
  • m_remote_message_image_load_failed: Fired when a remote message image fails to load

The implementation adds callbacks in the MessageCta component to detect image loading states and fires the appropriate pixels in the various view models that use remote messaging.

Steps to test this PR

Image loading success

  • Open the app to a screen with a remote message containing an image
  • Verify the m_remote_message_image_load_success pixel is fired when the image loads successfully

Image loading failure

  • Modify a remote message to use an invalid image URL
  • Open the app to a screen with this remote message
  • Verify the m_remote_message_image_load_failed pixel is fired when the image fails to load

UI changes

Before After
No UI changes No UI changes

Note

Adds telemetry for remote message image loading across RMF surfaces.

  • Defines new pixels m_remote_message_image_load_success and m_remote_message_image_load_failed in remote_messaging_framework.json5 and exposes them via RemoteMessagingPixelName
  • Hooks Glide RequestListener image callbacks in MessageCta, RemoteMessageView, and CardsListRemoteMessageView to notify VMs
  • Fires the new pixels (with message id) from RemoteMessageViewModel, NewTabLegacyPageViewModel, and CardsListRemoteMessageViewModel
  • Updates PixelParamRemovalInterceptor to strip atb for the new pixels
  • Adds unit tests covering success/failure pixel firing in affected view models

Written by Cursor Bugbot for commit 5a3ecce. This will update automatically on new commits. Configure here.

…r top illustration configuration in the message cta
# Conflicts:
#	android-design-system/design-system/src/main/res/layout/view_remote_message_cta.xml
# Conflicts:
#	remote-messaging/remote-messaging-impl/src/main/java/com/duckduckgo/remote/messaging/impl/modal/cardslist/CardsListRemoteMessageView.kt
Copy link
Copy Markdown
Contributor Author

catalinradoiu commented Jan 15, 2026

@catalinradoiu catalinradoiu marked this pull request as ready for review January 15, 2026 16:04
@catalinradoiu catalinradoiu changed the base branch from feature/cradoiu/rmf-image-load to develop January 15, 2026 16:05
@catalinradoiu catalinradoiu marked this pull request as draft January 15, 2026 16:05
@github-actions
Copy link
Copy Markdown
Contributor

Privacy Review task: https://app.asana.com/0/69071770703008/1212839372467455

…-rmf-image-load

# Conflicts:
#	android-design-system/design-system/src/main/java/com/duckduckgo/common/ui/view/MessageCta.kt
#	remote-messaging/remote-messaging-impl/src/main/java/com/duckduckgo/remote/messaging/impl/modal/cardslist/CardsListRemoteMessageView.kt
#	remote-messaging/remote-messaging-impl/src/test/java/com/duckduckgo/remote/messaging/newtab/RemoteMessageViewModelTest.kt
@catalinradoiu catalinradoiu marked this pull request as ready for review January 16, 2026 15:58
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@catalinradoiu catalinradoiu merged commit a807ffc into develop Jan 19, 2026
11 checks passed
@catalinradoiu catalinradoiu deleted the feature/cradoiu/add-pixels-for-rmf-image-load branch January 19, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants