pjaxを使用したサイトを構築しています。
GTMを使わなければいけないのですが、
中々動作してくれません。
(アナリティクスでは動作します)
$(document).on('pjax:complete', function() {
var location = window.location.pathname + window.location.search;
ga('send', 'pageview', location);
})
上記の記述じゃだめでしょうか。
詳しい方、よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。