Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

This is intended for development use only, excessive use on a production site may exceed service limits (e.g. if set to run on every page load). The Send2CRM client sends regular updates only when required, if this needs to occur more frequently consider adjusting the frequency setting.

Browser back/forward cache (bfcache)

Depending on web browser settings inline JavaScript may not be executed on every page load when using the back and forward buttons. If you wish to perform a task on every page view, e.g. recording Goals, you can use the pageshow event rather than load.

Code Block
languagejs
window.addEventListener('pageshow', (event) => {
  // Execute something on every page display.
});