Hi,
We use SuiteCRM version 7.11.15 (on a hosted Apache Server) and we have the problem that the âViewed Messageâ counter of a campaign increases if an internal SuiteCRM user clicks on the âRelatedâ link in Campaign subpanel âMessage Sent/Attemptedâ. If this happens, we do not know if the mail recipient or an internal user of the SuiteCRM database has viewd the mail. (See screen shot of the mentioned page.)
Is this the intended behavior?
Is it possible that SuitCRM insert a link which does not increase the counter?
Regards
Gerd
Perhaps you would need to create a custom entryPoint campaign_trackerv2 and modify it accordingly in order to ignore such activities.
Hi Andopes,
Thanks for feedback.
I try to understand what you are going to tell me. For that reason I have sent one email with a test campaign
The Email recipient gets following link during these test campaign and if he clicks on that link the view counter gets increased (correctly):
https://<my-domain.com>/index.php?entryPoint=campaign_trackerv2&track=d010bd11-45ee-4011-a3ab-5f5b84b4a360&identifier=854b8f86-2cf2-6c7d-c8e9-5f5b8555fb98
As far as I believe, a click on that link enters the campaign_trackerV2 entry point.
854b8f86-2cf2-6c7d-c8e9-5f5b8555fb98 is the content of field âtarget_tracker_keyâ within table âcampaign_logâ
d010bd11-45ee-4011-a3ab-5f5b84b4a360 is the content of field âidâ within table âcampaign_trkrsâ
After Email has been sent the âCampaign Statusâ SubPanel âMessageSent/Attemptedâ shows following link (internally in SuiteCRM):
https://<my-domain.com>/index.php?module=Emails&action=DetailView&record=4de7571f-19c9-4fd3-1f63-5f5b859927e7&parent_id=233f4375-46fd-6c54-dd3f-5f4e8271f1e9&parent_module=Contacts
If a SuiteCRM User clicks on that link the view counter gets increased as well which is not good because afterwards we do not know whether an internal user or Email recipient has viewed the Email.
What exactly do you mean with âyou would need to create a custom entryPoint campaign_trackerv2 and modify it accordingly in order to ignore such activities.â ?
If I am going to modify the custom entryPoint âcampaign_trackerv2â how would that help in case of a internal user clicks on the internal Campaign link as dexcribed above?
Sorry for late answer.
By creating a custom entryPoint (to override the entryPoint definition pointing to a custom script), you can let such a feature decide whether to increases the âViewed Messageâ as you wish.
That entryPoint points to script campaign_tracker.php which calls core function log_campaign_activity. You have to override the entryPoint in order to point to some custom_campaign_tracker.php which calls the custom function custom_log_campaign_activity. Inside that custom function you will decide whether to increase the counter.
Regards