Google Analytics recording event based on <a> title attribute
- by rlsaj
I am declaring:
var title = (typeof(el.attr('title')) != 'undefined' ) ? el.attr('title') :"";
and then have the following:
else if (title.match(/^"Matching Content"\:/i)) {
elEv.category = "Matching Content Click";
elEv.action = "click-Matching-Content";
elEv.label = href.replace(/^https?\:\/\//i, '');
…