Tracking Javascript Actions

Reference guide on how to track actions using Javascript

Reference for the Funnelytics script's'event-name') function.

You are allowed to pass any event name and object properties as a javascript action into Funnelytics.

Generic Event

This is what a generic event with only an event name would look like. In this example the event name is scroll.


You can include object properties to send additional properties to Funnelytics as well.


Here's another example of a scroll action with a property of the scroll % on the page.

<script>"scroll", {
depth: 25

Other Examples

These are just some quick examples, but you can add whatever values you want for the event name or object properties.

Button Click

This action could be used to track if a site visitor clicked a certain button.

<script>"click", {
button: "top cta",
page_path: "/optin"

Video View

This action could be used to track if the site visitor plays a certain video on your page.

<script>"video", {
video_title: "Sales Video",
video_action: "play"