A Basic Installation
Last updated
Last updated
This guide walks you through setting up Innkeepr on your site.
Innkeepr.js is the starting point of every installation. It automatically captures page events from your shop or web app and sends it to the Innkeepr servers.
Additionally Innkeepr.js provides building blocks for identifying users and capturing conversion events in the form of methods.
To install Innkeepr on your site:
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.
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 .
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.
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.
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 .
Here’s an example of what a call to track
might look like when a user signs up: