Analytics
Google Analytics
Track content performance by including analytics scripts in your frontend. Use the CDS API’sabsolute_url field for page path tracking.
Custom Analytics
Use the CDS response fields to build custom analytics:| Field | Analytics Use |
|---|---|
word_count | Content length analysis |
access_type | Free vs. paid content performance |
primary_category | Category-level metrics |
contributors | Author performance tracking |
type | Content format analysis |
CDN Integration
Cache Invalidation
CDS responses includeCache-Tags for CDN cache management:
- Cache CDS API responses
- Use
Cache-Tagsfor targeted purging - Set up webhook listeners (
post.published,post.updated) to trigger cache purges
Search Integration
Algolia / Elasticsearch
Sync Publive content to your search engine:- Initial sync: Paginate through all posts via CMS API
- Real-time sync: Listen for
post.publishedandpost.updatedwebhooks - Index fields:
title,content_html,short_description,tags,categories
Email / Newsletter
Use the CDS Newsletter Groups API to manage newsletter subscriptions:Social Media
Posts include built-in social sharing metadata (via CDS):| Field | Platform |
|---|---|
og_title, og_description, og_image | Facebook, LinkedIn |
twitter_title, twitter_description, twitter_image | Twitter/X |