Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Discussions > Tracking Your Site > Tracking from server side
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
acemtp  
View profile  
 More options Feb 15 2008, 7:23 am
From: acemtp
Date: Fri, 15 Feb 2008 04:23:34 -0800 (PST)
Local: Fri, Feb 15 2008 7:23 am
Subject: Tracking from server side
I have a online game and I would like to track the player connection.

My game is a C++ game like World of Warcraft, when the client connects
to the server, it get an url like "http://www.mtp-target/login.php?
user=12". And in return, the page contains some token that the client
analyse.

Since it's a C++, i don't have javascript on the client so i cannot
execute the analytics javascript code.

I would like to know if I can add some code on the server side to
generate a pageview. In this case, the server will be able to generate
a pageview when the client call a special page.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ShoreTel  
View profile  
 More options Feb 15 2008, 3:32 pm
From: ShoreTel
Date: Fri, 15 Feb 2008 12:32:23 -0800 (PST)
Local: Fri, Feb 15 2008 3:32 pm
Subject: Re: Tracking from server side
Just to give you a fair warning, if you do the following you may not
get all the data in your reports that you want, because Analytics
relies on Cookies for a lot of things. You could potentially track
that yourself in a PHP session (based on their user=12), but I leave
that as an excersize to the reader.

The most important thing you'll need to do is make your C++ client
load an image (it doesn't have to render it, or even do anything with
it, just call the URL with your HTTP GET function). The parameters in
the URL for that image contain all the data that is sent back to GA to
track the user.

Here's the URL
http://www.google-analytics.com/__utm.gif?
        utmwv=3&
        utmn=<random number>&
        utme=&
        utmcs=ISO-8859-1&
        utmsr=1280x1024&
        utmsc=24-bit&
        utmul=en-us&
        utmje=1&
        utmfl=-&
        utmhn=<www.mtptarget>&
        utmhid=2112093191&
        utmr=-&
        utmp=/login.php?user=12&
        utmac=UA-XXXXX-1&
        utmcc=
                __utma%3D1.<unique id>.<time (in sec's since Jan 1, 1970) of first
visit).<time of last visit>.<time of current visit>.<visit count>%3B
%2B
                __utmz%3D1.1203103189.1.1.utmcsr%3D<source>%7Cutmccn%3D<campaign>
%7Cutmcmd%3D<medium>%3B

On Feb 15, 4:23 am, acemtp wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »