Skip to content

Commit

Permalink
change order for matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
denisyilmaz committed Feb 28, 2024
1 parent bbfd21f commit e0a78ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions landingpage/src/routes/[...locale]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ export const sendEmail = $((values: ContactForm) => {

export default component$(() => {
const { trackPageView, trackEvent } = useMatomo();
// eslint-disable-next-line qwik/no-use-visible-task
useVisibleTask$(() => {
trackPageView();
});

const [, { Form, Field }] = useForm<ContactForm>({
loader: useFormLoader(),
Expand All @@ -109,6 +105,7 @@ export default component$(() => {
// eslint-disable-next-line qwik/no-use-visible-task
useVisibleTask$(() => {
showContent.value = true;
trackPageView();
});

return (
Expand Down

0 comments on commit e0a78ae

Please sign in to comment.