How to know these things?

Status
Not open for further replies.

SoloDZ

Active Member
121
2011
13
0
Hello
i run a site and want to know how many:
-page views are there daily and monthly
-how many visitors per day and month
-how much is: direct traffic, referring sites and search engines
which software/site to use
regards
SoloDZ
 
24 comments
@KMS
If they're so accurate, why are they using Google Analytics?
PHP:
var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-710254-3']);_gaq.push(['_setDomainName','.trendcounter.com']);_gaq.push(['_setAllowHash',false]);_gaq.push(['_trackPageview']);_gaq.push(['_gat._anonymizeIp']);(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);})();
 
1) Create an analytics account first http://www.google.com/analytics

2) Then, Paste the following code near the bottom of your Web page html code. (You'll do this on each page for a traditional site *or* in your theme or skin html for a content management system). I place mine as near the closing html tag as possible so it doesn't get in the way of main content indexing.

<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._trackPageview();
</script>

3) Replace the "UA-xxxxxx-x" with "UA-[your tracking code]".

4) After about 24 hours, you should be able to view your traffic reports by logging in to your account at http://www.google.com/analytics

Note: When you're walking through the setup process, you'll receive a pre-formatted code snippet that already includes your individual tracker code.
source(s):
http://www.google.com/analytics
 
Last edited:
What type of script are you using or can you give us a link to your site which would help us in being able to direct you exactly how and where to add it.

And yes Google's is better
 
well i just checked your source code and you do have a head tag.. however paste the code right above the closing body tag.

code here
</body>
</html>
 
are you kidding me?

take a look at your source code man

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"><head>


<title>Your Way To Success - Homepage</title>


<meta http-equiv="content-type" content="en-gb" />


<meta http-equiv="keywords" content="SoloBux" />


<meta http-equiv="description" content="Your Way To Success" />


<link href="http://solobux.com/themes/GeN4/style.css" type="text/css" rel="stylesheet" />


<link href="http://solobux.com/themes/GeN4/css/colorpicker.css" type="text/css" rel="stylesheet" />





<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/jquery-1.4.2.min.js"></script>


<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/jquery.js"></script>


<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/jquery-ui-1.7.3.custom.min.js"></script>


<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/chilltip.js"></script>


<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/ads_pb.php"></script>


<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/principal2.js"></script>


<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/cb.js"></script>


<script type="text/javascript">


var count = "";


function limiter(){


var tex = document.myform.message.value;


var len = tex.length;


if(len > count){


document.myform.limit.value = ("Done!!");


return true;


}


document.myform.limit.value = count-len;


}


</script>








<script type="text/javascript">


var colormode = true;


var defaultcolor = 'blue';


var logo = false;





colormode=false;





logo = "logo.jpg";





</script>








<script>


var checkobj


function agreesubmit(el){


checkobj=el


if (document.all||document.getElementById){


for (i=0;i<checkobj.form.length;i++){ //hunt down submit button


var tempobj=checkobj.form.elements


if(tempobj.type.toLowerCase()=="submit")


tempobj.disabled=!checkobj.checked


}


}


}


function defaultagree(el){


if (!document.all&&!document.getElementById){


if (window.checkobj&&checkobj.checked)


return true


else{


alert("Please read/accept terms to submit form")


return false


}


}


}


</script>








<script type="text/javascript" src="http://solobux.com/themes/GeN4/js/color_changer.js"></script>





</head>


<body>


<div id="wrapper">


<div id="header">


<div id="logo" style="background-image: url('themes/GeN4/images/logo.jpg')"></div>





</div><!-- END Header -->





<div id="tabs">


<ul>


<li><a href="index.php"><span>Home</span></a></li>


<li><a href="ads.php"><span>Surf Ads</span></a></li>





<li><a href="ptsuads.php"><span>PTSU Ads</span></a></li>





<li><a href="faq.php"><span>FAQ</span></a></li>


<li><a href="adver.php"><span>Advertise</span></a></li>


<li><a href="contact.php"><span>Contact</span></a></li>


<li><a href="forum/"><span>Forum</span></a></li>


<li><a href="register.php"><span>Rgister</span></a></li>


<li><a href="login.php"><span>Login</span></a></li>


</ul>








</div><!-- END Navigation -->


<br /><br /><br />


<script type="text/javascript" src="themes/GeN4/js/index-cash.js"></script>


<div id="content" class="index" style="min-height: 600px;">


<div class="left">


<div class="members">


<h1>Welcome To SoloBux</h1><br />





<p>SoloBux offers everyone an opportunity to earn unlimited without any investment.</p>


<p>We connect advertisers with our members so that both can benifit. we assure benifits to both advertisers and our members.</p>


<p><strong>What you get as a member:</strong></p>


<p>* Earn up to $0.02 per click</p>


<p>* Earn up to $0.01 per referral click</p>


<p>* Payments via PayPal or Alertpay</p>


<p>* Professional Support Team</p>


<a href="register.php">Signup Now</a>


</div>


<div class="advertise">


<h1>Cheapest Advertising Price</h1><br />





If you need targetted visitors to your site or service, you have come to the right place.


Our suite of advertising options gives you the flexibility and functionality you need to promote your products efficiently. Each member will click your ad only once in 24 hours.


<p>Our packages are very cheap suiting your needs. Our main aim is to bring a large traffic to your site.</p>


<strong>&nbsp;You can:</strong>


<p><strong></strong>*Target a specific demographic. </p><strong></strong>


<p><strong></strong>*Manage your advertising through campaigns. </p><strong></strong>


<p><strong></strong>*Check your statistics and performance. </p><strong></strong>


<p><strong></strong>*Budget your advertising. </p><strong></strong>


<p><strong></strong>*Receive interested visitors. </p><strong></strong>


<a href="adver.php">Advertise</a>


</div></div><div class="cashout">


<h1>Latest Cashouts</h1>





<div class="cashouts">


<div class="first">


<p>Amount Paid: $4.05<br />


User: lieuxuanmy<br />


Date: 04-05-2011<br />


Time: 02:50</p>


</div>


<div>


<p>Amount Paid: $25.10<br />


User: soloweb<br />


Date: 04-05-2011<br />


Time: 02:49</p>


</div>


<div>


<p>Amount Paid: $2.79<br />


User: paklik<br />


Date: 03-05-2011<br />


Time: 12:11</p>


</div>


<div>


<p>Amount Paid: $7.75<br />


User: pattyb7063<br />


Date: 03-05-2011<br />


Time: 12:09</p>


</div>


<div>


<p>Amount Paid: $3.08<br />


User: titan01<br />


Date: 29-04-2011<br />


Time: 11:51</p>


</div></div></div>


<div class="onlinemember">


<br /><h1>Online Members</h1><br /><img src="forum/flags/ua.png" align="absmiddle" class="vtip" title="ukraine" alt="ukraine" vspace="5" hspace="5"><a href="forum/view_user.php?name=stelsik08"id="generic3">stelsik08</a> <img src="forum/flags/earth.png" align="absmiddle" class="vtip" title="earth" alt="earth" vspace="5" hspace="5"><a href="forum/view_user.php?name=4338529"id="generic3">4338529</a> <img src="forum/flags/ua.png" align="absmiddle" class="vtip" title="ukraine" alt="ukraine" vspace="5" hspace="5"><a href="forum/view_user.php?name=Oleh"id="generic3">Oleh</a> <img src="forum/flags/earth.png" align="absmiddle" class="vtip" title="earth" alt="earth" vspace="5" hspace="5"><a href="forum/view_user.php?name=strata"id="generic3">strata</a> <img src="forum/flags/earth.png" align="absmiddle" class="vtip" title="earth" alt="earth" vspace="5" hspace="5"><a href="forum/view_user.php?name=39458605"id="generic3">39458605</a> <img src="forum/flags/earth.png" align="absmiddle" class="vtip" title="earth" alt="earth" vspace="5" hspace="5"><a href="forum/view_user.php?name=1073619"id="generic3">1073619</a> <br /><img src="forum/flags/ua.png" align="absmiddle" class="vtip" title="ukraine" alt="ukraine" vspace="5" hspace="5"><a href="forum/view_user.php?name=ktala35"id="generic3">ktala35</a> <img src="forum/flags/dz.png" align="absmiddle" class="vtip" title="algeria" alt="algeria" vspace="5" hspace="5"><a href="forum/view_user.php?name=nabil10681"id="generic3">nabil10681</a> <img src="forum/flags/pk.png" align="absmiddle" class="vtip" title="pakistan" alt="pakistan" vspace="5" hspace="5"><a href="forum/view_user.php?name=onlyfriendship"id="generic3">onlyfriendship</a> </div><div class="right">








<div class="news">


<h1>SoloBux Aim</h1>


<ul>


<li>Dedication is our keystroke to success. Here on SoloBux we aim to help users to earn a lot with us. Follow us on Twitter: http://twitter.com/solobux</li>


</ul></div>








<br>


<div class="news">


<center> <p style="font-size: 18px;"><b>We Support:</b></p></center>


<p style="text-align: center;">&nbsp;&nbsp;&nbsp;<a href="https://www.alertpay.com/?gejyX6hDu1OUSJk7%2bFXTuw%3d%3d" target="_blank"><img src="themes/GeN4/images/alertpay_gif.gif"></a>&nbsp;&nbsp;&nbsp;<a href="**************************uk/mrb/pal=HTPK5LS38CFD2" target="_blank"><img src="themes/GeN4/images/paypal_gif.gif"></a></p>


</div></div>


</div>





<div class="clear"></div>


<div id="footer">


<p>Powered by <a href="http://www.ptcpay.com" target="_blank">GeN4 Security+</a> </p>


<p class="right"><a href="pproof.php">Payment Proof</a> | <a href="privacy.php" target="_blank">Privacy Policy</a> | <a href="terms.php" target="_blank">Terms Of Service</a> | <a href="refunds.php" target="_blank">Refund Policy</a></p>


</div>


</div>


paste your code here
</body>


</html>




 
Status
Not open for further replies.
Back
Top