Added analytics events for scene date clicks.

This commit is contained in:
DebaucheryLibrarian 2024-06-22 22:55:55 +02:00
parent 40e7e456b1
commit c4dc953d63
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,9 @@
:title="scene.date ? format(scene.date.toISOString(), 'y-MM-dd hh:mm') : `Release date unknown, added ${format(scene.createdAt, 'y-MM-dd')}`" :title="scene.date ? format(scene.date.toISOString(), 'y-MM-dd hh:mm') : `Release date unknown, added ${format(scene.createdAt, 'y-MM-dd')}`"
target="_blank" target="_blank"
class="date-link nolink" class="date-link nolink"
:data-umami-event="scene.affiliate ? 'scenetile-date-click-aff' : 'scenetile-date-click'"
:data-umami-event-aff-id="scene.affiliate?.id"
:data-umami-event-scene-id="scene.id"
> >
<time <time
:datetime="scene.effectiveDate.toISOString()" :datetime="scene.effectiveDate.toISOString()"

View File

@ -97,6 +97,9 @@
target="_blank" target="_blank"
class="date nolink" class="date nolink"
:class="{ nodate: !scene.date }" :class="{ nodate: !scene.date }"
:data-umami-event="scene.affiliate ? 'scene-date-click-aff' : 'scene-date-click'"
:data-umami-event-aff-id="scene.affiliate?.id"
:data-umami-event-scene-id="scene.id"
> >
<time <time
:datetime="scene.effectiveDate.toISOString()" :datetime="scene.effectiveDate.toISOString()"