New installation -- latest version
This is the Adsense code that Google says to place between <head> and </head>
<script async src="..."
crossorigin="anonymous">
</script>
Phoca Site Plugin does a good job of getting it there.
Now what is supposed to go in the AdSense Code field in Phoca GAE? Your documentation image shows several lines of code, which I have not been able to find on Google. For your reference, I would have included that image if your system allowed for attachments.
Thanks
Google Adsense Setup - not displaying ads
-
- Phoca Newbie
- Posts: 2
- Joined: 21 Dec 2024, 00:42
- Jan
- Phoca Hero
- Posts: 48513
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Google Adsense Setup - not displaying ads
Hi, I don't exactly understand you question, can you be more specific?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 21 Dec 2024, 00:42
Re: Google Adsense Setup - not displaying ads
Look at the example code on your documentation page -- https://www.phoca.cz/documentation/89-p ... le-adsense.
If that is similar to what is supposed to be in my Adsense Code field, where does it come from? Google only provides
<script async src=" ...pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-..."
crossorigin="anonymous"></script>
which I understand goes between <head> and </head>. From your documentation it appears that more specific detail is required.
I hope that clarifies my question.
Russ
If that is similar to what is supposed to be in my Adsense Code field, where does it come from? Google only provides
<script async src=" ...pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-..."
crossorigin="anonymous"></script>
which I understand goes between <head> and </head>. From your documentation it appears that more specific detail is required.
I hope that clarifies my question.
Russ
- Jan
- Phoca Hero
- Posts: 48513
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Google Adsense Setup - not displaying ads
Hi, the code changes in time.
There are many different options, you can only add a code to head tag, e.g. with help of Phoca Site plugin: https://www.phoca.cz/phoca-site-plugin but you can add the code to some specific place on your site (module position). So such code - to control where the ads will be displayed on your site - then should be pasted to Phoca Google AdSense Easy module code.
It depends on your preferences - both codes - the one used in head or the one used in body of your site you will find in Google AdSense website.
Jan
There are many different options, you can only add a code to head tag, e.g. with help of Phoca Site plugin: https://www.phoca.cz/phoca-site-plugin but you can add the code to some specific place on your site (module position). So such code - to control where the ads will be displayed on your site - then should be pasted to Phoca Google AdSense Easy module code.
It depends on your preferences - both codes - the one used in head or the one used in body of your site you will find in Google AdSense website.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 28 Jan 2025, 01:50
Re: Google Adsense Setup - not displaying ads
Thanks for the information