google / physical-web

The Physical Web: walk up and use anything
http://physical-web.org
Apache License 2.0
6k stars 667 forks source link

Custom title and description of physical web notification #911

Open rakandy opened 7 years ago

rakandy commented 7 years ago

Hello, I want to push physical-web notifications for my sites created in Wix.com platform. However, doesn't matter what title and meta description I set up, all my physical web notifications shows up with the title and description from the homepage only. On Google search results or when the page is opened in the browser everything works great.

Homepage - https://www.digibeam.lt/ Site example I want to use for notifications - https://www.digibeam.lt/donutlab

Anyone have any ideas how to fix this? Thank you!

ferencbrachmann commented 7 years ago

Hey, does Wix let you control the Title / Description individually for each page?

mmocny commented 7 years ago

How are you adjusting title for https://www.digibeam.lt/donutlab?

When I curl that page, it has <title>Digibeam</title>

mmocny commented 7 years ago

When I visit that page, it looks like maybe you adjust title dynamically (with Javascript) after page load. PWS is not currently able to detect this type of modification.

rakandy commented 7 years ago

Thank you for replies. Yes I'm able to change page title and description (that shows up on Google search results) on wix.com site editor - screenshot below.

https://s23.postimg.org/r55z1fo17/dnlb.jpg

When I Inspect the page I see the correct title and description that was set on wix.com - screenshots below.

https://s18.postimg.org/sy1v0zz15/dnlb1.jpg https://s18.postimg.org/qurftbz89/dnlb2.jpg

However when I view-source:https://www.digibeam.lt/donutlab, only the homepage title and description shows up. Also, when I go to digibeam.lt/donutlab site I see the homepage title for a sec and then it suddenly changes to the one I've set in wix.com

Do you think I should contact Wix support for this issue? Or would it be possible to fix it by myself?

mmocny commented 7 years ago

I am not familiar with Wix, so I cannot comment. I will say that PWS currently will only use the initial page title as specified in the original HTML payload. (This may change, but I wouldn't wait for it).

If there are other HTML tags that PWS should be looking at, specific to search engine indexing, I would be open to suggestions. However, quickly looking at your page it looks like Wix is just dynamically updating page title after page load using javascript.

Perhaps you can find another section of the settings which is unrelated to SEO and related to page metadata?

craigahunter commented 7 years ago

Hi so just to clarify. If I have an eddystone url beacon for physical web pointing to a page within a site, it will still show the meta data for the home page/main web settings or can it be controlled to show the meta data (header, description etc) from each page? thanks