Installation

You can automatically load and install the client by placing a <script> tag in the <head> or <body> of your website’s HTML. The minified script can be found here in Unify.

index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <!-- Your Unify JavaScript tag here -->
  </head>
  <body>
    <!-- Or here... -->
  </body>
</html>

Once added, there’s nothing else you need to do to start collecting intent data. The website tag will automatically start collecting both page views and user identifications.

Be sure to only initialize the client one time on your website.

If you’d like to manually trigger events in specific places on your website, you can do so by calling the client directly. When you include the tag in your HTML, you will immediately be able to access the client at window.unify (or simply unify since window is global).

Console
// Trigger a `page` event
window.unify.page();
unify.page();

// Trigger an `identify` event
window.unify.identify("user@email.com");
unify.identify("user@email.com");

Additional instructions

If you’re using one of the tools below, you can follow the provider-specific instructions for that tool to install the website tag.

Usage

Once the website tag is installed, the Unify Intent client will automatically start collecting events on your website. Most of the time, there is nothing else you need to do.

For details on how this works and the available options, see Configuration.