feat: Refinamiento del tracking de analiticas y actualizacion del dashboard admin
This commit is contained in:
@ -23,7 +23,13 @@ const filteredShuttles = computed(() => {
|
||||
})
|
||||
})
|
||||
|
||||
const verDetalle = (shuttleId: string) => {
|
||||
const verDetalle = (shuttleId: string, shuttleName: string) => {
|
||||
analyticsService.logEvent({
|
||||
event_name: 'view_details',
|
||||
entity_type: 'shuttle',
|
||||
entity_id: shuttleId,
|
||||
entity_name: shuttleName
|
||||
})
|
||||
router.push({
|
||||
name: 'ShuttleDetalle',
|
||||
params: { id: shuttleId }
|
||||
@ -118,7 +124,7 @@ onUnmounted(() => {
|
||||
:key="shuttle.id"
|
||||
v-memo="[shuttle.id]"
|
||||
class="shuttle-card-premium glass-effect"
|
||||
@click="verDetalle(shuttle.id)"
|
||||
@click="verDetalle(shuttle.id, shuttle.company_name || `${shuttle.origin}-${shuttle.destination}`)"
|
||||
>
|
||||
<div class="card-image-wrap">
|
||||
<img
|
||||
|
||||
Reference in New Issue
Block a user