- Issue created by @jeni_dc
- Merge request !17Allow tracking stats for users from custom recipient handlers. → (Open) created by jeni_dc
- Status changed to Needs review
12 months ago 5:20pm 1 December 2023
Simplenews allows for custom recipient handler plugins to dynamically create lists of users to send an email newsletter issue to, without those users needing to have subscribed to a newsletter. Although Simplenews creates a temporary subscriber → for those users there is no subscriber ID and Simplenews Stats checks for a subscriber ID in many places to determine whether or not to store stats for that subscriber. As a result the tracking image is never added to the email and the links are not rewritten to allow for tracking clicks.
Send a newsletter issue to a newsletter with recipients populated by a user recipient handler. No tracking image is added and links are not rewritten.
In Simplenews RecipientHandlerBase.php, buildEntityQuery() specifies a recipient handler to be a simplenews subscriber or user. Check if the current recipient is a user without a subscriber entity, and if so allow the stats to be recorded.
Code to follow.
Needs review
3.0
Code