Skip to content

Commit

Permalink
adding matomo analytics to cb examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb committed Nov 9, 2023
1 parent ddf2032 commit c12ba5d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@ <h4 class="text-white">About this Collection</h4>
<div class="col-md-12 text-center pt-3 pb-1">
<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="" />
<!-- End Matomo -->
</noscript>
</footer>
17 changes: 17 additions & 0 deletions _includes/head/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,21 @@
{% 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-->
<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 -->
<!-- Last build date: {{ site.time | date: "%Y-%m-%d" }} -->

0 comments on commit c12ba5d

Please sign in to comment.