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

Possibile BUG e-mail link tracking #1246

Closed
mgproget opened this issue Dec 16, 2015 · 21 comments · Fixed by #1266

Comments

@mgproget
Copy link

commented Dec 16, 2015

Way to re-create this bug:

  • Mautic v. 1.2.2
  • create a list with MORE than one lead
  • create an e-mail with an external link on it to a external web page (with pixel on it)
  • create a campaign that send the e-mail to the list.

Result:
Only one e-mail is sent with the tracking/redirect URL (ex. http://mydomain/r/259da081cc9d3595ca69a33c9?ct=YTo0OntzOjY6InNvdXJjZSI7YToyOntpOjA7czo4OiJjYW1wYWlnbiI7aToxO2k6MTt9czo1OiJlbWFpbCI7aToyO3M6NDoic3RhdCI7czoxMzoiNTY3MDJlZWQ5Nzc0MSI7czo0OiJsZWFkIjtpOjMxO30%3D).
All other leads receive the e-mail with the original link to the web page (no redirect).

Final result:
Clicks are tracked for one e-mail only.

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 17, 2015

@l2aelba that's the problem I'm facing with, not the solution.

@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 18, 2015

@mgproget What mail transport are you using? (Mandrill, smtp, PHP mail, etc). I just sent an email to 11 leads and all had the URL translated into a unique trackable to the lead.

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 18, 2015

@alanhartless I'm using different transport solution and it seems to me that the problem remains (we have more than one instance of Mautic). However the one I'm testing this issue is using Sendgrid (with Sendgrid click tracking disabled).

@tiagomreis

This comment has been minimized.

Copy link

commented Dec 18, 2015

@alanhartless same problem here. latest version of mautic, using "Other SMTP server" and then localhost mail server.

2 leads in a list, the lead with the lower ID receive the url with tracking number, the second person receive without the tracking id.

@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 18, 2015

I just tested on a 1.2.2 installation and it worked there too. So I'm wondering if there is something with the content of the email and or something with the link itself that is triggering this bug. Could one of you guys provide the content of an email that has the links leading to this issue?

Thanks!
Alan

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 18, 2015

@alanhartless
email_text.html.zip
I'm using the builder, with a custom template. Please also note that I'm talking of links to external pages.

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 18, 2015

@alanhartless I've just tried deleting all content and added two words and one link. Same result. I'm going to try with no template at all. I'll let you know.

Edit: even with no template, same result.

@tiagomreis

This comment has been minimized.

Copy link

commented Dec 18, 2015

@alanhartless using the builder, same issue. The first person with lower id receive with redirection url and the other with no tracking url

PS: Just open the builder, type two word and use the editor to make a link on one of the words.

@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 18, 2015

Here's a animated gif of what I did on a 1.2.2 install. http://alan.direct/drop/emaillink.gif

The first time I did a custom HTML link test. So this time I did used the builder/template. Same thing, all three have the links parsed.

@mgproget I'll try with your email content.

@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 18, 2015

@mgproget I copied that HTML into a custom HTML email and sent it to 3 leads. Still works for me.

Here's a gif of it. http://alan.direct/drop/emaillink2.gif

there must be a missing factor that is triggering it for you that I'm not doing. Do you have a hunch on what it might be based on watching my gifs?

@tiagomreis

This comment has been minimized.

Copy link

commented Dec 18, 2015

@alanhartless, this is the test code.

email_mautic_test.txt

This was done by the builder, based on your gif.

One email was OK, all the others with no tracking url.

@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 18, 2015

Yup works perfect for me. http://alan.direct/drop/emaillink3.gif

So let's try to figure out what's different between our setups to figure out what's triggering this bug.

Just to confirm, when you send the email, the first lead has the /r/STRING link but the subsequent leads have google.com link. Right?

And this happens when using any of the mailers?

And we're both sending through a lead list and not through a campaign?

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 19, 2015

the first lead has the /r/STRING link but the subsequent leads have google.com link. Right?

Yes

And this happens when using any of the mailers?

Yes

And we're both sending through a lead list and not through a campaign?

No. I'm sending from a campaign that use a lead list. I've tried with a very simple campaign with one lead list and a 'sen email' action.

@tiagomreis

This comment has been minimized.

Copy link

commented Dec 19, 2015

Same thing, create email template using the builder or souce code on the txt file, create a campaign and associated a list with only 5 leads. Send it.

The lead with lower ID, receive the email with /r/TRACKID and the other 4 leads, receive the google link

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 21, 2015

@alanhartless I see no differences in your .gif, except for emaillink2.gif, I cannot find this graph, but maybe it's just a custom report you've made.

Some things that could or not matter:

  • php version 5.6.16
  • I'm importing this leads via csv file, using mautic import panel.
  • I've never setup "Monitored Inbox Settings".
  • I've tried changing e-mail language to English (I was using italian), same result one e-mail with redirect link only.
  • tested with phpmail, nothing changes.
  • no errors reported on cron. (3 event(s) executed)

Please do not hesitate to suggest any other test that I could try, thank you very much.

@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 21, 2015

create a campaign <- that may be the key. I was testing with a mass list send. @mgproget are you using a campaign as well? Let me setup a campaign to test with.

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 21, 2015

@alanhartless Yes, I'm using a campaign.

alanhartless added a commit to alanhartless/mautic that referenced this issue Dec 21, 2015
…l tokens). Also fixed mautic#1246 where only the first email sent through a campaign inserted trackable links (other emails were left as original urls).
@alanhartless alanhartless added Bug and removed Pending Feedback labels Dec 21, 2015
@alanhartless alanhartless added this to the 1.2.3 milestone Dec 21, 2015
@alanhartless

This comment has been minimized.

Copy link
Contributor

commented Dec 21, 2015

Ok, I did confirm the issue and fixed it. It'll be part of 1.2.3 since it was a bigger bug. It's part of bigger code changes so probably not easy to patch on your system. Might have to wait till 1.2.3 is released this week.

@mgproget

This comment has been minimized.

Copy link
Author

commented Dec 22, 2015

@alanhartless Ok, Alan, thank you very much. Should you need help in testing, I'm here.
Pietro

@escopecz

This comment has been minimized.

Copy link
Member

commented Dec 22, 2015

@mgproget tests are always welcome. Here is described the testing workflow: https://github.com/mautic/mautic#how-to-test-a-pull-request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.