IBM Web Content Manager Troubleshooting | OpsBlu Docs

IBM Web Content Manager Troubleshooting

Debug analytics issues on IBM WCM — WebSphere Portal integration, presentation template conflicts, WCM caching layers, and syndication timing problems.

IBM Web Content Manager (WCM) runs on WebSphere Portal and uses a layered content/presentation architecture. Analytics issues on IBM WCM are often complex because of the multiple caching layers (WCM cache, Portal cache, web server cache), the separation of authoring and delivery environments, and the syndication pipeline that pushes content from authoring to production.

IBM WCM-Specific Debugging Approach

IBM WCM separates content authoring from delivery. Changes made in the authoring environment must be syndicated to the delivery server before they appear on the live site. This syndication step is the most common point of failure for analytics changes.

Check Syndication Status

# In WebSphere Portal admin console:
# Portal Administration > Portal Content > Syndicators
# Check the status of your syndicator — look for "Pending" items

# Or via WCM REST API (if enabled):
curl -u admin:password "https://your-portal.com/wps/mycontenthandler/wcmrest/syndication/syndicators" \
  -H "Accept: application/json" | python3 -m json.tool

Verify Presentation Template Output

# Check the rendered page for analytics tags
curl -s -L "https://your-site.com/wps/portal/home" | grep -iE "gtag|gtm|analytics" | head -5

# Check for WCM rendering errors
# In WCM authoring portlet: View > System logs
# Or check WebSphere logs:
tail -100 /opt/IBM/WebSphere/profiles/wp_profile/logs/WebSphere_Portal/SystemOut.log | grep -i "wcm\|template\|render"

Most Common IBM WCM Analytics Issues

1. Syndication Not Pushing Analytics Template Changes

Symptoms: Analytics code visible in the authoring environment but not on the delivery server.

Root cause: WCM uses syndication to push content from the authoring server to delivery servers. If syndication is paused, failed, or filtered, template changes with analytics code will not reach the live site.

Diagnosis:

  • Check Portal Administration > Syndicators for the syndicator status
  • Look for "Failed" or "Pending" items
  • Check if the syndicator's scope includes the library containing your analytics template

Fix: Trigger a manual syndication or fix the syndicator:

# Trigger syndication via URL
curl -u admin:password "https://authoring-server.com/wps/mycontenthandler/wcmrest/syndication/syndicators/[syndicator-id]/run" \
  -X POST

2. WCM Cache Serving Stale Presentation Templates

Symptoms: Analytics changes appear after syndication but the live site still serves old HTML. Clears up after hours.

Root cause: IBM WCM has multiple cache layers: WCM basic cache, WCM advanced cache, and the WCM servlet cache. Each can independently serve stale content.

Fix:

# Clear WCM caches via admin portlet:
# Administration > Portal Content > Web Content > Clear Cache

# Or via ConfigEngine:
cd /opt/IBM/WebSphere/profiles/wp_profile/ConfigEngine
./ConfigEngine.sh clear-wcm-cache -DWasPassword=password

# For the servlet cache, restart the WCM servlet:
# In WebSphere admin console: Applications > Enterprise Applications > wcm > restart

3. Presentation Template Not Including Head Section

Symptoms: Analytics code is in a WCM component but does not appear in the page <head>.

Root cause: WCM presentation templates control the full HTML output. If the presentation template does not reference the component containing your analytics code, or places it outside the <head> section, it will not render correctly.

Fix: Edit your presentation template to include the analytics component in the correct location:

<!-- In your WCM Presentation Template -->
<html>
<head>
  [Component name="analytics-head"]
  [placeholder tag="head"]
</head>
<body>
  [placeholder tag="body"]
  [Component name="analytics-body"]
</body>
</html>

4. Portal Theme vs. WCM Template Conflict

Symptoms: Analytics loads on some portal pages but not on WCM-rendered pages, or vice versa.

Root cause: WebSphere Portal themes and WCM presentation templates are separate systems. Analytics added to the Portal theme does not appear on WCM-rendered pages, and vice versa.

Fix: Place analytics in the Portal theme's head.jsp (which wraps all pages including WCM content):

<%-- In your Portal theme's head.jsp --%>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXX');
</script>

5. Virtual Portal / Multi-Site Tracking Fragmentation

Symptoms: Analytics data is fragmented across virtual portals. Different sections of the site report to different GA properties or show different hostnames.

Root cause: IBM WCM supports virtual portals for multi-site delivery. Each virtual portal may have its own theme and presentation templates.

Fix: Centralize analytics in a shared Portal theme module, or create a WCM library shared across all virtual portals:

// Use a common analytics initialization that detects the virtual portal
var virtualPortal = window.location.pathname.split('/wps/portal/')[1]?.split('/')[0] || 'default';
gtag('config', 'G-XXXXXXX', {
  custom_map: { dimension1: 'virtual_portal' }
});
gtag('event', 'page_view', { virtual_portal: virtualPortal });

Environment Considerations

  • Enterprise infrastructure: IBM WCM typically runs behind load balancers, reverse proxies (IBM HTTP Server, Apache), and CDNs. Each layer can cache or modify HTML output
  • Authoring vs. delivery: Always test analytics on the delivery server, not the authoring server. They serve different content
  • Java-based: All customization requires Java/JSP knowledge. Template changes may require a portal restart depending on caching configuration
  • WebSphere versions: WCM behavior varies significantly between WebSphere Portal 8.5, 9.0, and HCL DX (the product was sold to HCL in 2019). HCL DX has different admin interfaces
  • Security policies: Enterprise IBM WCM deployments often have strict Content-Security-Policy headers. Verify that analytics domains are whitelisted

Performance Issues

Tracking Issues

  • Events Not Firing - Debug syndication delays, cache layers, and Portal theme vs. WCM template conflicts