Skip to content

Commit

Permalink
change matomo analytics to collectionbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb authored Nov 17, 2023
1 parent 48127a7 commit fad787e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ <h4 class="text-white">About this Collection</h4>
<p class="text-white">Last updated {{ site.time | date: '%Y' }}</p>
</div>
<noscript>
<!-- Matomo Image Tracker-->
<img referrerpolicy="no-referrer-when-downgrade" src="https://cdil.us/statistics/matomo.php?idsite=17&amp;rec=1" style="border:0" alt="" />
<!-- Matomo Image Tracker-->
<img referrerpolicy="no-referrer-when-downgrade" src="https://cdil.us/statistics/matomo.php?idsite=3&amp;rec=1" style="border:0" alt="" />
<!-- End Matomo -->
</noscript>
</footer>
31 changes: 15 additions & 16 deletions _includes/head/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,20 @@
{% include head/analytics.html %}
{%- endif -%}
{% if site.noindex == true or page.noindex == true or layout.noindex == true %}<meta name="robots" content="noindex" />{% endif %}
<!-- Matomo CB Examples Analytics-->
<!-- Matomo for CollectionBuilder main site, gh, and sheets itself -->
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://cdil.us/statistics/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '17']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://cdil.us/statistics/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<!-- Last build date: {{ site.time | date: "%Y-%m-%d" }} -->

0 comments on commit fad787e

Please sign in to comment.