Hello,
I need to have link tracking disabled by default.
I have searched and located where the value of field "measure_type" in table "rdir_url_tbl" was set, and found it here:
class: MailingDaoImpl.java in package org.agnitas.dao.impl
line #155:
trkLink.setUsage(TrackableLink.TRACKABLE_TEXT_HTML);
this constant in class TrackableLink sets the value to 3.
I'd need this to be 0 (TrackableLink.TRACKABLE_NONE)
I could try and change/recompile class MailingDaoImpl.java to suit my needs, but I guess the correct way would be to have this configurable in an external text or xml file.
Any option you can propose?
Thanks a lot,
Daniel
Disabling link tracking
Moderator: moderator
Disabling link tracking: temporary solution detailed
Hello,
replying to my own post, so it may help others.
I had to modify java classes to prevent link tracking by default.
Contrarily to what I thought in my previous post, the class concerned is:
MailingImpl.java in org.agnitas.beans.impl
- Changed 2 lines, between around lines 577 to 600: switched static variable reference from TRACKABLE_TEXT_HTML to TRACKABLE_NONE
-- Result: on E-mail component edit/save, or e-mail save, links are listed, but "not trackable" by default.
tested succesfully with Test and "real" mail sending.
At this point, there remained one issue: links were still ""rewritten" to be trackable when:
- previewing e-mail in OpenEMM interface
- accessing for online version (Fullview form "system")
In both cases the "Archive" e-mail content was parsed and links rewritten.
To prevent this: same class, MailingImpl.java, in method getPreview(...) :
removed call to method : insertTrackableLinks(...), near line #947 (I mean near it, as line numbers shifted by previous edit).
Of course, would be more convenient to have this configurable from external file. Not sure so many people want to disable this. We, in our case, want to process link tracking /opens our own way, and keep OpenEMM inside our network, not on the www.
Regards,
Daniel
replying to my own post, so it may help others.
I had to modify java classes to prevent link tracking by default.
Contrarily to what I thought in my previous post, the class concerned is:
MailingImpl.java in org.agnitas.beans.impl
- Changed 2 lines, between around lines 577 to 600: switched static variable reference from TRACKABLE_TEXT_HTML to TRACKABLE_NONE
-- Result: on E-mail component edit/save, or e-mail save, links are listed, but "not trackable" by default.
tested succesfully with Test and "real" mail sending.
At this point, there remained one issue: links were still ""rewritten" to be trackable when:
- previewing e-mail in OpenEMM interface
- accessing for online version (Fullview form "system")
In both cases the "Archive" e-mail content was parsed and links rewritten.
To prevent this: same class, MailingImpl.java, in method getPreview(...) :
removed call to method : insertTrackableLinks(...), near line #947 (I mean near it, as line numbers shifted by previous edit).
Of course, would be more convenient to have this configurable from external file. Not sure so many people want to disable this. We, in our case, want to process link tracking /opens our own way, and keep OpenEMM inside our network, not on the www.
Regards,
Daniel
Re: Disabling link tracking: temporary solution detailed
Hi!
Best wishes
Carsten
I firmly support this request. It is necessary to change the default behaviour of the trackable links feature for us, too.oxygen wrote:Of course, would be more convenient to have this configurable from external file. Not sure so many people want to disable this. We, in our case, want to process link tracking /opens our own way, and keep OpenEMM inside our network, not on the www.
Best wishes
Carsten
-
- Posts: 5
- Joined: Wed Oct 22, 2014 3:58 pm
Re: Disabling link tracking
We also very clearly need this feature to be configurable on an global basis.
Has anything happened here?
Best,
lemonfriend
Has anything happened here?
Best,
lemonfriend