Skip to main content

Transformation Rules

Overview

Transformation Rules allow you to modify, clean, and enhance your product feed data before exporting it to advertising channels. Rules are applied automatically during export, transforming your raw feed data into optimized content that meets channel requirements.


How Rules Work

  • Create rules on the Rules page by selecting a transformation type, source field, and target field
  • Configure parameters specific to each rule type (e.g. search/replace patterns, numeric factors)
  • Add optional conditions to apply rules only to specific items (item filters)
  • Set the execution order — rules run from top to bottom and can be reordered via drag & drop
  • Rules apply at export time — your original feed data is never modified

Rule Scope

Rules can be applied at two levels:

ScopeDescription
Global RulesApply to all exports in your project
Export-Specific RulesApply only to a specific export (e.g. Google Shopping, Meta)

Export-specific rules are useful when different channels require different data formatting.


Rule Categories

Text Transformations

RuleDescriptionExample
UppercaseConvert text to uppercase"blue shirt" → "BLUE SHIRT"
LowercaseConvert text to lowercase"Blue SHIRT" → "blue shirt"
CapitalizeCapitalize first letter"blue shirt" → "Blue shirt"
TrimRemove whitespace from start/end" blue shirt " → "blue shirt"
ReplaceFind and replace text (regex supported)Replace "cm" with "centimeters"
ConcatenateCombine multiple fields into onebrand + " - " + title
PrependAdd text before the valueAdd "NEW: " before title
AppendAdd text after the valueAdd " - Free Shipping" after title
ExtractExtract text using regex"Size 42" → "42"
TruncateLimit text to max lengthShorten description to 150 chars
Pad Left / RightPad with characters"123" → "00123"

Cleaning Transformations

RuleDescriptionUse Case
Remove HTMLStrip all HTML tags and decode entitiesClean website descriptions
Strip TagsSame as Remove HTMLRemove rich text formatting

URL Transformations

RuleDescriptionExample
Append URL ParamsAdd tracking parameters to URLsutm_source=google&utm_medium=shopping

URL parameters support dynamic placeholders using {field_name} syntax Example: utm_content={product_id}


Numeric Transformations

RuleDescriptionExample
MultiplyMultiply by factorCurrency conversion
DivideDivide by valueCents → dollars
AddAdd fixed valueHandling fee
SubtractSubtract valueFixed discount
PercentagePercentage change+10% markup
RoundRound decimals19.999 → 20.00
FloorRound down19.7 → 19
CeilingRound up19.1 → 20
AbsoluteConvert to positive-5 → 5
MinimumEnforce minimumPrice ≥ 1.00
MaximumEnforce maximumShipping ≤ 10.00

Conditional Transformations

RuleDescriptionExample
If / ThenFull conditionalIf brand = Nike
If EmptySet value if emptyCopy title
If ContainsText match"sale"
If Greater ThanNumeric comparisonPrice > 100
If Less ThanNumeric comparisonStock < 5
If EqualsExact matchColor = red
If Not EqualsNot equalStatus != active
If BetweenRange checkPrice 50–100

Value Mapping

RuleDescriptionExample
Default ValueSet if emptyBrand = Generic
Static ValueAlways set valuefeed_name
Copy FieldCopy from fieldsale_price → price
LookupMap via tableCategory mapping

Item Filters (Conditions)

By default, rules apply to all items. Conditions restrict rules to specific items.

Condition Operators

OperatorDescription
EqualsExact match
Not EqualsDoes not match
ContainsSubstring
Not ContainsExclusion
Starts WithPrefix
Ends WithSuffix
Greater ThanNumeric >
Less ThanNumeric <
Greater or Equal
Less or Equal
BetweenRange
Is EmptyNo value
Is Not EmptyHas value
Matches RegexRegex match

Condition Logic

  • ALL – all conditions must match (AND)
  • ANY – at least one condition must match (OR)

Common Use Cases

1. UTM Tracking Parameters

Append campaign tracking to product links.

2. Channel-Specific Price Markup

Add a 10% margin for a specific channel.

3. Title Enhancement

Concatenate multiple fields into optimized titles.

4. Clean HTML Descriptions

Remove HTML formatting from descriptions.

5. Default Shipping Label

Set free shipping for orders over $50.

6. Stock-Based Availability

Update availability based on inventory.

7. Category Mapping

Map internal categories to Google Shopping taxonomy.

8. Ensure Minimum Price

Prevent $0 prices from being exported.


Best Practices

  • Test rules before exporting
  • Rule order matters — cleaning before enhancement
  • Use item filters selectively
  • Prefer global rules for universal logic
  • Start simple and iterate

Tips

  • Drag rules to reorder execution
  • Duplicate rules for similar use cases
  • Preview results before exporting
  • Rules are non-destructive — source data is preserved