refactor: Add umami event tracking to adventure card buttons

This commit is contained in:
Sean Morley
2024-07-30 08:34:26 -04:00
parent 053c1ff681
commit 42f6c84633
3 changed files with 18 additions and 4 deletions

View File

@@ -384,7 +384,12 @@
class="input input-bordered w-full max-w-xs mt-1"
/>
<button type="submit" class="btn btn-primary mr-4 mt-4">Create</button>
<button
id="new_adventure"
data-umami-event="Create new Adventure"
type="submit"
class="btn btn-primary mr-4 mt-4">Create</button
>
<button type="button" class="btn mt-4" on:click={close}>Close</button>
</div>
</form>