Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > General Support > Topic : Adding Google Analytics Codes

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team

1


Threaded Mode | Print  

 Adding Google Analytics Codes (17 Replies, Read 17499 times)
B-JuaN
Group: Member
Post Group: Newbie
Posts: 5
Status:
Hi there,

I was just wondering how i would go about inserting my Google Analytics account tracker code into my site?

Thanks a bunch... PHP IS SOOO CONFUSING!
IP: --   

Adding Google Analytics Codes
Cool
Group: Member
Post Group: Working Newbie
Posts: 85
Status:

No Risk...No Fun!
when i remember it right it has to be in the HEAD of the page(may i´m wrong)

if so then just open /themes/default/hf_theme.php

-----------------------
Blow Your Mind..........Smoke Gun-Powder | The best portal for SMF2
IP: --   

Adding Google Analytics Codes
B-JuaN
Group: Member
Post Group: Newbie
Posts: 5
Status:
Apparently (according to google) you need the code IMMEDIATLY BEFORE < /body > ... I put it there and it no work... I'll try the Head! Cheers
IP: --   

Adding Google Analytics Codes
B-JuaN
Group: Member
Post Group: Newbie
Posts: 5
Status:
Nope that doesn't work either  :P

GARR can anyone help me?

*Edit

If someone could create a mod or such for this or even a quick tut, i'm talking 4 lines...ie:
Open: dir/dir
Open: filename.php
Find: whatevercode
Ad your analytics code: above/below the code you find

I believe this can help EVERY member as Google Analytics is a very good way of seeing where your visitors come from (including referrers!)

Cheers


Edited by B-JuaN : November 12, 2007, 12:50 am
IP: --   

Adding Google Analytics Codes
pulkit
Group: Administrator
Post Group: Super Member
Posts: 2396
Status:
Yup put it in the ad space we have provided for

-----------------------
Board Image

AEF now featuring in Softaculous - Auto Installer : http://www.softaculous.com
Rate for AEF - http://www.softaculous.com/softwares/forums/AEF
IP: --   

Adding Google Analytics Codes
B-JuaN
Group: Member
Post Group: Newbie
Posts: 5
Status:
Beautiful.. Took longer than usual. But the tracking code has just been picked up.


Thanks for that.. I just figured the ad's code section would be for ads  :nerd:

Edited by B-JuaN : November 12, 2007, 9:15 am
IP: --   

Adding Google Analytics Codes
pulkit
Group: Administrator
Post Group: Super Member
Posts: 2396
Status:
So did u put it in the Ads Space we told u about ?

-----------------------
Board Image

AEF now featuring in Softaculous - Auto Installer : http://www.softaculous.com
Rate for AEF - http://www.softaculous.com/softwares/forums/AEF
IP: --   

Adding Google Analytics Codes
B-JuaN
Group: Member
Post Group: Newbie
Posts: 5
Status:
Yes i did.. Now to put adsense in there too  ;-D  Thanks
IP: --   

Adding Google Analytics Codes
pulkit
Group: Administrator
Post Group: Super Member
Posts: 2396
Status:
thats why we made it.
users can easily put it from the admin cp

-----------------------
Board Image

AEF now featuring in Softaculous - Auto Installer : http://www.softaculous.com
Rate for AEF - http://www.softaculous.com/softwares/forums/AEF
IP: --   

Adding Google Analytics Codes
opiates
Group: Member
Post Group: Newbie
Posts: 1
Status:
However when the code is added to the ads section it is way above the "body" tag with several links in between the goggle tracking code and the Body tag. These links in between are not going to being tracked by analytics with this type of setup...any ideas?
IP: --   

Please help Adding Google Analytics Codes
topptcorg
Group: Member
Post Group: Newbie
Posts: 5
Status:
It doesnt work for me I did put te code in header an the footer ad section but google wont recognize it.

Any idea anyone?
IP: --   

Adding Google Analytics Codes
Abhi-Abhi
Group: Member
Post Group: Newbie
Posts: 1
Status:
Help me...!! :(
In themes Setting Is i have to put adsense code with <BODY> </BODY> ??? Or i have to simply add adsense code in that 'ad code' coloumn????? :(  :??:
IP: --   

Adding Google Analytics Codes
Ccool4Me
Group: Member
Post Group: Newbie
Posts: 4
Status:
Hi there

>>> Yup put it in the ad space we have provided for ?

Where is the "ad space" ?

in index.php in the default theme or in the admin on-line interface ?

It is to put the Google Analytics code but where ? :+)

Thanks for your attention

Cheers
Ccool4Me

Edited by Ccool4Me : February 17, 2013, 3:41 pm
IP: --   

Adding Google Analytics Codes
cristrixy
Group: Universal Moderator
Post Group: Working Member
Posts: 211
Status:
cpanel theme settings  header

insert this script:

Quote
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'YourAccountNumber']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>



-----------------------
:D
IP: --   

Adding Google Analytics Codes
Ccool4Me
Group: Member
Post Group: Newbie
Posts: 4
Status:
>>> cpanel theme settings  header

What do you mean ?
cPanel ????

I need the name of the file where to insert the Google Analytics code.

Thanks
Ccool4Me
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Members who read this topic
, jlhaslip, alkutob, mafians, FiwiPITO, Ivan, CJack, Pollox, mosc63, scoobydamo, sagrma, Speljohan, WonderMike, opiates, Spiritwarrior, Rad_Hazard, Dormelchen, ReasontooBelieve, turknext, max1982, AKC, Mike_Ramey, kapoira2, VasiliyRS, devrim, skinin, waqarhassan41, zohiab144, aLbdigital, buddymike, velias, topptcorg, leighis89, cristrixy, aleesterdonald, hagay2386, Abhi-Abhi, haylau, jassicarich, asdcxz, forum121, stephencurran, Ottonall, bazranz, hasan7478, ABRHAM, 11minutes, gagews, ezinna, BeeBe, EJMcGinley, Randall, Ccool4Me, antros


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is August 25, 2019, 9:17 pm.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.122