Track Page Views

To implement page-view analytics in your app, use trackPageView(). For more information about this method’s general use with Einstein Recommendations, see Salesforce Help: Track Page View.

Use the analytics manager to track page views with URLs, titles, items, and search terms. The trackPageView() method requires, at a minimum, a String representing the in-app URL to be tracked. Additional overloaded methods are available. Refer to the Javadoc for details.

For SDK version 10, use this example.

For SDK version 8, use this example.

For SDK version 7, use this example.