Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify API to access UTM parameters #24

Closed
sadjow opened this issue Sep 4, 2024 · 0 comments · Fixed by #27
Closed

Simplify API to access UTM parameters #24

sadjow opened this issue Sep 4, 2024 · 0 comments · Fixed by #27
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@sadjow
Copy link
Member

sadjow commented Sep 4, 2024

Currently, we need to import useNuxtApp API:

<script setup>
import { useNuxtApp } from "nuxt/app";
const { $utm } = useNuxtApp();
</script>

It would be nice to have a more straightforward and intuitive API like:

const utm = useNuxtUTM();
@sadjow sadjow added enhancement New feature or request good first issue Good for newcomers labels Sep 4, 2024
@hakenprog hakenprog self-assigned this Sep 24, 2024
@sadjow sadjow added this to the 0.2.0 milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants