Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Subscriptions
English French
English French

How to set a Page URL?

Publishers sometimes need to override the current page's URL. For example, if you have set up a Single Page Application, the URL doesn't change and the Pageview meter doesn't get incremented. Therefore, you will need to trigger the experience page/tracking manually and for this, you can use the following JavaScript function:

tp.setPageURL()

For example:

tp.push(['setPageURL', 'https://google.com'])

Last updated: