Jump to content

Server-side analytics and server-side logging in particular


johnsmith153

Recommended Posts

I need to log details in PHP of analytics and usage.

 

I'm looking at various possibilities:

 

    - Google Analytics server-side

    - segment.io

    - Just adding a record to a DB with PHP

 

My concern is how much additional processing this will take on my server. Of course Google Analytics' JavaScript implementation won't use anything on my server, but my server-side method of course will.

 

I also notice that on https://segment.io/docs/integrations/google-analytics they mention that "Server-side Google Analytics is being deprecated due to difficulty of use" - what does this mean?

 

So basically, I want to implement some basic analytics storing (count number of hits to a URL + some other basic info) server-side - what's the best way to do this considering all things?

 

It seems that adding a record to the DB every page view might be a little too much.
Link to comment
Share on other sites

This forum updates my profile (Last Active Date-Time) on every page view. It also updates each Topic I read (Number of Views). In fact, the bottom of this screen says it executed 15 Queries to show me this Topic. A single well written insert to the database for every page view should not be too taxing.

 

On the other hand, writing the code to actually analyze the data could be a chore (for the programmer, I mean). Google has done it, why re-invent the wheel (unless you need too).

Link to comment
Share on other sites

 

I also notice that on https://segment.io/docs/integrations/google-analytics they mention that "Server-side Google Analytics is being deprecated due to difficulty of use" - what does this mean?

 

The way I read that is the ability to enable Google Analytics from within Segment.io is being depreciated. Based on a cursory look through the web, I didn't see any references to server-side Google Analytics being shut down.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.