Skip to content

Commit ab7c2b8

Browse files
authored
Merge pull request #67 from carpentries/rethink-analytics
temporarily turn of matomo analytics
2 parents 6154d6f + bfa7ad6 commit ab7c2b8

File tree

3 files changed

+28
-20
lines changed

3 files changed

+28
-20
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: varnish
22
Title: Front-end for The Carpentries Lesson Template
3-
Version: 0.2.8
3+
Version: 0.2.9
44
Authors@R: c(
55
person(given = "Zhian N.",
66
family = "Kamvar",

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# varnish 0.2.9
2+
3+
- temporarily turn off matomo analytics
4+
15
# varnish 0.2.8
26

37
- Workbench Beta phase "Edit on GitHub" links are now formatted correctly.

inst/pkgdown/templates/footer.html

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,26 @@
4343
<script>
4444
feather.replace();
4545
</script>
46-
<!-- Matomo -->
47-
<script>
48-
var _paq = window._paq = window._paq || [];
49-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
50-
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
51-
_paq.push(["setDomains", ["*.preview.carpentries.org","*.datacarpentry.github.io","*.datacarpentry.org","*.librarycarpentry.github.io","*.librarycarpentry.org","*.swcarpentry.github.io", "*.carpentries.github.io"]]);
52-
_paq.push(["setDoNotTrack", true]);
53-
_paq.push(["disableCookies"]);
54-
_paq.push(['trackPageView']);
55-
_paq.push(['enableLinkTracking']);
56-
(function() {
57-
var u="https://carpentries.matomo.cloud/";
58-
_paq.push(['setTrackerUrl', u+'matomo.php']);
59-
_paq.push(['setSiteId', '1']);
60-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
61-
g.async=true; g.src='https://cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
62-
})();
63-
</script>
64-
<!-- End Matomo Code -->
46+
<!-- Matomo
47+
2022-11-07: we have gotten a notification that we have an overage for our
48+
tracking and I'm pretty sure this has to do with Workbench usage.
49+
Considering that I am not _currently_ using this tracking because I do not
50+
yet know how to access the data, I am turning this off for now.
51+
<script>
52+
var _paq = window._paq = window._paq || [];
53+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
54+
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
55+
_paq.push(["setDomains", ["*.preview.carpentries.org","*.datacarpentry.github.io","*.datacarpentry.org","*.librarycarpentry.github.io","*.librarycarpentry.org","*.swcarpentry.github.io", "*.carpentries.github.io"]]);
56+
_paq.push(["setDoNotTrack", true]);
57+
_paq.push(["disableCookies"]);
58+
_paq.push(['trackPageView']);
59+
_paq.push(['enableLinkTracking']);
60+
(function() {
61+
var u="https://carpentries.matomo.cloud/";
62+
_paq.push(['setTrackerUrl', u+'matomo.php']);
63+
_paq.push(['setSiteId', '1']);
64+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
65+
g.async=true; g.src='https://cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
66+
})();
67+
</script>
68+
End Matomo Code -->

0 commit comments

Comments
 (0)