Skip to content

Commit ab1ad79

Browse files
authored
Merge pull request #24 from webrecorder/event-tracking
add plausible & a few custom events
2 parents c3d9755 + 032a706 commit ab1ad79

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/archive-now.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ArchiveNow extends LitElement {
7474
<p>
7575
When you’re done, click the
7676
<strong
77-
class="cursor-default rounded-md bg-lime-400 px-2 py-1.5 font-normal text-white ring-1 ring-inset ring-lime-700"
77+
class="plausible-event-name=fake+finish+button cursor-default rounded-md bg-lime-400 px-2 py-1.5 font-normal text-white ring-1 ring-inset ring-lime-700"
7878
>Finish</strong
7979
>
8080
button.
@@ -89,7 +89,7 @@ class ArchiveNow extends LitElement {
8989
<p>
9090
Click
9191
<strong
92-
class="cursor-default rounded-md bg-lime-400 px-2 py-1.5 font-normal text-white ring-1 ring-inset ring-lime-700"
92+
class="plausible-event-name=fake+finish+button cursor-default rounded-md bg-lime-400 px-2 py-1.5 font-normal text-white ring-1 ring-inset ring-lime-700"
9393
>Finish</strong
9494
>
9595
to finalize your archive.
@@ -350,7 +350,7 @@ class ArchiveNow extends LitElement {
350350
>.
351351
</p>
352352
<sl-button
353-
class="block w-full"
353+
class="plausible-event-name=download+archive block w-full"
354354
href="${this.downloadUrl}"
355355
target="_blank"
356356
size="large"
@@ -526,7 +526,7 @@ class ArchiveNow extends LitElement {
526526
play
527527
>
528528
<button
529-
class="pointer-events-auto relative z-10 origin-bottom transition-transform hover:-rotate-3 hover:skew-x-3"
529+
class="plausible-event-name=linky+toggle pointer-events-auto relative z-10 origin-bottom transition-transform hover:-rotate-3 hover:skew-x-3"
530530
@click=${() => (this.showHint = !this.showHint)}
531531
title="Toggle Linky's hint"
532532
>

src/index.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
<meta name="theme-color" content="#4d7c0f" />
3232

3333
<script src="awp-ui.js"></script>
34+
<script defer data-domain="create.webrecorder.net"
35+
src="https://stats.browsertrix.com/js/script.file-downloads.hash.outbound-links.tagged-events.js"></script>
3436
</head>
3537

3638
<body>

0 commit comments

Comments
 (0)