如何从Omniture(Site Catalyst)中排除单个页面的追踪?
Absolutely—modifying your Omniture (Site Catalyst) implementation to skip tracking for a single specific page is totally feasible. Here’s a practical, step-by-step breakdown of how to pull this off:
1. First, Identify the Page to Exclude
Start by picking a reliable way to target the page you want to skip. Common identifiers include:
- The page’s URL path (e.g.,
/thank-youor/checkout/confirmation) - A unique meta tag (e.g.,
<meta name="page-type" content="no-track">) - A custom window variable set on the page (e.g.,
window.skipOmniture = true)
We’ll use the URL path for simplicity in the examples below.
2. Add a Conditional Check to Your Tracking Code
Find where your Omniture page view tracking is triggered—this is almost always the s.t() function call. Wrap this call in a conditional that skips execution when the page matches your excluded identifier.
Example: Basic Page View Exclusion
Original code:
// Standard Omniture page tracking s.t();
Modified code:
// Check if current page is the one we want to exclude const isExcludedPage = window.location.pathname === '/thank-you'; // Only send the tracking call if it's NOT the excluded page if (!isExcludedPage) { s.t(); }
3. Handle Additional Tracking Calls
If your page has other Omniture calls (like link tracking via s.tl()), apply the same logic to those too. To keep things clean, wrap the check in a reusable function:
// Reusable function to check if tracking is allowed function shouldTrack() { // Add multiple excluded paths if you need to skip more pages later const excludedPaths = ['/thank-you', '/internal-admin-page']; return !excludedPaths.includes(window.location.pathname); } // Page view tracking if (shouldTrack()) { s.t(); } // Link tracking example document.getElementById('free-ebook-download').addEventListener('click', function() { if (shouldTrack()) { s.tl(this, 'o', 'Ebook Download Button Click'); } });
4. Test to Confirm It Works
After making changes:
- Visit the excluded page and open your browser’s DevTools (Network tab)
- Look for requests starting with
b/ss/(Omniture’s standard tracking endpoint) - Verify no such requests are sent from the excluded page, while other pages still send tracking data as normal
Bonus: If You’re Using Adobe Launch (Tag Manager)
If you manage Omniture via Adobe Launch, you don’t even need to edit raw code. Just add a condition to your tracking rule that excludes the target page (e.g., "URL Path does not equal /thank-you").
内容的提问来源于stack exchange,提问作者Shankar Sharma

