OnPageLoad event handler

I found a solution for the problem.

  1. Create an empty SQL query
  2. Make sure the query is set to "Automatic"
    image
  3. Create a JS query which has the functionality you need on page load
  4. Set the JS query in the event handler:
    image

I made the scriptOnPageLoad global so it can be run on every page. The SQL query needs to be on each page, except your landing page, or you will run in a endless circle :slight_smile:

3 Likes