HtmlH1 (and other functions) Returns Blank

Hi,

Just as the title says, when I try to pull H1 and other tag values from Staples Canada, they return blank.

Kevin

Works for the pages I've tried:

Most likely the page in your example does not contain an H1 tag

Hi,

This is the H1 tag from your example.

<h1 itemprop="name" class="product-title">
  <span id="product-2173603446913" data-handle="2971730-en-gry-mattr-words-85-x-85">Gry Mattr Words, 8.5" X 8.5"</span>
    </h1>

This is the H1 tag from my example.

<h1 class="collection-hero__title noTag">
          HP OfficeJet Pro 8710 Ink Cartridges
        </h1> 

Is there a difference between how the tags are wrapped that's make it work for you and not me?

Kevin

I don't see the H1 tag in the HTML so it might be that SeoTools use different request headers compared to viewing in browser, which renders different responses.

Please provide link to the pages, it is very annoying having to write URL based of your screenshot :slight_smile:

This is the one that I can't get the H1. The value that I'm looking to pull is HP OFFICEJET PRO 8710 INK CARTRIDGES.

https://www.staples.ca/collections/officejet-pro-8710-all-in-one-3468

This is the one from your example.

https://www.staples.ca/products/2971730-en-gry-mattr-words-85-x-85

Thanks, the H1 tag is created via javascript and is not present in the initial HTML (which Seotools looks at). A workaround is to use the PhantomJS Connector: