Custom events available in Full Picture

Home » Support » Docs » Custom events available in Full Picture

This is the first part of custom events series. The second part deals with e-commerce events.

This is a list of functions that Full Picture uses to conditionally trigger tracking certain elements depending on visitor’s actions.

Scripts registered with these functions will be triggered right after fpdata object gets updated with a particular’s event’s information.

Click event

FP.on( ['click'], function(){ ... script ... };

The script inside the function will be triggered after a user clicks anything on page. This also recognizes middle mouse clicks (with the wheel) and taps on touchscreens.

URL change event

This function is available in Full Picture Lite and Pro

FP.on( ['url_change'], function(){ ... script ... };

The code inside the function will be triggered after a the URL is changed programatically, without refreshing the page.

Scroll event

This function is available in Full Picture Lite and Pro

FP.on( ['scroll'], function(){ ... script ... };

The code inside the function will be triggered after a visitor scrolls the page.

Webpage looses focus event

This function is available in Full Picture Lite and Pro

FP.on( ['close'], function(){ ... script ... };

The code inside the function will be triggered when a visitor:

  1. switched tabs and your page is no longer visible (desktop & mobile)
  2. closed browser (desktop & mobile)
  3. opened another window on top of the browser hiding all of its content (desktop only)

Form submit event

This function is available in Full Picture Lite and Pro

FP.on( ['form_submit'], function(){ ... script ... };

The code inside the function will be triggered after a visitor submits a form.

1 second activity event

This function is available in Full Picture Lite and Pro

FP.on( ['active_time_tick'], function(){ ... script ... };

The script inside this function will be triggered every second that that the user is actively engaged with the content on your site.

Give the free version a try!