Why send events to Faqprime
Event tracking unlocks a powerful capability: targeting users with laser precision. Imagine surfacing content based on a user's specific actions or their progress within your product. By tracking key events (actions or tasks users complete), you can identify users who haven't performed these actions and provide them with targeted guidance or support. This ultimately helps users become successful users of your product
How to send events to Faqprime
A) Add a Javascript JS file to your code in the page header (if not already present)
Place the following code snippet within the HTML <head></head> of your page(s).
<script src=" https://myfaqprime.appspot.com/bot/bot-eventlib.js"></script>
Make sure to add the script on every page you want to use Faqprime on.
Installing in a Single-Page Application (SPA)? You may not want to include the enableURLDetection script.
2. Define your events repository and give them a name
Example - myproduct.config
Eventid (internal) | Eventid (external i.e. exposed to faqprime) |
1 | myevent_1 |
2 | myevent_2 |
3 | myevent_3 |
Event Configuration
Visit the Event Engine (faqprime dashboard)
Add the Eventid (external) one by one.
For each event add the url entry
Event may apply to all urls
Event may apply to few or one url/url segment
For each url entry add the usersegments (if supported) and their respective action (JS supported)
Event Invocation:
Have the logic as follows -
Say internally eventid “1” occurred, get the eventid(external) and call the function faqprimeEventInitiate(<eventid>) ie faqprimeEventInitiate(“myevent_1”)