Same ad platform deployed as both native tag and Custom HTML
An ad platform is implemented via both a native GTM tag and Custom HTML base pixel code, causing double-counting of page views and conversions.
Summary
- rule_id —
duplicate-platform-pixels - purpose — Detect ad platforms deployed via both a native GTM tag and a Custom HTML base pixel in the same container
- effect — Both implementations fire independently, double-counting page views and distorting conversion attribution
- layer — container
- reversibility — non-destructive
What fires this
The rule collects all active, non-paused tags where adPlatform metadata is set, grouping them by platform. It then scans active Custom HTML tags for base pixel initialization patterns across seven platforms: Meta (fbq('init'), LinkedIn (_linkedin_data_partner_id), TikTok (ttq.load(), Snapchat (snaptr('init'), Reddit (rdt('init'), Twitter/X (twq('config' or twq('init'), and Pinterest (pintrk('load'). When a native tag and a matching Custom HTML init pattern exist for the same platform, the rule emits a finding. Paused tags are excluded from both checks.
Why it matters
Each implementation fires independently on every page load. A container with both a native Meta Pixel tag and a Custom HTML tag running fbq('init', ...) sends two separate page view hits to Meta per actual page view. Conversion counts inflate at the same rate — both tags can claim credit for the same event. Platform optimization algorithms (CPM bidding, audience modeling, reach estimation) consume the inflated signal and produce unreliable output. Native tags are always the preferable path: they carry built-in consent integration and receive vendor support.
Before / after
Container holds a native Meta Pixel tag (GTM template, pixel ID configured in the tag settings) AND a Custom HTML tag with:
fbq('init', '1234567890')
fbq('track', 'PageView')
Both tags fire on the same All Pages trigger. Meta receives two page view hits per actual page load.
Native Meta Pixel tag remains. The Custom HTML tag is removed.
The native tag handles init and PageView tracking.
Consent mode and tag sequencing are managed through the
native template's built-in settings.
Remediation
- Check the finding detail to confirm which platforms are affected.
- For each platform, identify the native GTM tag and the Custom HTML tag.
- Verify the native tag covers the same pixel ID and events as the Custom HTML version.
- Pause the Custom HTML base pixel tag — do not delete it immediately.
- Monitor the platform's reporting for 24–48 hours to confirm metrics drop to expected levels.
- Delete the Custom HTML tag after one reporting cycle confirms stable data.
Metadata
- Severity
- high
- Tier
- optimization
- Category
- ads
- Layer
- container
- Version
- 1
- Effort
15min(about 15 minutes)- Reversibility
- non-destructive
See also
- Ads rules — other rules in this category
- Health score — how this rule contributes to the score
- Rules catalog — browse all rules
Examples
curl https://developer.tagmanifest.com/v1/evaluate-rule \
-H "Authorization: Bearer $TM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rule_id":"duplicate-platform-pixels","url":"https://example.com"}'
User: Run duplicate-platform-pixels on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "duplicate-platform-pixels",
"url": "https://example.com"
}
}