Skip to content

Commit 16db3ed

Browse files
committed
step1: add GA script to in_header (Clarity remains there as well)
will need step2 to initiate cookie consent
1 parent 0fc8709 commit 16db3ed

57 files changed

Lines changed: 443 additions & 264 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ Distance Sampling Survey Design
1212

1313
# Using `dssd`
1414

15-
There are two vignettes within the dssd package to help you get started using `dssd`:
16-
- GettingStarted: "Getting Started with dssd"
17-
- MultiStrataVignette: "Multiple Strata in dssd"
15+
There are two vignettes within the dssd package to help you get started using `dssd` (see Articles on navbar):
16+
17+
- [Getting Started](articles/GettingStarted.html)
18+
- [Multiple Strata](articles/MultiStrataVignette.html)
1819

1920
# Getting `dssd`
2021

_pkgdown.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,27 @@ template:
88
includes:
99
in_header: |
1010
<script type="text/javascript"> (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);})(window, document, "clarity","script", "m9tfz3zc93");</script>
11+
<!-- Google tag (gtag.js) -->
12+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JD2Y97JXPX"></script>
13+
<script>
14+
window.dataLayer = window.dataLayer || [];
15+
function gtag(){dataLayer.push(arguments);}
16+
gtag('js', new Date());
17+
18+
gtag('config', 'G-JD2Y97JXPX');
19+
</script>
20+
1121
1222
navbar:
1323
bg: primary
1424
structure:
15-
right: [twitter, github]
16-
components:
17-
twitter:
18-
icon: fa-twitter
19-
href: https://twitter.com/distancesamp
20-
aria-label: Twitter
25+
right: [github]
2126
footer:
2227
structure:
2328
right: donate
24-
left: clarity
29+
left: cookies
2530

2631
components:
2732
donate: "If you wish to donate to development and maintenance, please <a href='mailto:distance@st-andrews.ac.uk'>email us</a>."
28-
clarity: "We improve our site and software support by using Microsoft Clarity to see <br>
29-
how you use our website. By using our site, you agree that we and Microsoft <br>
30-
can collect and use this data. Clarity is GDPR compliant."
33+
cookies: "We improve our site and software support by using cookies to see <br>
34+
how you use our website."

docs/404.html

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/GettingStarted.html

Lines changed: 16 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)