Wallpapers Forums Login

What Is A Common Include?

i just saw your post on google analytics, can you tell me what is meant by common include? i would appreciate if you can explain to me, once i have an explanation, it would help me get my webstie with google analitics. i will come back to check my post back to see if you have explained. thanks
Jane Wed Dec 10, 2008
i want to add google analytics to my wiki site but it says -"copy the following code block into every webpage you want to track immediately before the body tag.
if your site has dynamic content you can use a common include or a template". there is no body tag so i suppose i need a common include, but what is this?
wallpaperama Fri Oct 03, 2008
no problem, once you are confortable making your html web pages. i would recommend that you start looking into making webpages with php.

dont worry about that now. when you feel like you know about how HTML works, then start learning about php
gugle Fri Oct 03, 2008
ok, thanks for the help.
wallpaperama Fri Oct 03, 2008
ah!!!!!!!!!!!!!

ok, dont worry about it then, it doesnt apply to you.

just make sure that you put the javascript code on your html documents when you create each file
gugle Fri Oct 03, 2008
i use microsoft frontpage to make each page
wallpaperama Fri Oct 03, 2008
how do you make your websites?
gugle Fri Oct 03, 2008
what do you mean.??

dynamic?

i dont understand that
wallpaperama Fri Oct 03, 2008
do you use php or asp to make your websites?

or does your website have dynamic websites?
gugle Fri Oct 03, 2008
i dont know if i understand, this is what google says:

Tracking Code

Tracking Status Information
Profile Name: www.mysite.com
Website URL: http://www.mysite.com
Tracking Status:

Tracking Unknown (Last checked: PST.)
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.

Copy the following code block into every webpage you want to track immediately before the tag.
If your site has dynamic content you can use a common include or a template. Learn More
Use this tracking code to gain access to a wide range of exciting new features as they become available.
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-xxxxxx-x"); pageTracker._initData(); pageTracker._trackPageview(); </script>



Note: We recommend that you do not include both tracking code snippets together on any given page. Doing so might generate inaccurate report data. You can, however, migrate select pages of your site to the new tracking code while the legacy code remains on others.
What if I'm not the person who updates the website? Email the code above and instructions to your technical team or website administrator. Once they have added this tracking code to your website, click 'Check status' from the Analytics Settings page to find out if your website is being tracked and data is being collected.

Instructions for adding tracking.

i have read it like 10 times, but it doesnt make sense to me

wallpaperama Fri Oct 03, 2008
it just means you include a file..

for example, if you have php, the most common way to write scripts, is by including a header.php and a footer.php file. this is how the code woould look like:

include("header.php");

echo 'hello wallpaperama!';

include("footer.php");
?>


as you can see from my code example above, i have included two files on my code, one is called header.php and the second one is called footer.php. these two are my common inlcude files. this is a great way to make dynamic websites

the header.php contains my top navigation menu and the footer.php file contains my links at the botton, anything in between i write my content.

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5