0

I'm building a Shopify's app which suppose to add Schema.org rich snippets according to data which is remotely stored on my server. In order that Google's crawler will actually analyze this snippets, they must be loaded during the page load, and not dynamically by some JavaScript.

Any suggestions if / how can I do something like that?

vovafeldman
  • 585
  • 10
  • 17

1 Answers1

0

Take a look at modifying an existing theme on their documentation page.

You could also try assets, based on this answer.

Community
  • 1
  • 1
girasquid
  • 15,121
  • 2
  • 48
  • 58
  • The data on my server is dynamic, which means that if I want to use assets to modify themes, than every time that the data is changing I would need to call Shopify's API. In addition, the data is different for every Product, but there is only one liquid file for product. So I would have to inject all products data into the product.liquid and add a 'switch/case' inside the liquid. I thought about this before, but I felt that it's probably not the best practice. – vovafeldman Jan 10 '13 at 22:22
  • Maybe check out the App Proxy mention in that answer - past that I think you might be out of luck. – girasquid Jan 10 '13 at 22:23
  • From what I've read in Shopify's documentation, App Proxy is good for adding new pages to the store under the same domain, not modifying existing ones. Am I right? – vovafeldman Jan 10 '13 at 22:27
  • It seems that way - but if you were to make it so that instead of loading the default product pages they loaded your (proxied) pages, you could get your content into the page on the load. – girasquid Jan 10 '13 at 22:30
  • Interesting... The things that bothers me is that I'll have to override all the links to the product page in all the template files. Is there any easy way to do it? – vovafeldman Jan 10 '13 at 23:04
  • Not that I'm aware of, other than modifying their theme. – girasquid Jan 10 '13 at 23:06
  • 1
    Be aware that if you choose to run your shop off the App Proxy, your shop will only function as fast as your proxy. So, if you have a busy shop, you best be having a muthatrucking fast server. – David Lazar Jan 11 '13 at 02:28
  • I'm still looking for alternative solution - there must be something else that we are missing. @girasquid thanks for your help anyway! – vovafeldman Jan 11 '13 at 23:17