Skip to content

Commit

Permalink
Commit analytics doc to version control
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jan 27, 2023
1 parent ee36572 commit 54b6475
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/_site
/.sass-cache
.DS_Store
/_includes/analytics.html
_includes/analytics.html
.jekyll-cache
44 changes: 43 additions & 1 deletion _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130558797-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-130558797-1');
</script>

<!-- Hotjar Tracking Code for docs.pkp.sfu.ca -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:2436159,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>

<!-- Piwik/Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.docs.pkp.sfu.ca"]);
_paq.push(["setDomains", ["*.docs.pkp.sfu.ca"]]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u = (("https:" == document.location.protocol) ? "https" : "http") + "://" + "matomo.publicknowledgeproject.org/pkp/";
_paq.push(["setTrackerUrl", u + "piwik.php"]);
_paq.push(["setSiteId", "40"]);
var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0];
g.type = "text/javascript";
g.defer = true;
g.async = true;
g.src = u + "piwik.js";
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Piwik Code -->

0 comments on commit 54b6475

Please sign in to comment.