tweak matomo tracking

This commit is contained in:
Albert Yi
2018-11-12 10:28:42 -08:00
parent 7524d52276
commit 5493e16f04
5 changed files with 7 additions and 7 deletions

View File

@@ -201,7 +201,7 @@
<script>
window._paq = window._paq || [];
window._paq.push(["setCustomVariable", 1, "rating", '<%= j @post.rating %>', "page"]);
window._paq.push(["setCustomVariable", 2, "fileSize", <%= @post.file_size %>, "page"]);
window._paq.push(["setCustomVariable", 2, "fileSize", <%= @post.file_size.to_i / 100.kilobytes %>, "page"]);
window._paq.push(["setCustomVariable", 3, "sourceDomain", '<%= j @post.source_domain %>', "page"]);
window._paq.push(["setCustomVariable", 3, "blocked", <%= @post.levelblocked? %>, "page"]);
</script>