mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: analytics universal not sending correct location
This commit is contained in:
@@ -13,7 +13,7 @@ export default {
|
||||
// if it is present
|
||||
if (typeof window._gaq !== 'undefined') {
|
||||
pageTracker.on('change', function() {
|
||||
window._gaq.push(['_trackPageview']);
|
||||
window._gaq.push(['_trackPageview', window.location.pathname+window.location.search]);
|
||||
});
|
||||
return;
|
||||
}
|
||||
@@ -21,7 +21,7 @@ export default {
|
||||
// Also use Universal Analytics if it is present
|
||||
if (typeof window.ga !== 'undefined') {
|
||||
pageTracker.on('change', function() {
|
||||
window.ga('send', 'pageview');
|
||||
window.ga('send', 'pageview', window.location.pathname+window.location.search);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user