Angular 5 integration with hubspot


#1

Hi Hubspot team,

Currently the hubsport script js only track for the first load of angular app. If we change the route, it will disabled it.

As we need to integrate this for the user can tracks the activity on the page. What other method should i use? is it the hubspot plugin already compatible with Single Page Application (SPAs)?


#2

@FAIZ_ASYRAF - does the event tracking javascript api help fit your needs?


#3

Hi @FAIZ_ASYRAF,

Like Tim touches on above, you can programmatically set the page path your visitors are on using the Tracking Code API:


#4

Hi @Tim_Joyce_Belch, yes this solution works for me. thank you for your help and support on this.

Really appreciate it :slight_smile:


#5

Hi @Derek_Gervais , yes this solution works for me. thank you for your help and support on this.

Really appreciate it :slight_smile: