Remove Line Item Props

Learn how to hide AnyTrack tracking parameters from the Shopify cart display. Follow these steps to remove hidden line item properties from your cart template so customers do not see tracking data at checkout.

📘

Note

Since this issue is not directly related to AnyTrack and affects many stores, Shopify provides a helpful guide that gives instructions on how to hide all hidden parameters from your store.

  1. Go to Theme actions
  2. Edit the code
  3. Select the template: cart-template.liquid
  4. Search the code for the string:
{% unless p.last == blank %}
  1. Select it and replace it with the following string:
{% assign first_character_in_key = p.first | truncate: 1, '' %}
{% unless p.last == blank or first_character_in_key == '_' %}
  1. Save the code, close the editor.