IF Statement in Theme.liquid When on page /apps/trackorder

Highlighted
New Member
2 0 0

3rd party Shopify apps use our theme.liquid to render their header tags.

I want to use something like this on specific 3rd party apps we use

essentially when the url is /app/trackorder I want to insure specific apps aren't index. What's the best way?

{% if handle contains 'page-handle-you-want-to-exclude' %}
<meta name="robots" content="noindex">
{% endif %}

0 Likes
Highlighted
New Member
2 0 0

Any ideas how I can have code when the URL is /apps/?

0 Likes