Wednesday, August 7, 2013

Google Analytics cookie parser using PHP

Google Analytics collects data using first-party cookies who are stored on our browsers. I’ve programmed a PHP class we can use to read Google Analytics __utma and __utmz cookies. This class can be used to easily integrate this cookie data into proprietary systems like CRM, ERP, Helpdesks, etc.
  • __utma (expires 2 years after being defined) – visitor dataThis cookie is written on your first visit to the website. In case you erase it its created again. Its used for the Unique Visitors calculation and is updated on every pageview.
  • __utmz (expires 6 months after being defined) – campaign dataThis cookie stores informations on how the user got to our website: referrer, direct (none), organic or a campaign such as a newsletter. (since you tag it correctly using the URL Builder). This cookie is overwritten every time you visit the website.
The Google Analytics Cookie Parser allows you to obtain some data contained in this cookies in a human readable format.
  • Campaign source
  • Campaign name
  • Campaign medium
  • Campaign content
  • Campaign term
  • Date of first visit
  • Date of previous visit
  • Date of current visit
  • Times visited
  • Pages viewed

Download the latest version of Google Analytics PHP cookie parser from Github.
https://github.com/joaolcorreia/Google-Analytics-PHP-cookie-parser

Friday, July 12, 2013

Firefox broswer filled with black moving pixels [SOLUTION]

Problem : Just an hour ago I was browsing a web page and noticed that a few stray pixels were showing up, then going away or moving sort of in a confetti effect. When I scroll it gets worse and the pixels pile up and sometimes slow down the entire browser. I cleared my cache and updated Firefox and all my add-ons, restarted the browser, and even made sure it wasn't my monitor by watching my desktop, opening other programs, and even checking in other browsers. Only Firefox is causing this problem. It's really annoying. Is there any way to fix this? 

 Solution : 
1) Update your video card with the latest drivers.

OR

2) Try disabling graphics hardware acceleration in Firefox. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
Then perform these steps:
  • Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
  • In the Firefox options window click the Advanced tab, then select "General".
  • In the settings list, you should find the Use hardware acceleration when available checkbox. Uncheck this checkbox.
  • Now, restart Firefox and see if the problems persist

Popular Posts