title: How to know if user came from google ads and understand that this is his n-th page in the session with JS code?
body: <p>I need to perform logic once a user that comes to the page through a context ad views n-th page in his session. 
  How can I achieve this?</p>