Tracking virtual page views with analytics.js
11th, June 2014
Virtual pages are commonly used, for example, to record successful form submissions when your site does not have a static "thank you" page. Tracking with the previous _ga.js_ was as simple as inserting the following (example) line of code -
- upon a succesful form submission. But how about the new _analytics.js_ ? With only some minor adjustments, the above code will now look like -
ga('send', 'pageview', '/thank-you')
For further reading on this, and the other changes from ga.js to analytics.js, you can visit the Google Developers' Google Analytics Reference at https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs
4th, May 2014
The great thing about the PHP world is the attitude of the people in it.
(Apart from beating each other up over tabs and spaces)
The bad thing has been, that being so welcoming, there have been lots of novices. This means lots of different styles for architecturing systems, writing code and documentaiton.
But true to its attitude, there is agreat agreement in finally setting industry wide standards for PHP coding. The standards have been defined by the leading developers of the majority of the worlds most popular frameworks and systems. The majority is such that they won't be competing with another 10 that exist already, it has become the de-facto standard.
In my opinion, it will not be long until we see the next generation of systems built on top of these standards. To their credit, Drupal and Joomla are members of FIG , but unfortunately not much news on the Wordpress end. It will take a while to be fully compliant, as it is always harder to re-engineer code to conform to a standard than it is to follow it from the beggining.