Appearance
Page View Tracking
The RingierAd SDK provides page view tracking functionality to track user navigation patterns within your application. This feature maintains GDPR compliance through TCF (Transparency and Consent Framework) integration.
Prerequisites
Before using page view tracking, ensure the following:
- SDK Initialization - The RingierAd SDK must be properly initialized with a valid configuration.
- User Consent - The user must have granted the required TCF consents (see Consent Requirements).
Usage
swift
import RingierAdSDK
// Track a page view
RingierAd.trackPageView(
parameters: RingierAdPageViewParameters(url: "https://example.com/article/123")
)Parameters
RingierAdPageViewParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | String | Yes | The URL or identifier of the current page/screen being viewed. |
Consent Requirements
Page view tracking respects user privacy through TCF compliance:
When GDPR Applies
The following consents are required:
- Vendor ID: 1449
- Purposes: 1, 2, 3, 4, 7
When GDPR Does Not Apply
Consent is considered granted and tracking proceeds normally.
Best Practices
Use Consistent URL Formats
Maintain consistent URL formats across your application:
swift
// Using web URLs for web content
RingierAdPageViewParameters(url: "https://example.com/news/article-slug")Troubleshooting
Page View Not Tracked
If page views are not being tracked, check the following:
- SDK Initialization - Ensure
RingierAd.initialize()completed successfully. - User Consent - Confirm the user has granted the required TCF consents.

