Well, if you don't need the googleanalytics plugin, then yes, easily done using a small plugin. It would do pretty much the same thing the googleanalytics plugin does now (which is why that wouldn't be compatible), that being the overriding of the default link handling functions.
The ga plugin does this:
// in "initialize()"
links.registerProtocol("http://", trackingHandler);
// trackingHandler is the function handling the links, signature is
function trackingHandler
(url:String,
source:IElement =
null,
The plugin to do that would do the following:
// in "initialize()"
links.registerProtocol("http://", convertingHandler);
// convertingHandler is the function handling the links, would look something like this
function convertingHandler
(url:String,
source:IElement =
null,
{
navigateToURL(new URLRequest("javascript:trackLink(\"" + url + "\", \"link\", 3, 8)"),
target);
// *OR*, of the javascript plugin is loaded (cleaner way, using ExternalInterface
// in the js plugin which registers a handler for javascript: links)
(pluginManager.getPlugin("links") as ILinks).
processLink("javascript:trackLink(\"" + url + "\", \"link\", 3, 8)");
}
At least in principle.
