Is it possible to use the “Site Tracking” script to track page views on single page applications that use the History API (e.g. React, Vue, Anguar)?
I can hook into the change of page and can manually call the vgo function - I’m just not sure what parameters to call the function with.
For anyone else looking for this. After the URL changes you can call:
vgo('update');
vgo('process');
'update'
triggers the URL to be recalculated internally and 'process'
triggers the new page view event.
4 Likes
@wearecube358759 this is not working for me. I’m trying excatly this in an angular app, but don’t see subsequent url paths being logged in activecampaign. is there documentation somewhere for the available methods?
@wearecube358759
Good lord how did you figure that out. The documentation for this thing is seemingly nonexistent!