Jump to content

Is adding a record to a database table on every request ok (analytics purposes)?


johnsmith153

Recommended Posts

I want to add one record to a table on every request which will store various information about that request.

 

I use a server-side mobile detection script which serves a CSS stylesheet depending on the device (if mobile or not), so I would like to store info as to which devices are accessing the site as well as other data.

 

I also have requests for native mobile apps using the same scripts (every request to the mobile website, desktop website and mobile apps goes through one index.php page).

 

Is this ok, or is it likely to cause any slow-down?

 

I guess Google Analytics (which I have never used) will make an Ajax request to the Google servers, causing more or less no slow-down for a site.

 

I think the reason I prefer my own method than Google Analytics is:

(a) I currently don't need to use Google's advertising services

(b) I can store details of PHP variables such as the mobile-detect results without passing them to JavaScript which I'm guessing Google Analytics would need.

© Mobile app requests can also be included in my script

 

Based on all that, should I store the details server-side on my server and forget Google Analytics?

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.