Disabling link tracking

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

Disabling link tracking

Postby oxygen » Tue Jun 23, 2009 9:44 am

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
oxygen
 
Posts: 3
Joined: Tue Jun 23, 2009 7:15 am
Location: Switzerland

Disabling link tracking: temporary solution detailed

Postby oxygen » Fri Jun 26, 2009 6:47 am

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
oxygen
 
Posts: 3
Joined: Tue Jun 23, 2009 7:15 am
Location: Switzerland

Re: Disabling link tracking: temporary solution detailed

Postby sannc » Wed Aug 19, 2009 1:29 pm

Hi!

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.


I firmly support this request. It is necessary to change the default behaviour of the trackable links feature for us, too.

Best wishes
Carsten
sannc
 
Posts: 13
Joined: Tue Jul 01, 2008 1:23 pm
Location: Aschaffenburg

Postby sp » Thu Apr 22, 2010 5:28 pm

I too would love if this would be configurable.
sp
 
Posts: 21
Joined: Mon Apr 12, 2010 2:04 pm

Re: Disabling link tracking

Postby lemonfriend » Fri Nov 14, 2014 1:00 pm

We also very clearly need this feature to be configurable on an global basis.
Has anything happened here?
Best,
lemonfriend
lemonfriend
 
Posts: 5
Joined: Wed Oct 22, 2014 3:58 pm


Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron