JavaScript Action

A JavaScript action inserts JavaScript content onto a page and allows you to change or create dynamically generated elements, add or edit variables, or insert JavaScript functions for use by other page elements.

Required Component


Monetate appends anything you add in the JavaScript editor to your site. It's loaded in a <script> tag and executed when the action fires. Any variables or functions are available on this page for reference by other page elements or additional actions.

Optional Component

Run Once

The Only run once? toggle allows you to execute the JavaScript only on the first page track or on each page track.

Selecting YES runs the JavaScript on the first track only. Selecting NO runs the JavaScript on all subsequent retracks.

For more information, see AJAX Site Updates.