![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Dec 2004
Location: Vancouver
Posts: 4,325
|
Google Analytics without javascript
I found this blog post and thought I would share. The Cliff notes version is below, just change the urchin code and domain then slap it on your submitted galleries
![]() Code:
<?php error_reporting(E_ALL ^ E_NOTICE); $var_utmac='UA-34000-1'; //enter the new urchin code $var_utmhn='yourdomain.com'; //enter your domain $var_utmn=rand(1000000000,9999999999);//random request number $var_cookie=rand(10000000,99999999);//random cookie number $var_random=rand(1000000000,2147483647); //number under 2147483647 $var_today=time(); //today $var_referer=$_SERVER['HTTP_REFERER']; //referer url $var_uservar='-'; //enter your own user defined variable $var_utmp='/rss/'.$_SERVER['REMOTE_ADDR']; //this example adds a fake page request to the (fake) rss directory (the viewer IP to check for absolute unique RSS readers) $urchinUrl='http://www.google-analytics.com/__utm.gif?utmwv=1&utmn='.$var_utmn.'&utmsr=-&utmsc=-&utmul=-&utmje=0&utmfl=-&utmdt=-&utmhn='.$var_utmhn.'&utmr='.$var_referer.'&utmp='.$var_utmp.'&utmac='.$var_utmac.'&utmcc=__utma%3D'.$var_cookie.'.'.$var_random.'.'.$var_today.'.'.$var_today.'.'.$var_today.'.2%3B%2B__utmb%3D'.$var_cookie.'%3B%2B__utmc%3D'.$var_cookie.'%3B%2B__utmz%3D'.$var_cookie.'.'.$var_today.'.2.2.utmccn%3D(direct)%7Cutmcsr%3D(direct)%7Cutmcmd%3D(none)%3B%2B__utmv%3D'.$var_cookie.'.'.$var_uservar.'%3B'; $handle = fopen ($urchinUrl, "r"); $test = fgets($handle); fclose($handle); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2002
Location: Oakville, Canada
Posts: 9,134
|
Awesome, thanks for the heads up.
__________________
Free agent |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
SZNY
Industry Role:
Join Date: May 2004
Location: Sexy Republic
Posts: 2,800
|
thanks man, good info
![]()
__________________
Telegram: sandroanthonio |
![]() |
![]() ![]() ![]() ![]() ![]() |