PPCDATAFEED

How to add UTM parameters to product links in a feed

A rule with Combine or set value on link: the link plus ?utm_source=google&utm_medium=cpc. An Otherwise branch handles links that have a “?”.

UTM parameters tell Google Analytics which channel and campaign brought the visit. Adding them in the feed tags every product at once, without touching the store.

  1. Open the data source, go to Rules and click Add rule - for example “UTM for Google”.
  2. Under When pick link Contains ? - links that already have parameters.
  3. Under Then pick link, choose Combine or set value and in Value put together link and the text &utm_source=google&utm_medium=cpc&utm_campaign=shopping.
  4. Click Otherwise for all other links: link with Combine or set value - link and ?utm_source=google&utm_medium=cpc&utm_campaign=shopping.
  5. Check Preview changes - every link should have exactly one ? - then Save rule.
Rule “UTM for Google”: if link Contains ?, then link = link + &utm_source=google&utm_medium=cpc&utm_campaign=shopping, otherwise link = link + ?utm_source=google&utm_medium=cpc&utm_campaign=shopping

Example

Preview changes of the 3 links that already had a “?”: the UTM parameters are added after an “&”, for example …/el-5008?colour=warm&utm_source=google&utm_medium=cpc&utm_campaign=shopping
  • https://demo-store.example/products/sh-1001 → https://demo-store.example/products/sh-1001?utm_source=google&utm_medium=cpc&utm_campaign=shopping
  • https://demo-store.example/products/el-5008?colour=warm → https://demo-store.example/products/el-5008?colour=warm&utm_source=google&utm_medium=cpc&utm_campaign=shopping
A rule changes the link for every feed of the data source. For different UTMs per channel, set the link in each export's Fields instead (the link field and the UTM text in one box) - see Create a feed export.

Still stuck? Write to info@ppcdatafeed.com - we answer ourselves and can set it up with you.