Hello, I want to insert Google Admobe to my website edu3d.co
It requires to insert one peice of code into tag.
How to do that?
Thank you!
sharkdeng wants to add Google AdMob code to the <head> tag of their website, edu3d.co. Qursch suggests creating a custom component and adding HTML to the <head> tag.
sharkdeng finds a helpful post on meta.discourse.org that explains how to add custom JavaScript to the <head> tag and why scripts in <script> tags might disappear.
After setting up a customized <head> setting, sharkdeng verifies that the script appears in the page source but is waiting for 2 weeks to see if Google AdMob detects it. They also plan to add Google Analytics to their website.
Qursch suggests that the issue might be due to the script’s source (src) being different from what was added manually. sharkdeng confirms that when adding a script, Discourse converts it into a theme-link, which might not be accepted by Google AdMob.
sharkdeng asks how to verify that their Google AdMob and Google Analytics settings are correct, and Qursch suggests telling Google specifically what to look for.
sharkdeng shares screenshots of their AdMob and Analytics pages, as well as the scripts in their page source code, and also mentions using the Discourse Ad plugin to add ads to their site.
Hello, I want to insert Google Admobe to my website edu3d.co
It requires to insert one peice of code into tag.
How to do that?
Thank you!
You should be able to create a custom component, then add HTML into the head tag.
Hello, after looking for ‘ + discourse’, I found this post is really helpful!!
It also explains why script in would disappear and discourse support Google Analytics.
I set the customized setting according to the following instruction https://meta.discourse.org/t/custom-javascript-in-head-disappear/144356/3 , Google Admob says it cannot detect my code now, but I found the script in page source. So I am gonna wait for 2 weeks to see what happen. Also, I am gonna add Google Analytics to my website.
When you find your script in the page source, is it’s source (src) different from when you added it yourself? If so, Google Admob may be looking for the wrong script.
If it is just a src={link} in , then this line of code is same.
If it is script, then discourse will convert it into a theme-link. This line of code is not same.
Not sure If Google Admob will accept this.
How to know if my Google Admob and Google Analytics are setting correct? I’ve done them both.
Yes, I know.
That is why I suggested that you should see if you can tell Google specifically what to look for.
I got this page for Adscene (Admob is for mobile)
This are the scripts in my page source code
And I got this page for Analytics
I add found this GitHub - discourse/discourse-adplugin: Official Discourse Advertising Plugin. Install & Start Serving Ads on Your Discourse Forum · GitHub to get this effect