Skip to content

Commit 85306e1

Browse files
committed
chore: add UTM and Rybbit events metadata
1 parent 7befe00 commit 85306e1

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

app/app.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default defineAppConfig({
2+
dcomUrl: "https://documatt.com?utm_source=snippets",
3+
});

app/components/Footer.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
>
55
<span
66
>🚀 Do you want to try Sphinx as service?
7-
<a href="https://documatt.com" class="link"
7+
<a
8+
:href="appConfig.dcomUrl"
9+
class="link"
10+
data-rybbit-event="try_documatt_clicked"
811
>Try Documatt, a free worry-free Sphinx.</a
912
>
1013
</span>
@@ -13,7 +16,7 @@
1316
<!-- <Icon name="emojione-v1:flag-for-czechia" /> -->
1417

1518
Made with <Icon name="prime:heart" /> by
16-
<a href="https://documatt.com" target="_blank" class="link">Documatt</a>
19+
<a :href="appConfig.dcomUrl" target="_blank" class="link">Documatt</a>
1720

1821
<div class="ml-4 inline-flex gap-1.5">
1922
<a href="https://www.youtube.com/@Documatt" target="_blank"
@@ -32,3 +35,7 @@
3235
</div>
3336
</footer>
3437
</template>
38+
39+
<script setup lang="ts">
40+
const appConfig = useAppConfig();
41+
</script>

app/components/Header.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
<!-- More functions? Try Documatt -->
2222

2323
More functions?
24-
<a href="https://documatt.com" target="_blank">
24+
<a
25+
:href="appConfig.dcomUrl"
26+
target="_blank"
27+
data-rybbit-event="try_documatt_clicked"
28+
>
2529
<button
2630
class="btn hover:bg-primary text-slate-500 hover:text-slate-200"
2731
>
@@ -32,3 +36,7 @@
3236
</div>
3337
</header>
3438
</template>
39+
40+
<script setup lang="ts">
41+
const appConfig = useAppConfig();
42+
</script>

0 commit comments

Comments
 (0)