Hardcoded conversion values in ad tags
Conversion tags use hardcoded values instead of dynamic values from the dataLayer. This means every conversion reports the same value regardless of actual transaction amount.
Summary
- rule_id —
hardcoded-conversion-values - purpose — Detect ad conversion tags that report a static value instead of the actual transaction amount
- effect — Every conversion reports the same hardcoded figure, corrupting revenue-based bid optimization
- layer — container
- reversibility — non-destructive
What fires this
The rule checks all active tags with type awct (Google Ads Conversion Tracking) or baut (Microsoft UET). For each matching tag, it reads parameters.conversionValue or parameters.revenue and checks whether the value starts with {{. A value that does not start with {{ is not a GTM variable reference — it is a literal. Tags with a non-empty literal conversion value are flagged, and the hardcoded value is included in the issue payload. Paused tags are excluded.
Why it matters
When conversionValue or revenue is a hardcoded number (e.g., 1 or 100), every conversion reports that same figure to the ad platform — regardless of actual transaction amount. Revenue-based bid strategies (Target ROAS, Maximize Conversion Value) optimize against fabricated data. Ad platform revenue reporting becomes unreliable for budgeting and ROI. The fix is a one-field change in the tag; the data integrity gain is immediate.
Before / after
{
"type": "awct",
"parameters": {
"conversionValue": "1"
}
}
{
"type": "awct",
"parameters": {
"conversionValue": "{{dlv - transaction.value}}"
}
}
Remediation
- Open each flagged tag in GTM and note the hardcoded value in the conversion value field.
- Identify the dataLayer key that holds the actual transaction amount (e.g.,
ecommerce.value,transaction.revenue). - Create a Data Layer Variable for that key if one does not already exist.
- Replace the hardcoded value with the variable reference (e.g.,
{{dlv - transaction.value}}). - Confirm the currency field is also dynamic — hardcoded currency causes the same reporting problem.
- Test in GTM Preview mode with a completed conversion and verify the variable resolves correctly.
Metadata
- Severity
- low
- Tier
- info
- 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":"hardcoded-conversion-values","url":"https://example.com"}'
User: Run hardcoded-conversion-values on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "hardcoded-conversion-values",
"url": "https://example.com"
}
}