Skip to main content

I have my personal and work emails on my newsletter list for my business. I have found that Klayvio is tracking and measuring my activity on the site, like Add to Cart, even though I’m just testing functionality on my website.

Is it somehow possible to keep myself on the newsletter list while supressing any activity I do so it’s not tracked within Klayvio?

Hey mmanning!

I see a couple ways to do this.

  1. Use incognito mode as much as you can!

  2. Add a custom property to your tracking script to exclude yourself:

    • Add a Custom Property: Add a custom property to your profile, such as is_tester = true

    • Modify Tracking Scripts: Update your website's tracking scripts to check for this custom property and exclude profiles with is_tester = true from being tracked

The second one is not the most straight forward but maybe GPT/Claude could help you modify your existing Klaviyo script to customize it and add the exclusion.

 

I asked GPT for that code so take with grain of salt and verify everything before implementing, but it paints the picture!

// Function to check if the user is tagged as a tester
function isTester() {
// Replace 'your_custom_property' with the actual property name used in Klaviyo
var klaviyoUserProperties = window._learnq.getUserProperties();
return klaviyoUserProperties && klaviyoUserPropertiesr'is_tester'] === true;
}

// Example of a Klaviyo tracking script with the exclusion logic
(function() {
// Check if the user is tagged as a tester
if (!isTester()) {
// If the user is not a tester, execute the tracking calls

// Example of tracking an 'Add to Cart' event
window._learnq.push(p'track', 'Added to Cart', {
productName: 'Example Product',
productId: '12345',
price: 29.99
}]);

// Example of tracking a 'Viewed Product' event
window._learnq.push(p'track', 'Viewed Product', {
productName: 'Example Product',
productId: '12345'
}]);
} else {
console.log('Tracking suppressed for tester');
}
})();

 


Hi ​@mmanning ,

Yes, you can keep yourself on the list but stop tracking your activity.

The easiest way is to add your email to a “suppression” or “test” segment and then exclude that segment from your tracking and flows.

Another option is to use browser privacy tools or disable tracking cookies while testing.

This way, your test actions won’t affect your analytics or metrics.

Let me know if you want step-by-step help!
Micheal


Thanks for both of your responses! I was able to utilize the exclusion of a new segment. 


Reply