As per google's recommendation we use following meta tag for android application indexing:


Example :

<link rel="alternate" href="android-app://com.example.android/example/gizmos" />

Here does the host_path necessarily be equal to my web host path?

Example if i have web urls like :

. . .

My alternate for app currently are:

<link rel="alternate" href="android-app://com.example.android/example/product-detail/product1" />
<link rel="alternate" href="android-app://com.example.android/example/product-detail/product2" />
<link rel="alternate" href="android-app://com.example.android/example/product-detail/product3" />

.. . .

Now my application get hosts as product-detail/product1,product-detail/product2 . . . and it parse that to get the product, make http call and render screen inside application.

I want my alternate to be of form

<link rel="alternate" href="android-app://com.example.android/example/product-detail/?params={product_id='1'}" />
<link rel="alternate" href="android-app://com.example.android/example/product-detail/?params={product_id='2'}" />
<link rel="alternate" href="android-app://com.example.android/example/product-detail/?params={product_id='3'}"

Does it have any seo penalty for having different hosts for android and web or that would not make any difference w.r.t seo and hence help us gain flexibility over the dev/maintenance of web to app linking as we can now pass whole data in json to app and then app can consume that without parsing the url.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.