Tag Manager Integration¶
Dxtra Tag Manager is a privacy-compliant alternative to Google Tag Manager with built-in analytics. It operates as a separate service with its own dedicated interface and API.
Overview¶
The Tag Manager provides:
- Privacy-First Tracking -- Cookie-less tracking with GDPR, CCPA, and PECR compliance
- Tag Management -- Event-driven, rule-based tag firing system
- Built-in Analytics -- Privacy-compliant analytics without cookies
- Data Routing -- Flexible data routing to multiple backends
- Consent Integration -- Automatic integration with Dxtra's consent management
Service Endpoints¶
| Service | URL | Purpose |
|---|---|---|
| Tag Manager UI | https://tagmanager.dxtra.ai | Tag configuration and management |
| Tag Manager API | https://tagmanager-api.dxtra.ai | RESTful and GraphQL API |
| Edge Server | https://tagmanager-edge.dxtra.ai | Tag delivery and data collection |
Integration with Dxtra Platform¶
Authentication¶
Users authenticated in the main Dxtra platform access Tag Manager through a cross-platform login action:
mutation LoginUserTagManager(
$loginUserTagManagerInput: LoginUserTagManagerInput
) {
loginUserTagManager(
loginUserTagManagerInput: $loginUserTagManagerInput
) {
status
message
data {
userId
redirect
}
}
}
This creates a session in the Tag Manager service and returns a redirect URL to the Tag Manager interface.
Analytics Reporting¶
Retrieve Tag Manager analytics through the main Dxtra GraphQL API:
query ReportTagManagerApplicationStats(
$reportTagManagerApplicationStatsInput: ReportTagManagerApplicationStatsInput
) {
reportTagManagerApplicationStats(
reportTagManagerApplicationStatsInput: $reportTagManagerApplicationStatsInput
) {
data {
orgId
apps {
appId
result
}
}
}
}
Response Format
The reportTagManagerApplicationStats action returns analytics data grouped by application. The apps array contains per-application statistics with appId and result fields.
Installation¶
Basic Setup¶
- Access Tag Manager at
https://tagmanager.dxtra.ai - Create a new application for your website
- Install the generated JavaScript snippet on your site
- Configure tags, rules, and events through the Tag Manager UI
JavaScript Snippet¶
<!-- Dxtra Tag Manager -->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://tagmanager-edge.dxtra.ai/tag/'+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','APP_ID');
</script>
Replace APP_ID with your application ID from the Tag Manager dashboard.
Core Components¶
| Component | Description |
|---|---|
| Tags | JavaScript snippets that load on your website |
| Rules | Conditions that determine when tags fire |
| Events | Browser events that trigger rules |
| Actions | Operations performed when rules are satisfied |
| Environments | Separate configurations for development, staging, and production |
| Revisions | Version control for tag configurations |
Analytics-Only Mode¶
For users who only need analytics without full tag management, Dxtra provides a lightweight JavaScript snippet that:
- Tracks page views without cookies
- Monitors user interactions
- Respects consent preferences
- Supports single-page applications (SPAs)
Privacy Features¶
Consent Integration¶
Tag Manager automatically integrates with Dxtra's consent management:
- Tags only fire when appropriate consent is granted
- Consent changes are reflected in real-time
- Full audit trail of consent-based tag firing
Data Minimization¶
- No cookies by default
- Anonymous user tracking
- IP anonymization options
- Data retention controls
Tag Manager API¶
The Tag Manager has its own API separate from the main Dxtra GraphQL API, providing:
- RESTful endpoints for tag configuration
- GraphQL API for complex queries
- WebSocket connections for real-time data
- Webhook endpoints for integrations
Access the Tag Manager API documentation within the Tag Manager interface.
Next Steps¶
- Actions Reference -- See
loginUserTagManagerandreportTagManagerApplicationStatsdetails - Webhooks -- Configure third-party integrations
- Authentication -- API authentication setup
For Tag Manager-specific support, contact support@dxtra.ai with "Tag Manager" in the subject line.