Air360 allows you to create events without leaving your website.

Let's say we want to track the users who used a Discount code in our order view.

Step 1: Go to the page where your Discount Code can be applied inside your website.

Step 2: Click on Mochi to turn on on-page analytics (OPA).

Step 3: Click on the Event Spotlight

icon. You can now simply click on an object on your website to start tracking it.

Step 4: Next click on the object you want to track. In this example we’ll be using the “APPLY COUPON” button.

Step 5: Once you have selected the object, the Event Definition will show in the OPA.

Here you can see the HTML elements associated with the object you selected.

SCOPE: This defines if you’ll be tracking this action on this page only or on multiple pages. For example, you may have a “buy” button on all product pages. If you leave Scope limited to current page, you’ll track this product only, otherwise, you’ll be tracking clicks of buy buttons on all product pages. This is crucial for your analysis. In this example it makes more sense to turn it off, as you want to track this action universally on your website.

TAG: This is the type of HTML element you are tracking. In this case it’s a button, but it could be any HTML tag.

CLASSES: The class attribute specifies the CSS class attached to this element. It’s not something you need to worry about, but it’s something interesting to note when tracking multiple elements.

HREF: This is the link referenced in the object you just selected. HREF stands for Hyperlink reference and is the target page you will be sent to after clicking on that button. This attribute is not available in this example.

TEXT: This is the text on the object you see on the screen.

Step 6: When you are done reviewing the event, click on “Follow this event” and two textboxes will appear.

NAME: Choose a name that describes well the event you are tracking, so it will be easy to find when you need it for your analysis.

LABEL: pick the label  you think better relates to this event.

Click on save and you are done!

Congratulations! You have just created your first event alias! This event alias can now be reused in any parts of Air360.

Before you go

It's always a good idea to check which events have been previously created on a page before creating a new event to avoid duplicates.

To check existing events, go to the Air360 platform “Events” tab. Here you can see a complete list of existing events, where you can search for the specific event want. This is one of the reasons naming and labeling are so important.