Custom Event Tracking
Glass supports tracking of custom events, for example signups.
To do this you'll need to be able to edit the HTML of the page in which the event takes place and insert some custom JavaScript.
How to Track Custom Events with Glass
Find the page where you want to fire your event
For example, the after a signup page.
Add the following event tracking javascript
<script> glassq.push(['custom_event',{ name: 'Signup', }]); </script>
where
Signup
is an example string of an event you can send.You can adapt this javascript to fire whenever you like.
The
name
field is limited to 100 characters.Test your event
Navigate to the page and trigger your event.
Then, navigate to another page, or close the window.
Glass only sends data when the user has left the current page (via Beacon).
You should see your event be counted in Glass the interface within a few seconds.
Frequently Asked Questions
Can I add custom parameters or metadata?
No. Event tracking records only a string.
How long can the event name be?
Event names are limited to 100 characters.