Triggering events
The agent has an event interface to communicate with the page it's embedded in. Triggering an event means to send/push an event to the agent.
Currently, conversion is the only event available. Triggering this event will tell Hitprobe that the current visitor has converted (i.e. made a purchase, subscribed, or completed some other goal). The visitor's session will then be marked as converted.
To send an event, run this JavaScript code anywhere on the page after the Hitprobe tag has been declared:
hp('conversion');
Remember to enclose in script tags if putting it into the body of the page:
<script>
hp('conversion');
</script>
If you're using Google Tag Manager, you can send the event using a Custom HTML tag type containing the script above.
You can also send conversion events from your server using the HTTP API.