2,528 questions
0
votes
0
answers
99
views
Why is isMaster Assignment true for all frames of the same ad type with amp-ads?
I have been working on vendor module for amp-ads and I'm trying to understand the concept of isMaster.
If I have multiple instances of my ad type tag on a page and in my vendor file I have something ...
0
votes
0
answers
108
views
amp-list failed to retrieve data from my api endpoint
I'm testing out AMP for email with this code:
<amp-list
src="https://nail-ai.com/api/misc/test-amp"
layout="fixed-height"
height="80"
>
<template type=&...
-1
votes
1
answer
222
views
Largest Contentful Paint element
<li>
<a href="/home/articles/how_to_foo">How to foo</a>
</li>
PageSpeed Insights says the above element has
Largest Contentful Paint element 3,220 ms
...
1
vote
0
answers
85
views
AMP Web Story iframe not allowing clicks despite permissions being set
I have created an AMP web story that includes a game embedded on one of the pages using an <amp-iframe>. The game resides on an external website, and I have already provided the necessary ...
3
votes
0
answers
452
views
AMP page domain mismatch
A few days ago, I received an email notifying me that an unknown user gained access to my Search Console using an unused token. Since then, I’ve been experiencing various errors, and my pages have ...
1
vote
0
answers
179
views
How to Integrate MS-Clarity in AMP Pages in 2024?
I have developed a website entirely using Accelerated Mobile Pages (AMP).
I recently discovered Microsoft Clarity, but their installation instructions do not cover AMP, even for manual installation.
I ...
-2
votes
1
answer
193
views
Integrate Google Maps static API with email AMP [closed]
We would like to submit a form in email created with AMP4EMAIL to Google Maps Static API and retrieve an image to be displayed in the email according to the form submission.
How can CORS requirement ...
1
vote
0
answers
106
views
How to pass parameters in the body of an xmlHttpRequest post?
I am trying to log page views to my own server using <amp-analytics>, and would like to include various features of the page (title, language, page type and other custom items) as variables in ...
0
votes
1
answer
195
views
Create a countdown using AMP for Email
Did anyone have a success with building a countdown using AMP for Email?
In the AMP documentation I've found this component. Unfortunately it cannot be used in AMP for Email:
This was confirmed by ...
0
votes
1
answer
177
views
Set state after amp-list loads / set state using amp-list data
I am loading a list of options from our backend in an AMP email, and we are storing the selected option in a state variable which is set as the value of an <input> element. We would like to ...
0
votes
1
answer
126
views
AMP Mustache Template {{name}} Not Rendering Data from JSON Response
I'm working on an AMP page where I'm using amp-list with a Mustache template to display data from a JSON response. The JSON response from the server is correct and includes the name field, but the {{...
1
vote
0
answers
90
views
AMP buttons by location
I'm working on a project (AMP website) where I have buttons that should only show up at certain locations and be hidden at other locations. However, I'm struggling to make each of the selected ...
0
votes
1
answer
411
views
how can i set state of amp-list and submit the form with that state
<!doctype html>
<html ⚡4email data-css-strict>
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script&...
0
votes
1
answer
73
views
AMP-Youtube not rendering sometimes until page is force-reload
I'm using AMP-Youtube to integrate videos on my website, and it works like a charm most of the time.
For some reason, sometimes the videos don't show up at all; when it happens, no video on the page ...
1
vote
0
answers
113
views
vast / vpaid video can run amp-video ads?
how can I use the vast / vpaid tag advertisement with the amp-video tag or AMP ads?
I have creted amp story with normal mp4 video by now want to run this with vast Tag
<!DOCTYPE html>
<html ...
0
votes
1
answer
108
views
how to set limit of visible elements with show more button in <amp-list>?
how should i use <amp-list> to parse json file but show limit number of elements of it on page, so that i can set up a show more button to load more elements? i use it to make a block with ...
0
votes
1
answer
117
views
How to make an exception for a template not to load on AMP in wordpress?
I have my web page full on AMP using too the oficial plugin. I use templates for my content, the template is used everytime someone makes a post. All the page is in AMP but if I want that just one ...
-1
votes
1
answer
200
views
How to play a hidden AMP-Audio on AMP-Image click on an AMP-HTML page (Full Page Example)?
How to play a hidden audio file, presumably via an AMP-Audio (<amp-audio></amp-audio>) component on a AMP-HTML page element click, specifically an AMP Image (<amp-img></amp-img>...
0
votes
1
answer
140
views
Local AMP HTML development on local server with address 192.168.x
I have a local web server sitting on 192.168.0.10
My AMP page looks like this:
<!DOCTYPE html>
<html amp lang="en">
<head>
<script async src="https://cdn.ampproject....
0
votes
1
answer
98
views
How to define attributes like font-size, padding for mobile version in AMP for email?
I tried to use media query to make the AMP email responsive, but looks like it isn't supported in AMP. However, I found out media="(max-width: 599px)" and media="(min-width: 600px)"...
0
votes
0
answers
122
views
Alternate page containing the canonical page tag on ghost with amp enabled
I have blog on ghost with enabled AMP - Google Accelerated Mobile Pages.
On page: https://preciselab.io/json-merge-patch I see
<link rel="canonical" href="https://preciselab.io/...
0
votes
1
answer
102
views
Can I persist the state of user input to AMP form upon email reload?
Say I have an AMP form embedded within a dynamic gmail. Is there a way to persist the state and show what the users inputted upon reload of the email without utilizing an amp-list component fetching ...
0
votes
1
answer
290
views
Adding FontAwesome to style amp-custom
I am trying to put the source code for FontAwesome:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
in section ...
0
votes
1
answer
131
views
How To Make a Youtube Video in AMP Website Start With Sound
Im making an AMP website and trying to use Auto-played Youtube video in my website, but the video will play muted from the start unless visitor interact with the video. So how to make it start with ...
0
votes
1
answer
373
views
How to display reply list using amp-list component
Im writing an AMP email and trying to use amp-list to display a list of replies. I'm having trouble setting the height of the amp-list based on the results returned from my src endpoint (they can be ...
0
votes
0
answers
162
views
Images are overlapping the header in AMP (CSS problem)
I want to ask you for help with adapting AMP version of website: https://imperiumromanum.pl/en/roman-society/amp/
I am able to make fixed HEADER bar by adding css code
nav.amphtml-title {
position:...
1
vote
1
answer
201
views
How can I view the Amp-State for a given component?
The AMP playground has a nifty tool to look at the Amp-State.
Look at the State Tab in the playground:
https://playground.amp.dev/?url=https%3A%2F%2Fpreview.amp.dev%2Fdocumentation%2Fcomponents%2Famp-...
0
votes
0
answers
215
views
How to access AMP.state in a React Component
I'm trying to create an AMP compatible component that will show additional content when a button is clicked:
import React from 'react';
const MyButton = (props) => {
return (
<div>
&...
1
vote
0
answers
209
views
create AMP on Remix
The service we build needs to support google AMP(https://developers.google.com/amp). We know that Next.js has built-in support for AMP, but currently, it seems Remix does not support it.
Creating AMP ...
1
vote
0
answers
123
views
gmail not posting amp form
I'm making a dynamic email with two forms, the first of which has one button and a hidden field with a predefined value (the stem) that will be posted to the backend and send the OTP of a specific ...
0
votes
1
answer
608
views
Nextjs: how to integrate google analytics in amp pages
i'm wondering how can i integrate amp-analytics with Nextjs project.
I saw here that amp-analytics works with GA4
I couldn't find anything regarding amp-analytics and nextjs online.
I'm wondering if ...
-1
votes
1
answer
135
views
How To Disable Browser Back Button In Custom AMP Page?
last time i put this custom disable browser back button (Javascript) in my AMP websites page ( websites ).
I use this script to reduce the bounce rate in seo. But after requesting indexing in google ...
1
vote
1
answer
285
views
Disable anchor ads at the top of your page on amp-auto-ads
Here an instruction https://support.google.com/adsense/answer/7478225?hl=en for non amp pages.
I couldn't find anything for amp-auto-ads.
Does anyone have experience with this?
1
vote
0
answers
78
views
Unable To Resolve issue Getting in Next 12 AMP
<amp-list
height="277"
layout="fixed-height"
src="${relatedArticlesUrl}"
items="."
single-item="."
>
<div placeholder>Loading ....
1
vote
0
answers
162
views
using amp-list, how to access property outside of items array in JSON response
I am avoiding AMP-script for the purpose of learning to use the web-components well.
Using the amp-list component to search OMDb, I get back data with this structure (abbreviated for display):
{
&...
0
votes
1
answer
863
views
AMP story close button
I would like to add a close button to my AMP stories. I don't want to use amp-story-play if it's possible. I checked the source code and I found a close button, but it's hidden.
...
<button class=&...
1
vote
1
answer
456
views
Navigate in amp-script
I have an input select that sets a state "selectedStateId", an amp-autocomplete that sets "selectedCity", and finally an input text as a search bar that sets "inputTerms"....
1
vote
0
answers
324
views
AMP custom script / passing dynamic values from php to amp-script
The intention is to add an analytics API script to the AMP version of a set of pages in the website.
To do so, I am trying to write a custom AMP script in which I am receiving a dynamic $post_id value ...
1
vote
0
answers
73
views
AMP Project: Develop safeframe solution
In #amp-html project I'm going to add a possibility to my adserver to deliver ads inside a safeframe. Is there any "ready-to-use" solution in this project? I can see some "safeframe&...
-1
votes
1
answer
156
views
How do I use JavaScript loop and save result in local storage on AMP PAGES
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (links[i].href.substr(links[i].href.length - 4) == '.pdf') {
linksa1 = links[i].href;
...
0
votes
1
answer
548
views
Get window URL in AMP
I have been trying to use the window.location.search inside my custom javascript to get the page URL in AMP page but I am getting empty field.
Is there any way/function by which I can get the page URL?...
0
votes
1
answer
101
views
How to render amp-ad with 50% viewport?
Is it possible to configure or implement viewport check and inside amp-ad?
Only solution that I could reach was data-loading-strategy="0", but this approach loads ad on 0% ~ 1% viewport...
0
votes
1
answer
90
views
How can I click on full height like the green box to go to the next Slide in AMP version (AMP Carousel)
enter image description here
I am looking for a way on the Internet and I have not yet found the possibility of moving by pressing up or down the arrow for (AMP Carousel), as shown in the image in ...
0
votes
1
answer
253
views
No adsense show after AMP consent
I use this AMP Consent sample.
After the user confirms the consent no Adsense Ads are shown. If the user dismiss the consents, Ads are shown.
Is the any settings in the Adsense UI that should ...
-1
votes
1
answer
463
views
Custom Javascript in AMP stories
Are there any guidelines, tutorials for developers who wants to create custom JavaScript components inside amp stories? Amp documentation shows AMP script is not applicable for amp stories. Simple ...
0
votes
1
answer
61
views
AMP web development amp-list won't highlight selected option
Please assist me. I am trying to make an AMP dropdown list that opens another list when selected. However, I don't know how to set the css on the outer list button to look active(selected). I don't ...
1
vote
1
answer
196
views
AMP for Email Form Component - Is it possible to redirect user to web page?
When using the AMP for Email form component, is it possible to redirect the user to a web page when one clicks the form submit button within the email?
0
votes
1
answer
305
views
Using amp-selector inside amp-carousel
I am trying to render multiple images using amp-selector inside amp-carousel but the images are not loading. If I try to have amp-carousel inside the amp-selector tag then the images are rendering but ...
1
vote
1
answer
49
views
AMP get dimensions
How to get dimensions with AMP?
In react I can use ref.current.offsetWidth and Heigth, but I don't find a way to get it with AMP. I also tried to use getElementById but every time it's undefined.
1
vote
0
answers
71
views
After login with auth0 I need the JWT from a AMP page
I am using AMP google pages technology. For logging in, I am using auth0.
What I need to do is after logging I need to access the JWT that comes from the current login and extract an attribute from ...