App Proxy - Set page title and meta description

Shopify Partner
7 0 1

Is it possible to set the page title and meta description through an app using the frontend app proxy?

 

This is for SEO purposes so I can't just do it with JS after the page has loaded.

 

I found some threads saying it wasn't possible but they were 3+ years old. I'm just wondering if anything has changed?

 

Thanks!

0 Likes
Community Manager
Community Manager
570 34 65

Hi @Andrew-W,

 

A framed page cannot affect the parent page, so this isn't possible still. You would need to use the page API (product API if it's products, collection API if it's a collection page, etc.) to change the SEO details.

0 Likes
Community Manager
Community Manager
570 34 65

I just realized how incorrect my response was. Whoops! Of course the APIs I mentioned won't be helpful for you to set the SEO details, as it's an app proxy page (/a/something, for example) rather than a Shopify object page. I believe you could do this through editing the theme using liquid. Let me look into it a bit and get back to you.

 

Cheers,

0 Likes
Shopify Partner
7 0 1
Hi @Busfox,

I acctually have a solution now! I'm not at my computer at the minute but I will detail it tomorrow for anyone that finds this thread.

Thanks,
Andrew
0 Likes