# Element visibility with timer

**URL:** <https://community.piwik.pro/t/element-visibility-with-timer/4862>\
**Category:** Data collection and tags\
**Created:** [February 2, 2025, 6:46am UTC](https://community.piwik.pro/t/element-visibility-with-timer/4862 "2025-02-02T06:46:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Treffsikker\_Kjetil](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/treffsikker_kjetil/32/3989_2.png) [@Treffsikker\_Kjetil](https://community.piwik.pro/u/Treffsikker_Kjetil)\
**Post date:** [February 2, 2025, 6:46am UTC](https://community.piwik.pro/t/element-visibility-with-timer/4862/1 "2025-02-02T06:46:43Z")

</div>

Is it possible to trigger when an element has been in viewport for X seconds?

Google tag Manager allows this in their Element Visibility trigger. In piwik I don’t find the function for setting a timer, neither in Element Presence trigger nor Popup & Content tracking.

Thanks for any input!

---

<div class="post-metadata">

**Author:** ![kamilb](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kamilb/32/309_2.png) [@kamilb](https://community.piwik.pro/u/kamilb)\
**Post date:** [February 3, 2025, 4:34pm UTC](https://community.piwik.pro/t/element-visibility-with-timer/4862/2 "2025-02-03T16:34:42Z")

</div>

Hi @Treffsikker_Kjetil,

You would need to write a custom logic for this using a custom code tag.

Have a great day! 🙂
