feat: add utm tag to powered by link

This commit is contained in:
kolaente 2024-09-23 12:06:49 +02:00
parent c85cfcce6a
commit 204dccf08b
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
4 changed files with 14 additions and 4 deletions

View File

@ -21,7 +21,7 @@
</h1>
<div class="box has-text-left view">
<RouterView />
<PoweredByLink />
<PoweredByLink utm-medium="link_share" />
</div>
</div>
</div>

View File

@ -109,7 +109,10 @@
</nav>
</template>
<PoweredByLink class="mt-auto" />
<PoweredByLink
class="mt-auto"
utm-medium="navigation"
/>
</aside>
</template>

View File

@ -1,7 +1,7 @@
<template>
<BaseButton
class="menu-bottom-link"
:href="poweredByUrl"
:href="computedUrl"
target="_blank"
>
{{ $t('misc.poweredBy') }}
@ -9,8 +9,15 @@
</template>
<script setup lang="ts">
import {computed, defineProps} from 'vue'
import BaseButton from '@/components/base/BaseButton.vue'
import {POWERED_BY as poweredByUrl} from '@/urls'
const props = defineProps<{
utmMedium: string;
}>()
const computedUrl = computed(() => `${poweredByUrl}&utm_medium=${props.utmMedium}`)
</script>
<style lang="scss">

View File

@ -1,2 +1,2 @@
export const POWERED_BY = 'https://vikunja.io'
export const POWERED_BY = 'https://vikunja.io/?utm_source=powered_by'
export const CALDAV_DOCS = 'https://vikunja.io/docs/caldav/'