Swift Mailer and Newsletter Stats

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Swift Mailer and Newsletter Stats

Postby Pavilion » Wed Aug 08, 2012 2:56 pm

Hello:

One of my clients is interested in newsletter processing capabilities. I've done enough testing to know that I can build the ability to manage addresses, send emails, etc...

But... is it possible for SwiftMailer or phpMailer to track:
  1. Count of emails opened?
  2. Number of links clicked and followed to their website?
  3. Email addresses of those folks who open &/or click on links?

Thanks in advance - Pavilion
Pavilion
Forum Contributor
 
Posts: 299
Joined: Thu Feb 23, 2012 7:51 am

Re: Swift Mailer and Newsletter Stats

Postby tr0gd0rr » Thu Aug 09, 2012 1:43 pm

To track those things, you need to embed links that go to a web site you control. Email opens can be tracked using a 1x1 pixel gif with a special URL that ties that newsletter to that recipient. For example: `http://example.com/open/abcdefghijklmnopqrstuvwxyz`. You look up the abc... part in your database and mark the email as opened.

Same for links. You need to rewrite the links so they go to your site with a special URL that ties that link in that newsletter to that recipient. For example: `http://example.com/link/abcdefghijklmnopqrstuvwxyz`. So you look up the abc... part in your database, get the proper destination url, and forward the user to that destination.

You can also use a service like SendGrid which will insert tracking images and rewrite links for you, but then you have to connect to their api to pull the data from them into your system.
User avatar
tr0gd0rr
Forum Contributor
 
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

Re: Swift Mailer and Newsletter Stats

Postby Pavilion » Thu Aug 09, 2012 8:00 pm

tr0gd0rr wrote:To track those things, you need to embed links that go to a web site you control. Email opens can be tracked using a 1x1 pixel gif with a special URL that ties that newsletter to that recipient. For example: `http://example.com/open/abcdefghijklmnopqrstuvwxyz`. You look up the abc... part in your database and mark the email as opened.

Same for links. You need to rewrite the links so they go to your site with a special URL that ties that link in that newsletter to that recipient. For example: `http://example.com/link/abcdefghijklmnopqrstuvwxyz`. So you look up the abc... part in your database, get the proper destination url, and forward the user to that destination.

You can also use a service like SendGrid which will insert tracking images and rewrite links for you, but then you have to connect to their api to pull the data from them into your system.


Hello tr0gd0rr:

Thanks for responding. You are confirming what I've read elsewhere. I take it Swift Mailer and/or phpMailer does not have any type of scripting already built for these functions?

I understand if they don't. It simply means learning other techniques. But, it makes sense to find out in advance if these capabilities already exist somewhere.

Thanks again - Pavilion
Pavilion
Forum Contributor
 
Posts: 299
Joined: Thu Feb 23, 2012 7:51 am


Return to Swift Mailer

Who is online

Users browsing this forum: No registered users and 1 guest

cron