Skip to main content Skip to docs navigation

The sessionCount variable increments on each page refresh per tab and can be used in values to track how many times a page has been visited.

Try it yourself: download the session.json example automation, import it via Automations → Import, then open test.getautoclicker.com to watch it run. Refresh the test page a few times to watch the session count increment.
Action
Element Finder Value

SessionCount Initialization

sessionCount starts at 1 when a new tab is opened. Each tab maintains its own independent sessionCount. For example, two tabs opened for the same site will each start at 1.

Resetting the SessionCount

To reset sessionCount back to 1, add the query parameter clear-acf-session=true to the URL. This clears the current session and starts a new count at 1.

Example

https://test.getautoclicker.com?clear-acf-session=true

Starting a SessionCount from a Specific Number

To start from a specific number, add the query parameter acf-session-count-<automation-id>=number to the URL, where <automation-id> is the ID of your automation (visible in the options-page URL when the automation is open, e.g. /automations/<automation-id>) and number is your desired starting count. The automation ID is required because each automation keeps its own independent session count.

Example

To start a session with a session count of 5 for automation fa9a91a2-1b14-49af-9565-644cf8ed2f58:

https://test.getautoclicker.com?acf-session-count-fa9a91a2-1b14-49af-9565-644cf8ed2f58=5

Use these query parameters to manage and control session counts for different use cases.

Summary

  • New Tab: Each new tab starts with a sessionCount of 1.
  • Reset Session: Use clear-acf-session=true to reset to 1.
  • Set Specific Session Count: Use acf-session-count-<automation-id>=number to start from a specific number.

Replace the base URL with your actual application URL when using these parameters.


This guide explains how to manage session counts effectively in your web application.