Tracking website actions
Last updated
Was this helpful?
Last updated
Was this helpful?
Sending page-specific messages when users navigate through your website is cool, but you can achieve even more with event tracking. Just use a simple Javascript code snippet to trigger events when your website visitors perform specific actions:
click a button
scroll to a certain place in the webpage
watch a video
add products to the shopping cart
etc
To use this feature you have to first. Once it’s in place, use this simple Javascript for event tracking:
When this code is executed (for example, with “” or “” event handlers), Activechat will trigger an event that you specified in <PUT YOUR EVENT NAME HERE> and attributes $param1 and $param2 will be set to the specified values for this user.
Create a that will start on this event, and your bot will immediately send a message in the website chat widget (either Facebook Messenger or Activechat widget).