Analytics help

gaptrast

Member
Messages
123
Reaction score
0
Points
16
Hello,

I recently installed a simple adblock detection script (javascript) on my site. This works fine, and it redirects users to a page saying "you have to disable adblock to coninue".

I can detect adblock with a this code:
Code:
function info(){
if (document.getElementById('info').clientHeight < 20) {
window.location ="why.php" ;
}}
function info() is triggered by body onload.

Can an analytics thing (like GA) remember the users who went to that page (why.php), and then can I see if they really disables it or just exits?

Example:

Code:
<body onload="info()">

...

function info(){

if (document.getElementById('info').clientHeight < 20) 
{
rememberthem();
window.location ="why.php" ;
}
else{
havetheybeenremembered?();
}

If this thing is possible to do in analytics or piwik or something, please tell me.

Thanks
 
Top