web-traffic

How to Monitor Genuine Page Hits

本秂侑毒 提交于 2020-01-23 12:47:56
问题 I am trying to monitor genuine page hits. Here is what my site does. I have an article directory where people can post articles. When their article is posted they are paid depending on the amount of unique users visit their pages. So page hits are important. Here is the problem I am facing. What I need: I don't want to track page hits by minor search engines or robots. I would like the major 4 search engines to surf my site because I can monitor them by IP address and not count their visit as

When to use prepared statements?

我们两清 提交于 2020-01-05 05:50:11
问题 I have few question. Spec: MySql database; server side language PHP 5.3.10 1) When should one use prepared statements? I am building a webapp which has users. I am retrieving/inserting data into the database constantly. I am currently not using prepared statements and I was wondering if that was wrong way of doing things? /** * Register a new user into the database. Please make sure to * hash the password. * @param type $fName First name of the user - String value. * @param type $lName Last

Help building an E-commerce site

…衆ロ難τιáo~ 提交于 2019-12-24 06:43:57
问题 Guys, I want to build an e-commerce site on asp.net. My query is: when two users simultaneously buy something, how would the two records get inserted in my database? Would there be a lock? Can anyone explain how this would be or can be handled. Also, I want to handle peak traffic and also control the average data allotted to each user. I am thinking of using a plug-in. Any suggestions here? 回答1: Just a thought but if your just starting a new online store its highly unlikely you'll run into

Is it legitimate to use dropbox as file storage for my site?

两盒软妹~` 提交于 2019-12-21 07:20:12
问题 I am approaching the limits of my hosting plan. I doubled it once from 2 to 4 GB and my site (a popular woodworking community in Hebrew) is getting close to using the disk space available for the images people are uploading. I was wondering if it were a legitimate use of DropBox (or any of the other free cloud hosts), to serve the files of it as public files... i.e. whenever someone uploads a file to my server it will be instead uploaded using the DropBox API to the DropBox servers, and the

Google Analytics cookies vs subdomain for static content

送分小仙女□ 提交于 2019-12-18 15:17:46
问题 I have a website on www.example.com and use Google Analytics. I've also set up static.example.com which serves all static content. The problem is that the default behavior of GA is to issue cookies on ".example.com" but I don't want the static content traffic to be carrying the weight the GA cookies. I tried pageTracker._setDomainName("none"); and it worked well for the cookies problem but it completely messed up the "Avg. Time on Site" report (from 5 mins average it went to 40 mins until the

Google Analytics cookies vs subdomain for static content

北城余情 提交于 2019-12-18 15:17:21
问题 I have a website on www.example.com and use Google Analytics. I've also set up static.example.com which serves all static content. The problem is that the default behavior of GA is to issue cookies on ".example.com" but I don't want the static content traffic to be carrying the weight the GA cookies. I tried pageTracker._setDomainName("none"); and it worked well for the cookies problem but it completely messed up the "Avg. Time on Site" report (from 5 mins average it went to 40 mins until the

Route website through Android app?

二次信任 提交于 2019-12-12 01:25:23
问题 I'm trying to create a web filter app that will intercept an incoming website(one that is being browsed to) and redirect it's data to my app. Then it will compare the site to certain criteria and display it if it passes. Basically, I want to turn my app into a proxy of sorts. How might I go about doing this? 回答1: You would have to build your own browser. Use a simple webview and build the functionality you want around it. 来源: https://stackoverflow.com/questions/5060031/route-website-through

Track Web Traffic with PHP

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:16:34
问题 Is there an effective way to track web traffic (or at least the origin of web traffic) with PHP? I was thinking of using custom canonical links for each search engine and other websites, which would mean anybody who visits mywebsite.com without a parameter is likely direct traffic. But then I would somehow need to change the href value of the link rel='canonical' element for each engine crawler (e.g. https://mywebsite.com/?ref=google , https://mywebsite.com/?ref=duckduckgo , etc), and I'm not

Google Analytics LIKE Tool

走远了吗. 提交于 2019-12-08 06:45:09
问题 I'm considering writing my own tool for tracking visitors/sales as Google Analytics and others are just not comprehensive enough in the data dept. They have nice GUIs but if you have SQL skills those GUIs are unnecessary. I'm wondering what the best approach is to do this. I could simply just log the IP, etc to a text file and then have an async service run in the background to dump it into the DB. Or, maybe that's overkill and I can just put it straight in the DB. But one DB WRITE per web

Is it legitimate to use dropbox as file storage for my site?

 ̄綄美尐妖づ 提交于 2019-12-04 00:14:28
I am approaching the limits of my hosting plan. I doubled it once from 2 to 4 GB and my site (a popular woodworking community in Hebrew) is getting close to using the disk space available for the images people are uploading. I was wondering if it were a legitimate use of DropBox (or any of the other free cloud hosts), to serve the files of it as public files... i.e. whenever someone uploads a file to my server it will be instead uploaded using the DropBox API to the DropBox servers, and the Public LINK to the file will be stored in my DB and served to the users. Another option would be to