Installing Tracking Code Snippet Inside Web App

SOLVE
RyanHilliard
Contributor

Background: As an org., we've been using tools like Pendo or WalkMe for web app analytics. When we want to to create a bucket of users for marketing automation or outreach based on app activity, we configure Zapier zaps to send in app activities or events to hubspot and slack to prompt action.

 

I was thinking, could we just drop the snippet directly into the web app (React) to directly add users to lists or trigger workflows and cut out steps/cost with Zapier. Obviously HubSpot wouldn't be an app analytics replacement but this could resolve the separate challenge of individual enrollment. We can add the domains for tracking - it seems like it should just work.

 

We've decided just to drop the snippet in place in our Dev environment and add the dev environment's domain to our tracking settings in HubSpot. I would have expected to see pageviews but there isn't any data coming through for those web app pages.

 

Anyone aware of limitations on this front? I wouldn't think HubSpot would know the difference of where the snippet lives (whether on a marketing site or within a SaaS application).

0 Upvotes
1 Accepted solution

Accepted Solutions
RyanHilliard
Solution
Contributor

Update: We are now able to see users visiting inapp pages! What changed? I believe I just eliminated a couple of user errors. 

 

First, we went live with this in our Dev environment. This was problematic for getting contacts to show at all because people do not fill our hubspot forms to get into Dev, ever. If you only go live in your dev environment, you are likely to see something similar.

 

Now, I myself am a contact in hubspot, and have access to the dev account, but I was still not showing up, which leads to addressing user error two.

 

My contact filter used when creating my list was accidently too restrictive. Adding a simple * following the app URL was the key, and now I am seeing contacts! More to come on how we make the most of this to simplify some automation triggers based on app activity.

View solution in original post

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Moderator

Hey @RyanHilliard,

 

Just to ensure that we're on the same page, are you looking to track external domains on HubSpot analytics? 

 

If so, can I check if you've added the external site domins on your portal reports settings? More details here: Set up site tracking in HubSpot (Specifically under the `Add site domains` section).

0 Upvotes
RyanHilliard
Contributor

Yes, essentially it is an external domain but rather than a marketing website for getting leads, it is the actual web app pages. 

 

I have added the domain. Note, the root domain is the same as one already in the account, but the sub domain and the sub-sub domain have both been added as well. 

0 Upvotes
RyanHilliard
Solution
Contributor

Update: We are now able to see users visiting inapp pages! What changed? I believe I just eliminated a couple of user errors. 

 

First, we went live with this in our Dev environment. This was problematic for getting contacts to show at all because people do not fill our hubspot forms to get into Dev, ever. If you only go live in your dev environment, you are likely to see something similar.

 

Now, I myself am a contact in hubspot, and have access to the dev account, but I was still not showing up, which leads to addressing user error two.

 

My contact filter used when creating my list was accidently too restrictive. Adding a simple * following the app URL was the key, and now I am seeing contacts! More to come on how we make the most of this to simplify some automation triggers based on app activity.

View solution in original post

0 Upvotes