Two ways to identify prospects that submit a form containing email address using AnalyticsJS

This article assumes you have already installed AnalyticsJS on your website. If you’ve not yet installed AnalyticsJS, read our knowledgebase article on the topic.

The identify method in CaliberMind’s analyticsJS is how you associate a prospect on your website to their anonymous cookie id.

To automatically identify prospects that submit a form containing email address, simply paste the following code on every page containing the form:

<script 
type="text/javascript" src="https://cdn.calibermind.com/js/identifyEmail.latest.js"></script>

Note: the email form field must have its type set to email (e.g. <input type=”email” />) for this snippet to function properly.

You can also programmatically identify a prospect. Here’s what a basic call to identify might look like:

analytics.identify('[email protected]', {
  name: 'Tyrion Lannister', // optional
  email: '[email protected]'
});

That’s identifying Tyrion by his unique User ID (the one you know him by in your database) and labeling him with name and email traits.

Note: When you actually put that code on your site, you’ll need to replace all these values with actual details about the prospect you’re wanting to identify.

Now any identified prospects can be made part of your CaliberMind reports requiring customer journey data.

Using HubSpot? Check out these knowledge base articles:

Related Articles

Table of Contents