Hiding Payment Details from Analytics
Edited

For businesses looking to monitor customer interactions within the e-commerce process through tools like FullStory, safeguarding user privacy is essential. This means ensuring that sensitive data, such as billing information, is not captured.

In the case of PeakCommerce’s online shopping experience, payment details are inputted on a Secure Page, which comes from the integrated payment system (for example, Zuora). To prevent these details from being tracked in your analytics, you can apply a specific CSS class (.fs) to the necessary fields on the Secure Page settings within your payment system.

Should there be a need to omit more information from being recorded during the e-commerce journey on PeakCommerce, this can be accomplished with JavaScript in the e-commerce site template. Here is a sample script that shows how to exclude certain details:

$(document).ready(function() { $('#bill_to_email').addClass('fs-exclude'); });

For specifying which billing contact details to exclude in the payment phase, the following are effective CSS input selectors. To adjust for “Sold To” contact details, simply change “bill_to” to “sold_to”.

#bill_to_company
#bill_to_first_name
#bill_to_last_name
#bill_to_email
#bill_to_phone
#bill_to_address1
#bill_to_address2
#bill_to_country
select[name=bill_to_us_state]
select[name=bill_to_ca_state]
#bill_to_province
#bill_to_city
#bill_to_postal_code