Forum OpenACS Development: Adding Google AdSense tags to page header
Hi there, Adding a script library in the header of an OpenACS website, to support Google AdSense, would be a pretty easy task.
Amending /www/blank-master.adp, by adding the follwing chunk in the last line before head closure
... <script data-ad-client="ca-pub-86757473464" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> </head> ...
However, I was wondering how would I use
Being very specifically how would I pass the argument '... data-ad-client="ca-pub-86757473464"' through the ad_proc call.
Best wishes, I
Thanks for the tip. Yes, they work indeed.
However, I was looking for a standard approach to add new arguments to a ad_proc call.
Basically, I copied and pasted 100% of that ad_proc, then I added custom code to extend and support Google parameters. It worked beautifully!