A Basic Installation
This guide walks you through setting up Innkeepr on your site by configuring DNS and creating an Innkeepr.js source.
Step 1: Setup DNS
Access your DNS Management: Log in to your domain's DNS management interface.
Create an Innkeepr URI: Add a CNAME record pointing to
cdn.innkeepr.ai
. This allows your site to communicate with Innkeepr servers.Wait for Propagation: It may take some time for the new DNS record to propagate. Check the status after a few minutes.
Step 2: Create an Innkeepr.js Source
Navigate to Sources.
Click Add Source.
From the source catalog page, select JavaScript.
Insert your Innkeepr URI.
Paste this snippet into the
<head>
tag of your site or a custom HTML tag of your Tag Manager.
Step 3: Identify Users
The identify
method is how you tell Innkeepr who the current user is. It includes a unique User ID and optional traits you know about them. You can read more about it in the identify method reference.
Here’s an example of what a basic call to identify
might look like:
This identifies Michael by his unique User ID (in this case, f4ca124298
, which is what you know him by in your database) and labels him with name
and email
traits. When you put that code on your site, you need to replace those hard-coded trait values with the variables that represent the details of the currently logged-in user.
Step 4: Track Events
The track
method is how you tell Innkeepr about events users perform on your site. Every action triggers what Innkeepr calls an “event”, which can also have associated properties. You can read more about track
in the track method reference.
Here’s an example of what a call to track
might look like when a user signs up:
This example shows that your user triggered the Checkout Completed event and checked out with 10.99
in revenue.
Properties can be anything you want to record, for example:
If you’re just getting started, some of the events you should track are events that indicate the success of your site, like Signed Up, Item Purchased or Article Bookmarked. Innkeepr recommends that you track a few important events as you can always add more later.
Once you add a few track
calls, you’re done with setting up Innkeepr. You successfully installed Innkeepr.js tracking. Now you’re ready to create your first Audiences.
Last updated