次の関数を使用して、Web サイトの URL リンクを Ajax でオーバーロードしています。
$(document).ready(function() {
$('.insite').live("click", function(ev) {
if ( history.pushState ) history.pushState( {}, document.title, $(this).attr('href'));
ev.preventDefault();
$('#content').fadeOut().load($(this).attr('href')+' #content', function() {
$(this).fadeIn();
});
});
});
Google アナリティクスのトラッキングと Disqus の読み込みを機能に統合できるかどうかを知りたいです。これは私がdisqusを読み込もうとしたコードですが、何らかの理由で別のWebサイトからコメントを読み込みます:
window.disqus_no_style = true;
$.getScript("http://disqus.com/forums/mnml/embed.js")
ありがとう