: http://www.google.com/support/analyticshelp/bin/answer.py?hl=en&answer=1136920Googleアナリティクスのコードはどのように機能しますか?ここから
<script type="text/javascript">
function recordOutboundLink(link, category, action) {
try {
var myTracker=_gat._getTrackerByName();
_gaq.push(['myTracker._trackEvent', ' + category + ', ' + action + ']);
setTimeout('document.location = "' + link.href + '"', 100)
}catch(err){}
}
</script>
あなたは+カテゴリ+と+アクション+に気づいた場合は、引用符です。では、分析スクリプトはどのように価値を得ていますか?
おそらく、渡される文字列がevalされます。 –
別の関数のコンテキストで評価できますか? – mbdev
ここに例があります。http://jsfiddle.net/uEqkC/ –