Expand my Community achievements bar.

SOLVED

Content API - basic html template Open/Click URL tracking

Avatar

Level 2

We are using content api to retrieve content for email using a basic html template in AEM thru XF. The issue we are facing is now that we are moving our content from an email engine (Adobe campaign classic). How do we add the out of the box functionality that wraps all our links/images urls with open/click tracking. Any thoughts?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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:

  1. 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.

  2. Include the tracking link in your email content, such as a hyperlink attached to a button or image.

  3. 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.

  4. 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.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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:

  1. 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.

  2. Include the tracking link in your email content, such as a hyperlink attached to a button or image.

  3. 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.

  4. 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.

Avatar

Level 2

Create Images folder in assets folder and with photo Shop edit and share or upload