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 keep the meter from incrementing when query strings and hash symbols are included in the URL

For this purpose, the following code snippet can be simply added to your integration code in Composer or on your website.

JavaScript
tp.push([
  'setPageURL',
  [location.protocol, '//', location.host, location.pathname].join(''),
]);

For example:

PageURL.png

Now, when you add any query string or hash symbol to the URL and refresh the page, the meter won't increment.

Last updated: