Skip to content

Commit

Permalink
[xs] fix tracking js error
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes authored and amercader committed May 2, 2012
1 parent 4f809ba commit 01ba1e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/templates/layout_base.html
Expand Up @@ -269,7 +269,9 @@ <h3 class="widget-title">Meta</h3>
// Tracking
var url = location.pathname;
// remove any site root from url
url = url.substring(CKAN.SITE_URL.length, url.length - 1);
url = url.substring(CKAN.SITE_URL.length, url.length);
// trim any trailing /
url = url.replace(/\/*$/, '');
$.ajax({url : CKAN.SITE_URL_NO_LOCALE + '/_tracking',
type : 'POST',
data : {url:url, type:'page'},
Expand Down

0 comments on commit 01ba1e7

Please sign in to comment.