SHARE
TWEET

AO — headers listner

snegir Aug 28th, 2018 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.  
  3.  
  4. var headers = JSON.parse(localStorage.getItem('headers')) || [];
  5.  
  6. // push start, end time of headers  
  7. headers.push({'name': {{gtm.element}}.textContent, 'timeEnd': {{gtm.visibleLastTime}}, 'timeStart': {{gtm.visibleFirstTime}}})
  8.  
  9. localStorage.setItem('headers', JSON.stringify(headers))
  10.  
  11.  
  12. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top