Rules

Rule Commands

  • Set
  • Exclude
  • Replace

[G] Google field

[D] Data field (your data)

Set

Common examples:
Set [G]id to [D]shopify_us_id
Set [G]title to [G]title + [G]size + / + [G]color
Set [G]brand to MyBrand when [G]brand blank
Set [G]custom_label_0 to products over 75 when [G]price > 75
*Text in rules is case sensitive

Exclude

Common examples:
Exclude when [G]price < 10
Exclude when [G]brand contains nike
Exclude when [G]title contains nike and [G]price < 10
*Text in rules is case sensitive

Replace

Common examples:
Replace
"free shipping" with "" in [G]description
Replace "Elegante" with "nike" in [G]title
Replace "https://mystore.myshopify.com" with "https://www.mystore.com" in [G]link
*Text in rules is case sensitive

Category

Set [G]google_product_category to [C]Arts & Entertainment > when blank
Set [G]google_product_category to [C]Apparel & Accessories > Shoes when [D]product_type contains shoe
*Text in rules is case sensitive

Operators

'<', 'less than',
'<=', 'less or equal to',
'>', 'greater than',
'>=', 'greater or equal to',
'=', 'equal to',
'!=', 'not equal to',
'contains', 'does not contain',
'blank', 'not blank'

'+' is used to join fields together with a space
'!+' is used to join fields no space