GuideWhale Installation
You can follow a similar guide inside our dashboard by going to GuideWhale dashboard > Settings > Installation.1
Step 1: Install Javascript SDK
Add this to your application environment to load our JavaScript SDK. Make sure to add this to your index.html or root layout file on every page you want to track users and display interactive content.
2
Step 2: User Identity Verification
Before you get started with identifying a user, you need to verify their identity. In order to verify user identity and prevent impersonations, you need to sign your user’s
user_id with a secret key. Make sure to never share your secret key with anyone.For user_id it important to use a unique identifier for each of your users. This can be a database id, email address, or any other unique identifier.Please note that each environment has its own unique secret key.
3
Step 3: Initialize GuideWhale
In order to show your interactive content to a specific segment of users, you need to identify them with GuideWhale SDK using Additionally, you can also prime our SDK by initializing it without user data. This will allow any potential guide redirects from
gwhale.init method.For single page applications (SPA), this only needs to be called when page is initially loaded. For multi-page applications, this needs to be called on every page load.We can now use the signature and user data from the previous step to identify a user and their company.Please note that each app environment has its own unique code, which can be found in the GuideWhale dashboard > Settings > Installation.
Open Inside Application functionality from embedded slideshows or documents to be captured and executed once user has logged in.4
Step 4: Redirect Without Reloading
As different frameworks handle routing differently, you will need to add a small snippet of code to your application to handle redirects without reloading the page.
5
Step 5: Tracking Events (optional)
This is an optional step, but highly recommended to do while you’re performing the installation.
gwhale.track method.If you have any enabled integrations with 3rd-party analytics platforms like Amplitude, Mixpanel, or similar, these event will automatically be forwarded to them if event pushing is enabled and their SDK is present on the page.6
Step 6: Verify Installation
To verify your installation, you can check if your newly identified users are visible on the
Users page inside our dashboard.
If you have imported users, you can sort by the Last Seen At column to find the latest identified users.We also provide a status at the bottom of the installation settings page, which checks if your app had any activity in the last 7 days.You can find more of Javascript SDK methods under the methods section.