Hi I have this problem with window location target and cannot solve it. I'm doing some GA tracking for links through out my page and I want to add target location _ blank. the code is this
$(".ga_track").click(function (event) {
event.preventDefault();
var href = $(this).attr('href');
var label = $(this).attr('data-description');
ga('send', 'event', 'Link Clicked', 'Click Details', label, {
'hitCallback': function () {
window.location.href = href;
window.location.target = blank;
}
});
});