I want to ask you some questions related to amp, please answer all the questions in simple language and if possible, explain me with screenshot or video.
1. I am trying to put auto ads of adsense on amp posts, I am being given two codes from adsense, one of which I have to paste in the <head> of the amp theme and the other in <body>, So please tell me where to paste those codes? Because in the theme panel I have got the normal head and body section but the head and body section of the amp theme could not be found.
2. I want to put adsense amp ads unit in my amp post so how to implement? (Apart from auto ads) and inside the amp ads unit, two types of codes are also given, where are those codes to be paste?
3. How to install google analytics code for amp? Do I just have to paste the google analytics tracking id in the amp analytics option?
please answer all the questions in simple language and if possible, explain me with screenshot or video.
Hi,
First please make sure that you have the mobile theme an amp plugin installed and activated and you’ll need to use one of these options from mobile theme -> http://prntscr.com/okbyin
1. The auto ads for amp need to be set in mobile theme in in amp ads -> http://prntscr.com/pt3bmw
Only one code is need to be set in theme panel, the other one is a standard code and is already add in our theme -> http://prntscr.com/pkwtzh also the code need to be set only in AMP ads -> http://prntscr.com/pkwum2
2. If you want to have more ads on amp you can set the amp ads in mobile ad section and these will be display on amp too -> http://prntscr.com/pt3ffj
3. In order to add the amp analytics code all you need to do is to set the code that you get in theme panel > mobile theme > amp analytics -> https://www.screencast.com/t/0WqKEVLN
Thank you!
1.- Can I only place the amp ads code inside the amp post or can put the non-amp ads code as well, and if I apply non-amp ads code in amp post then it will not have any bad effect?
2.- Do I have to paste only the Google Analytics tracking id inside the theme panel> mobile theme> amp analytics, or paste like this –
{
“vars”:{
“account”:”UA-123456789-1″
},
“triggers”:{
“trackPageview”:{
“on”:”visible”,
“request”:”pageview”
}
}
}
Hi,
1. Yes, only the auto amp ads need to be set in Amp ads -> http://prntscr.com/pt8ehb non-amp ads code can be set in mobile ads -> http://prntscr.com/pt8erb
2. Yes, the code need to be set like this -> http://prntscr.com/pt8dnp
Thank you!