https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
c

clean-river-69825

11/08/2023, 11:22 AM
Hello! I guess this answers my question (issue that we found in production šŸ˜¢). Is the tracking callback triggerd only once per experiment/session? Is this happening on purpose for any SDK or just in the JS one?
r

rhythmic-agent-34208

11/08/2023, 11:22 AM
@clean-river-69825 has opened an issue Close Issue button
ā­ Our official support hours are 6:30am - 5pm Pacific Time, Monday through Friday. You may occasionally hear from us outside of these hours. Your support request has been logged in our system. Our support team will get back to you very soon!
Hi David, thanks for your question. I'll double-check with our Engineering team tomorrow and get back to you.
šŸ™ 1
Correct, the trackingCallback is triggered only once per session in the JS SDK (and I believe in all other SDKs as well). If the page is refreshed then we may fire it again.
We have been discussing internally whether we should allow users to control whether the ā€‹`trackingCallback`ā€‹ fires on each evaluation or only once. Which would you prefer?
c

clean-river-69825

11/10/2023, 7:55 AM
Iā€™d prefer to trigger it at each evaluation. I find that easier to manage and more predictable.
r

rhythmic-agent-34208

11/14/2023, 4:49 PM
Thank you for the feedback, David! I'll let our Engineering team know about this.
šŸ™Œ 1
3 Views