Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracking #11

Closed
pjv opened this issue Mar 11, 2016 · 8 comments
Closed

tracking #11

pjv opened this issue Mar 11, 2016 · 8 comments
Assignees

Comments

@pjv
Copy link

pjv commented Mar 11, 2016

I would like to be able to track "opens" of messages sent through this plugin when looking at the sparkpost reporting data. I see data for targeted and accepted but no engagement data at all.

I saw this help topic on the Sparkpost site: I'm Missing Click/Open Data and so I forked this repo and added some code in the file mailer.http.class.php in the get_body function:

$body = array(
    'options' => array(
        'open_tracking' => true,
        'click_tracking' => true
    ),
    'recipients' => $this->get_recipients(),
    'content' => array(
        'from' => $this->get_sender(),
        'subject' => $this->Subject,
        'headers' => $this->build_email_headers()
    )
);

[I added the options array to the $body].

When I sent a test mail through the plugin's settings page with debug checked, I could see that the json object that was POSTed correctly included that options array, but after loading images in my mail client for the test email, I saw the data for the message having been sent, but still did not see any engagement data (I do have a verified tracking domain set up).

What would it take for this plugin to be able to create email that would allow tracking opens and clicks?

@richleland
Copy link
Contributor

Hi @pjv we actually have open and click tracking turned on by default at the system level, so you should be seeing opens/clicks regardless of how the plugin currently works. Although this is a good idea to have as an option in the plugin anyway. I'm going to let our support team know that there might be an underlying problem here so they can follow up with you to get this resolved. Thanks for submitting this issue!

@pjv
Copy link
Author

pjv commented Mar 11, 2016

Thanks, I already have a ticket open with support and the ticket references this issue.

---- From: Richard Leland notifications@github.com -- Sent: 3/11/2016 - 3:44 PM ----

Hi @pjv we actually have open and click tracking turned on by default at the system level, so you should be seeing opens/clicks regardless of how the plugin currently works. Although this is a good idea to have as an option in the plugin anyway. I'm going to let our support team know that there might be an underlying problem here so they can follow up with you to get this resolved. Thanks for submitting this issue!


Reply to this email directly or view it on GitHub:
#11 (comment)

@richleland
Copy link
Contributor

Yup they reached out to me - I wanted to make sure I closed the loop. We'll get to the bottom of this - you should definitely see opens/clicks so something's off.

@fjalestad
Copy link

Could we add alt="" to the tracking pixel.

Currently it looks like this:
<img border="0" width="1" height="1" src="http://spgo.io/q/i1dDDhN3wZeaYdz6fpG9PA~~/AABUwAA~/RgRYzEI4PkEIAGt0H1aaNThCCgABOL3pVoxi9EJSGndlYi1mODFiUTVAbWFpbC10ZXN0ZXIuY29tCVEEAAAAAEcCe30X">

Would love this:
<img border="0" width="1" height="1" alt="" src="http://spgo.io/q/i1dDDhN3wZeaYdz6fpG9PA~~/AABUwAA~/RgRYzEI4PkEIAGt0H1aaNThCCgABOL3pVoxi9EJSGndlYi1mODFiUTVAbWFpbC10ZXN0ZXIuY29tCVEEAAAAAEcCe30X">

https://www.mail-tester.com reports this and it would be nice to get a 10.0 score!
Thx

@max-mathieu
Copy link
Contributor

@fjalestad thanks for bringing this up, I'll bring this up to the team

@rajumsys
Copy link
Contributor

V2.1.0 is released. Now you can enable/disable tracking option. So closing this one. Thanks everyone for participation 👍

@udovas
Copy link

udovas commented May 6, 2016

And how could I disable the tracking?

@rajumsys
Copy link
Contributor

rajumsys commented May 6, 2016

In plugin's setting page, there is a checkbox to enable or disable it.

maxharrisnet pushed a commit that referenced this issue Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants