Time tracking as CTA

I like to use Matomo using the time variable. How to manage and store time tracking time for each user as I like to show a POP-UP using a tracking code.

Example: after 2 seconds it should be POP-UP. Can I pull out time variable?