APIs & Integrations

JBB
Member

Tracking User interaction on External Site via TrackingCode and email address

We’d like to track the interactions that our Users have on our externally hosted website.
To that end, we’ve included the standard Hubspot Tracking Code, and included a script that pushes data into the ‘_hsq’ variable: see example:

<!-- Start of HubSpot Embed Code -->
<script>
var _hsq = window._hsq = window._hsq || [];
_hsq.push(["identify",{
  email: [USER-EMAIL],
  cog_user_id: [USER-ID]
}]);
  _hsq.push(['setPath', '[PAGE-URL]']);
</script>
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/[HUBSPOT-ACCOUNT-ID].js"></script>
<!-- End of HubSpot Embed Code -->

So - can anyone tell me:
a) if this is correct?
b) where this information will be displayed?

I have visited several pages with this tracking code setup, but I can’t see my visits on my Hubspot User details.

For reference I’m using the suggestions from here
http://developers.hubspot.com/docs/methods/tracking_code_api/tracking_code_overview

Identify a visitor

_hsq.push(["identify", { {identity details} }]);

0 Upvotes
1 Reply 1
Not applicable

Tracking User interaction on External Site via TrackingCode and email address

Did you ever get a reply? I am facing the same issue on my external website.

0 Upvotes