Indetification JS

contacts

#1

Hello!
Please, help me install identification code:

If we imagine the code of the page looks like this:

html>
head>
title>Page for test</title
head>
body>
h4> Hello</h4

!-- hubspot identification -->
script type=“text/javascript”>
$(document).ready(function(){
var _hsq = window._hsq = window._hsq || [];
hsq.push([“identify”, {
email: "admin@admin.com",
firstname: “Admin”,
lastname: “MyLastName”
}]);
hsq.push([“trackEvent”, {
id: “000001371632”
}]);
});

</script
/body>
/html>

Okay so this would be the whole code for the page. Will the script be sending the correct information?


#2

@Ivan You need to place the tracking code in your javascript section as well. Right now you are just adding the correct information to the hsq array but you need to send that information to our server now. Our tracking code will accomplish that for you. Just make sure you push to the array as you have above before the tracking code sends it to our servers.

Here are some documentation on how to install the tracking code.


#3

Thank you!
I’ll try it today