AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
2.6K members online now
2.6K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

AMP error of missing href for a tag when href is present and well constructed

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am implementing new AMP pages for our site.  But before roll out I am testing on a demo site.  I an currently getting an error that there is a missing href for a anchor tag.  I ponly have one anchor tag on this test page and the href is present and well formed.

 

Error:

validator.js:364 https://demomobi.thestreet.com/amp/story/13666296/1/u-s-economy-adds-255-000-jobs-in-july.html:275:4... Missing URL for attribute 'href' in tag 'a'. (see https://www.ampproject.org/docs/reference/spec.html#links)

 

Link html:

<a class="logo logo-header__logo" href="https://demomobi.thestreet.com/">
<amp-img src="//stage-tst-static.s3.amazonaws.com/assets/thestreet-ngbeta/demo/2862/img/logo_tst-1cb277d6a15a862f60d473a49043b423.svg" width="80" height="20" class="-amp-element -amp-layout-fixed -amp-layout-size-defined -amp-layout" id="AMP_1" style="width: 80px; height: 20px;"><img amp-img-id="AMP_1" class="-amp-fill-content -amp-replaced-content" width="80" height="20" src="//stage-tst-static.s3.amazonaws.com/assets/thestreet-ngbeta/demo/2862/img/logo_tst-1cb277d6a15a862f60d473a49043b423.svg"></amp-img>
</a>

 

Demo url:

https://demomobi.thestreet.com/amp/story/13666296/1/u-s-economy-adds-255-000-jobs-in-july.html#devel...

 

Does anyone know why this error is being thrown it is keeping the pages from validating.

 

Also where in google analytics can I go to see if the extrUrlParameters are being passed?

Re: AMP error of missing href for a tag when href is present and well constructed

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭
nevermind I found it myself. It was an element injected by details.gsp that used an anchor tag as a trigger for js so I just changed the html element to a div

Re: AMP error of missing href for a tag when href is present and well constructed

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
But can anyone answer where I would go to see the extraUrlParameters that are passed in the google analytics call?