-1

this is a question about traffic analysis tool let's suppose I have like 20 different traffic sources to my website

then how can I know that visitors from which traffic sources actually are real humans and do somethitng on my website? (browse, scroll down and click buttons and move around inner pages like that)

As we know, we don't have time for testing each traffic source at a time, so what I wanna do is that buy traffic from 20+ different sources at once and analyse and find out which traffic sources are actually real humans and do something on my website

0

use javascript or etc to download (set no cache flag) a 1x1 pixel image every time an event is triggered.

<script type="text/javascript">
function download() 
{

document.write('<img src="//www.example.com/images/1px.gif?'+Math.random()+'" border="0" height="1" width="1">');


}
</script>

then

 <a href="/images/myw3schoolsimage.jpg" onclick="download()"> 

Here's a list of events you can trigger on

https://www.w3schools.com/tags/ref_eventattributes.asp

If you name your objects then you can do more.

 <a name="user1" href="/images/myw3schoolsimage.jpg" onclick="download(this)" onmouseover="download(this)"> 

Now change the definition to download(x) then inside of the download function x.name will be the name of the element that triggered it.

There probably even simpler ways of doing this.

3
  • is there easy solution to do that? May 24 '19 at 22:06
  • Thank you for the code, but how do I know which referrer traffic did that behaviour? May 25 '19 at 2:26
  • It depends on how the traffic reaches you. Maybe var x = document.referrer; Then send x in with each request. Maybe generate a random number, put it in a database, send random number as part of the web page, and track based on that number. Maybe this httpd.apache.org/docs/2.4/mod/mod_unique_id.html
    – cybernard
    May 25 '19 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.