Tracking email clicks or opens from a custom SpringBoot app or from the AEM cqMailServer is quite non-trivial, and requires custom code.
For each email you send out, you can generate a unique image URL (one per recipient) and store it in a database. Additionally, you will need to set up a basic server to handle requests to these image URLs. When a recipient opens the email, their email client will attempt to load the image, which will trigger a request to your server. By tracking the unique URL that was called, you can determine which recipient opened the email and when.
To track email clicks from a custom Java app, you can follow these general steps:
-
Create a unique tracking link for each email you send out. This can be achieved by adding unique parameters to the link that correspond to the recipient's information or a unique ID.
-
Include the tracking link in your email content, such as a hyperlink attached to a button or image.
-
When a recipient clicks the tracking link, it will trigger a request to your server. You can set up a basic server that will handle these requests and store information about each click in a database.
-
You can then use this information to analyze the effectiveness of your email campaigns, such as the number of clicks, which links are most popular, and which recipients are most engaged.
I am not aware of any out of the box aem implementations.