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

GTM submission tracking #196

Merged
merged 4 commits into from
Oct 2, 2024
Merged

GTM submission tracking #196

merged 4 commits into from
Oct 2, 2024

Conversation

andrea-zecevic
Copy link
Contributor

Comment on lines 82 to 86
pushToDataLayer('internship_prijava');

try {
createIntern.mutate(internToSend);
} catch (err) {
Copy link
Contributor

@ToniGrbic ToniGrbic Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeli bolje da se pushToDataLayer poziva nakon createIntern.mutate jer je Stipe reka nakon upisivanja u bazu? Ili možda čak najbolje ako radi na onSuccess callback od useMutate hooka usePostIntern?

@@ -77,6 +78,9 @@ export const ApplicationFormPage = () => {
},
};

initDataLayer();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da li je potrebno da se initDataLayer poziva na svaki submit? Možda je dovoljno samo na prvi render page-a?

@ToniGrbic
Copy link
Contributor

Isprovao lokalno, save-a event u window.dataLayer na submit forme. Meni se cini ok.

@ToniGrbic ToniGrbic self-requested a review October 1, 2024 22:45
Copy link
Contributor

@ToniGrbic ToniGrbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bdeak4 bdeak4 merged commit 82cbf7a into main Oct 2, 2024
3 checks passed
@bdeak4 bdeak4 deleted the Andrea/analitika branch October 2, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants