Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var headers = JSON.parse(localStorage.getItem('headers')) || [];
- // push start, end time of headers
- headers.push({'name': {{gtm.element}}.textContent, 'timeEnd': {{gtm.visibleLastTime}}, 'timeStart': {{gtm.visibleFirstTime}}})
- localStorage.setItem('headers', JSON.stringify(headers))
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement