Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7737973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:08:33+00:00 2026-06-01T08:08:33+00:00

I am using swiftmailer , a library for sending mail in php. The problem

  • 0

I am using swiftmailer , a library for sending mail in php. The problem is , I have already register a google analytic account.

How can I use this tool to check how many person have opened the email ?

Thank you.

Updated:

Ok, trackcode is in js , sure would not work. Images have some chance if the user allow it.

To be precise, what should i include in the image.php,

and is that mean i go to google analytics webpage and track the ../image.php?id=xxx then i can get result?

should i add the code in php?

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-29940706-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:08:34+00:00Added an answer on June 1, 2026 at 8:08 am

    You can’t do it with 100% reliably. You can embed a webbug in the mail, but most mail clients automatically block any 3rd-party content from being loaded automatically. If the user doesn’t say “ok, please load the images”, then you’ll never see the webbug hit come in.

    You can request a return receipt on the email, but most mail clients will ignore that, or default to not sending one, or the user will decline to confirm receipt.

    if you want to confirm that people have read the email, then your best bet is to NOT mail the content you want tracked, and simply send a LINK to that content:

    "please click here to read an important announcement"
    

    and the link would include a unique identifier tied to the particular email address the message was sent to. If you get a hit on that address, someone read the message and clicked the link, and the embedded tracking code will tell you who did so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send a message using PHPs mail library called Swiftmailer .
I am using SwiftMailer for sending mails and if I try to use dummy
I'm using PHP's SwiftMailer library to bulk send emails (following CANSPAM and RFCs). Everything
Possible Duplicate: PhpMailer vs. Swiftmailer? I have always used PHP's built in mail() function
I'd like to use Sendgrid WebAPI preferably without SMTP or Swiftmailer using the code
Using PHP, I can convert MySQL data or static table data to csv, Excel,
I'm using Swiftmailer to send the contents of a form to a gmail account.
Short: Is it possible using PHP / SwiftMailer / Throttler Plugin - if yes,
Is there a way to read mails from pop3 recipit? I'm already using SwiftMailer
I just started learning how to use SwiftMailer and I am having trouble sending

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.