Questions tagged [google-amp]

The AMP Project is an open-source initiative aiming to make the web better for all. The project enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms.

101 questions
13
votes
2 answers

ASP.NET: Sign URL with public and private keys from files

I want to update Google AMP cache, so I need to sign an URL as described here. My main issue: I'm struggling massively with how I should get my certificates/keys and how to include them in my code below. I just can't find any all covering…
Adam
  • 6,041
  • 36
  • 120
  • 208
5
votes
2 answers

how to add Facebook's pixel into Google's AMP?

For the time being, it appears that no one at Facebook nor Google have added Facebook tracking pixel into amp-analytics yet. Does anybody here knows how to do it ? sample code or github is preferred. thank you very much
diego
  • 155
  • 2
  • 8
4
votes
1 answer

Prevent body scrolling when Overlay is shown in AMP

Is there any way I can disable scroll on in AMP when an overlay is shown? This is what I've tried: .noscroll { overflow: hidden; } .overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color:…
adnanyousafch
  • 1,172
  • 9
  • 26
3
votes
1 answer

AMP show loading indicator on Show More

I followed this example to implement a "Show More" action on AMP. It's working great but when I click on the button it doesn't display anything to give the user the idea that the page is loading. My backend isn't particularly fast and so it looks…
moondaisy
  • 4,303
  • 6
  • 41
  • 70
3
votes
3 answers

How to handle CORS for AMP

I have a page that uses amp-list to dynamically list products using a JSON file. I have my directory structure as follows: *root*/amp/product-name/ and then within the product-name directory I have an index.html with the AMP HTML and a products.json…
Patrick
  • 374
  • 4
  • 21
3
votes
2 answers

Automatically switching views for AMP in ASP.NET MVC

I want to create and AMP version of my website in ASP.NET MVC using .NET Core 2.0. Previously I had done some work with DisplayModeProvider instances in tha past on .Net framework, but that does not seem to be an option in .NET Core. What I want to…
kieszen
  • 33
  • 7
2
votes
1 answer

Anchor tag in AMP page reloads entire page

I have the following hyperlink on an AMP page, it's a link to an anchor further down on the page: party The anchor tag is present too: Now when the user is on URL…
Adam
  • 6,041
  • 36
  • 120
  • 208
2
votes
0 answers

Amp page implementation with same page

I'm trying to implement AMP page with shopify. Shopify does not give server side code. It is a hosted solution. So i can not redirect my page from server side unless it gives me 404 error. Let's suppose I have this product…
Picks Prabhakar
  • 335
  • 1
  • 3
  • 13
2
votes
1 answer

Google AMP Story Analytics, using Segment

I am trying to use Segment to track analytics on Google AMP Stories. I want to track what page of the story a viewer taps to, and other ways they interact with the story. I am using Segment's AMP Mobile Source and followed the Documentation. I…
omihomii
  • 31
  • 1
  • 4
2
votes
0 answers

Auto-Complete in AMP with POST method

I have a problem in AMP page. I want to build a page with AutoComplete list selection like jquery AutoComplete. Amp give Example for Autocomplete Selection. But there is a problem. I have API with POST Method in this example I don't know how to set…
vipin
  • 2,374
  • 1
  • 19
  • 36
2
votes
0 answers

amp-list from remote location?

I would like to use amp-list on a website that is otherwise valid AMP to avoid using an amp-iframe embed with JS. I just finished reading the cors docs by Google AMP at https://www.ampproject.org/docs/fundamentals/amp-cors-requests and am still…
Chris A.
  • 21
  • 2
2
votes
0 answers

Will using canonical AMP make it faster even for desktop visitors?

If you convert your site or web property (app or whatever you want to call it) to go full AMP i.e. no longer keep a canonical version and a separate AMP version, is that site going to end up on Google's fast CDN as is the case when you AMP your…
Adergaard
  • 760
  • 10
  • 24
2
votes
0 answers

AMP-Story does not allow me to add more than 15 pages

I've been playing around with AMP-stories the last few days and I started working on a project with them but I run into an issue. After: The following pages are not visible. Yes the files work. They work in the…
Tony
  • 2,382
  • 7
  • 32
  • 51
2
votes
2 answers

How can I format a number as money in AMP-html?

I have some arbitrary number, which in my use-case is between 1,000 and 1,000,000. I need to format this value into a display value, in which it's being displayed as money. I.e 1000 -> "$1,000", 100000 ->"$100,000", etc. The problem I'm having is…
2
votes
0 answers

AMP - amp-list Out of Viewport loading

this is my question: If I load an AMP-list it will not load anything out of the viewport, but my whole intend is to have a overflow-y possible table. As you can see in the following gifs I tried out every possible layout setting. How it should look…
Mar
  • 1,129
  • 1
  • 13
  • 18
1
2 3 4 5 6 7