# Execute analytic/kdb+ q code on browser refresh in KX Dashboards

**URL:** <https://forum.kx.com/t/execute-analytic-kdb-q-code-on-browser-refresh-in-kx-dashboards/14136>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [February 6, 2025, 1:05pm UTC](https://forum.kx.com/t/execute-analytic-kdb-q-code-on-browser-refresh-in-kx-dashboards/14136 "2025-02-06T13:05:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janeksnieg](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@janeksnieg](https://forum.kx.com/u/janeksnieg)\
**Post date:** [February 6, 2025, 1:05pm UTC](https://forum.kx.com/t/execute-analytic-kdb-q-code-on-browser-refresh-in-kx-dashboards/14136/1 "2025-02-06T13:05:23Z")

</div>

[https://learninghub.kx.com/forums/topic/execute-analytic-kdb-q-code-on-browser-refresh-in-kx-dashboards](https://learninghub.kx.com/forums/topic/execute-analytic-kdb-q-code-on-browser-refresh-in-kx-dashboards)

Hi all, as name of the topic specifies.

How can I execute an analytic on kx dashboards everytime a browser is refreshed? Right now, I have my analytic executing fine however, it's unclear to me how "Auto-Execute" functions in data sources. I thought by ticking that, everytime I refreshed my browser a given analytic would execute but it does not. Unless, there is something wrong on my end due to my own fault nonetheless wanted to ask.

---

<div class="post-metadata">

**Author:** ![mmcparland](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/mmcparland/32/54_2.png) [@mmcparland](https://forum.kx.com/u/mmcparland)\
**Post date:** [February 7, 2025, 11:34am UTC](https://forum.kx.com/t/execute-analytic-kdb-q-code-on-browser-refresh-in-kx-dashboards/14136/2 "2025-02-07T11:34:02Z")

</div>

Hi @janeksnieg&nbsp;,

Have you checked out the documentation for auto-execute?&nbsp;[Data sources - KX Dashboards](https://code.kx.com/dashboards/datasources/#auto-execute)

The data source automatically executes whenever an input parameter is changed or on load if [mapping](https://code.kx.com/dashboards/datasources/#mapping) is used.
