AMP

Posted in: Newspaper
Post count: 494

Hi,

1/ I copy/pasted the standard script of Analytics in the AMP Analytics field. But my script doesn’t look like your Json format. Will it be ok?

2/ I set up the AMP ads (Adsense) and so I copied their script in your “AMP Ads” field. But Google provides me with 2 scripts, one for the head, one for the body. I copied the head one. What am I supposed to do with the body one?

Thanks

Post count: 20688

Hi,

1. If you are referring to the AMP analytics field provided in the mobile theme section, the code has to be of this form – http://prntscr.com/o7avde
So if your initial code looks like this – http://prntscr.com/o7axbr enter just the highlighted part of the code, it should work fine.

2. No need to enter the header script code, it will be added automatically. Simply enter the AMP auto ads code in the provided section. Example – http://prntscr.com/o7ayvx
The ads should appear after a while.

Thanks

Post count: 494

Brilliant! Thanks Simion!
One last question: I chose to use the mobile theme for “Mobile + AMP”. So all this AMP set up (analytics and ads) won’t be used, is it?

Post count: 20688

Glad it helped. With the mobile theme + AMP the analytics and AMP ads will be loaded.
You can test the AMP version by adding /?amp at the end of the URL, while using the browser inspector mobile emulator for example – http://prntscr.com/o7rzm1
The auto ads should appear when testing with the mobile emulator, they may not appear while testing on desktop.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.