Avatar

Community Advisor

I tested the code a bit more and was able to make it work by doing the following :

In the html page I put : 

<a href="mailto:test@gmail.com&subject=test" onClick="trackClickInteraction('Sharing Action')">Test</a>

And in the Appmeasurement.js file I put the following function just below the s_doPlugins() function :

function trackClickInteraction(name){
var s=s_gi('wfbmobileappdev'); 
s.linkTrackVars='contextData.wfi.shareType,contextData.wfi.shareEvent'; 
s.contextData['wfi.shareType'] = 'Test'; s.contextData['wfi.shareEvent'] = '1'; 
s.tl(true,'o',name,null,'navigate');
}

The image request is sent successfully.

Please let me know if it works.