The example code for reporting Twitter interactions has a typo in it:
function trackTwitter(intent_event) {
if (intent_event) {
var opt_pagePath;
if (intent_event.target && intent_event.target.nodeName == 'IFRAME') {
opt_target = extractParamFromUri(intent_event.target.src, 'url');
}
_gaq.push(['_trackSocial', 'twitter', 'tweet', opt_pagePath]);
}
}
//Wrap event bindings - Wait for async js to load
twttr.ready(function (twttr) {
//event bindings
twttr.events.bind('tweet', trackTwitter);
});
that variable name on the 5th line of the trackTwitter function should be
opt_pagePath, not opt_target
Original issue reported on code.google.com by goldenap...@gmail.com on 7 Jun 2012 at 7:54
Original issue reported on code.google.com by
goldenap...@gmail.com
on 7 Jun 2012 at 7:54