Opportunity Tracking & Analytics
Marketing tag hard-coded outside GTM
- Severity
- Opportunity
- Impact
- Low
- Effort to fix
- Medium
- Issue code
track_outside_gtm
Why it matters
The site uses GTM, but this pixel is hard-coded in the page. That makes it harder to control consent, test changes, and avoid firing it twice.
How to fix it
Move the pixel into GTM (most have a template) and remove the hard-coded copy.
How it affects your score
Tracking issues have their own Tracking score and never lower the SEO site health score. They still appear in the Action Plan, the issues CSV, Slack messages and Linear tickets. A smaller improvement with a modest effect on its own.
Find the affected URLs
Open Crawl > Issues and pick Marketing tag hard-coded outside GTM. Each affected URL is listed with its evidence, and Copy URLs or Export URLs hands the list to a developer. The issue also appears in the Action Plan, ranked by impact (low) and effort (medium), and in the issues CSV under the code track_outside_gtm. After fixing, run a new audit and use Compare to confirm the URLs moved to fixed.
Guides that cover this issue
Related Tracking & Analytics issues
- CriticalGA4 sent by page code and by GTM
- CriticalGTM container not published or wrong ID
- CriticalPage view sent twice on one page load
- CriticalPersonal data or tokens in URL
- CriticalPixel initialised twice on the page
- CriticalTag loaded twice on the page
- CriticalTracking before consent
- WarningAnalytics tag missing on this page