MyBB Community Forums

Full Version: Add Google Ananlytics/Adsense code in forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi

I have a forum http://forums.mailshayari.com

Could anybody please help me in letting me know where to add Google Analytics and Adsense cods...And what if I want to add private ads?

For the Analytics code, you can use this plugin: http://mods.mybb.com/view/google-analytics

As for the Adsense, what do do you mean by "private ads"?
You don't need a plugin for that, just put it in your headerinclude template.
Templates and themes > Templates > your theme > headerinclude
(2011-02-12, 10:49 PM)MarkW7 Wrote: [ -> ]Templates and themes > Templates > your theme > headerinclude
I dont think it can be added in headerinclude. Analytics code is added before </body> tag and I was not able to see this code anywhere in headerinclude.

2. Also, when I added Google meta data of site verification in headerinclude, beneath it, whole data wiped out when I saved that file.

3. Private Ads I mean if I want to add any paid Image Ad
(2011-02-14, 04:01 PM)Android-iPhone Wrote: [ -> ]
(2011-02-12, 10:49 PM)MarkW7 Wrote: [ -> ]Templates and themes > Templates > your theme > headerinclude
I dont think it can be added in headerinclude. Analytics code is added before </body> tag and I was not able to see this code anywhere in headerinclude.

2. Also, when I added Google meta data of site verification in headerinclude, beneath it, whole data wiped out when I saved that file.

3. Private Ads I mean if I want to add any paid Image Ad

1. It can be added in your headerinclude, however, I recommended that you add it into your footer template.

2. Your whole headerinclude template is empty now?

3. Please explain further. Do you mean you want a private image advertisement shown to only specific usergroups?
http://forums.mybb-plugins.com/Thread-My...ents-1-9-1

You can use that plugin for ads and things. It works very well.
(2011-02-15, 12:33 AM)Spencer Wrote: [ -> ]
(2011-02-14, 04:01 PM)Android-iPhone Wrote: [ -> ]
(2011-02-12, 10:49 PM)MarkW7 Wrote: [ -> ]Templates and themes > Templates > your theme > headerinclude
I dont think it can be added in headerinclude. Analytics code is added before </body> tag and I was not able to see this code anywhere in headerinclude.

2. Also, when I added Google meta data of site verification in headerinclude, beneath it, whole data wiped out when I saved that file.

3. Private Ads I mean if I want to add any paid Image Ad

1. It can be added in your headerinclude, however, I recommended that you add it into your footer template.

2. Your whole headerinclude template is empty now?

3. Please explain further. Do you mean you want a private image advertisement shown to only specific usergroups?

1. In footer template, I cannot see </body> tag. Could u pls let me know where to add the analytics code
2. headerinclude template--I cannot see it as empty. Pls if u cud be more clear
3. Private Ads I mean to say If any third party pays me some money and says that their ad should be on my website for say 1 month and they pay me say $10 for 1 month, where I place that ad and how?
just put it under the {$auto_dst_detection} in the footer template and you will be fine
Hi
Can anybody help me on this.
Pls see http://forums.mailshayari.com/Thread-Yeh...vie-Review
1)I want one 728x90 Adsense code in header. Ad should be centered.
2)One 336x280 Adsense code just after title of first post.
3)One 336x280 ads beneath first post.Ad should be centered.

And one link unit of Adsense (728x15) I want to be displayed in footer.

MyAdvertisemnets plugin is not working for me as it's unable to center ads.

Can anybody help me how to do this. I want to do manually by editing code
Pages: 1 2