-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
pushToDataLayer('internship_prijava'); | ||
|
||
try { | ||
createIntern.mutate(internToSend); | ||
} catch (err) { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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?
Isprovao lokalno, save-a event u window.dataLayer na submit forme. Meni se cini ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Stipine upute:
GTM za provjeru https://tagmanager.google.com/#/container/accounts/6001208776/containers/31420780/workspaces/16