v9.1.0
9.1.0 (2022-04-25)
Features
- support onChange on useInView (ba8d059)
const { ref } = useInView({
onChange: (inView) => {
if (inView) {
dataLayer.push('Section shown'); // Here's a GTM dataLayer push
}
},
});
const { ref } = useInView({
onChange: (inView) => {
if (inView) {
dataLayer.push('Section shown'); // Here's a GTM dataLayer push
}
},
});
Last updated on April 25, 2022
Was this page helpful?
Thanks for your feedback!