PHPCow Help

Full Version: Loading Google Analytics?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Has anyone loaded this type of code on their homepage to track statistics?
Need some direction
I personally don't use google analytics anymore, but you should be able to install just as on any other site (if you've used it before)

Open the index page, and add the code to bottom of the page (I believe it says right before the closing </>body tag) but double check that for sure.

B the way...welcome to the board! Please go to the introductions and let us know alittle bit about you..and your site you have up or are working on Welcome
Thanks for the quick update. I am about to launch http://www.positiveamericanews.com once I work out a few bugs. Google Analytics is the most common stats tool used by those who track stats
If you can start from scratch with the directions for adding code, I am a novice at this process
Your expertise is most appreciated and welcomed. I will need to do a few more things like add
Archives to my link at the top of my page, add a section just for Sponsored Links....
Your site is looking awesome! I love the logo. Yes, I used google analytics back when I started online, now I just have my own server stats that I use. Let us know if you have any other questions!

Kaos Wrote:
Your site is looking awesome! I love the logo. Yes, I used google analytics back when I started online, now I just have my own server stats that I use. Let us know if you have any other questions!

Looking for simple step-by-step tutorial help to load code to homepage and other sections
of website? Any advice or assistance?
Most code needs to be added by way of "Functions", under the Templating menu.

This is an area that needs much better explanation from PHPCOW, as the documentation is pretty poor.
Thanks for your response to my question.

Best wishes
To add Google Analytics:

Open "Templates" and select "Create New Function"....

Function Name: _custom__google_analytics
Function Description: Google Stat Tracking
Function Body: <put the code given to you by Google in here>

check the "Rebuild Template" box, then save


Depending on how you do your templates, you'll want to open the templates you want to include under Google analytics (some use the Footer template, some put it in each template, etc), highlight where you want to put the code, hit the "F" (function key) and it will put the code in the template for you (by way of the custom function you created)....save the template, and you are all done.
Sorry for the delay with responding to you, been a crazy weekend so far. Will try this and let you know how it went. Do you know anything about setting up Archives to link to my tab at
the top of my homepage? I have seen a few sites using a simple Archives monthly format to
log old articles, and it looks pretty simple.

Thanks again/ Thanks in advance for any other advice.
Pages: 1 2 3 4 5
Reference URL's