Spec: Track Page View

trackPageView method is used to record the pages an user has viewed in your Application. Since we track page views of your users by default, calling this method is not needed in case of Javascript Library.

trackPageView method has the following fields:

FIELD TYPE DESCRIPTION
userID
(Required)
String This is the unique identification that you can give to your User. Usually Database ID will be used as userID. This field is not required in case of Javascript Library. Refer userID section of identify spec to know more.
url
(Required)
String Url of the page you want to track.

Example trackPageView call of Ruby library:

1
2
3
4
5
6
userId = '123456' url = 'https://www.myfreshworks.com/crm/sales/libraries/ruby' Freshworks CRMAnalytics::trackPageView(userId, url)
Help and Support
Send us a message
Chat with us