Add Google web tracking code & Analyze your website performance using Google Analytics

If the website owner want to know the complete details about the site visitors and want to view the statistics about visits, then a free solution provided by google named as Google Analytics.
It generates detailed statistics about the visitors to a website.

 

It is the widely used websites.GA (Google Analytics) can track visitors from all referrers, including search engines, display advertising, pay-per-click networks, e-mail marketing and digital collateral such as links within PDF documents also.

and It is very easy to go, you can integrate the google analytics code in your website.

 

Login in into Google Analytics by your gmail account or sign-up if you don’t have.

http://www.google.com/analytics/

  1. You will then reach at overview page.
  2. Select the account that has the profile for the tracking code you’re looking for, as the code is profile-specific (you can create multiple profile with your single gmail account,means no need to create different gmail account for your other websites).
  3. Select the profile from the accounts Overview page by the drop down given in the top bar.
  4. From that profile’s Actions column, click Edit link
  5. At the top right of the ‘Main Website Profile Information’ box, click (Check Status?)
  6. Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section.

 

That’s it.

Paste the code in all of your files or paste the code in a file, that is included in all of the files.

 

jQuery (multi-browser JavaScript library)

jQuery is simply a way of Write less, do more.It is designed to change the way that you write JavaScript.

jQuery is a fast and small JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid and simple/easy web development.

jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML

jQuery’s syntax is easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications.The approach to the jQuery framework allows the creation of powerful and dynamic web pages and web applications by writing very less.

Unique features of jQuery:

  • DOM element selections using the cross-browser and traversal and modification
  • Events Handling
  • CSS manipulation with very smart function
  • Effects and animations by just single function
  • Ajax (no need to create objects)
  • Extensibility through plug-ins
  • Cross-browser support (works well in all browsers)

How can you do, is very simple include a file in your page.

[code lang=”js”]<script type="text/javascript" src="jquery.js"></script>[/code]

You can get/download this file by jQuery CDN or Google CDN.

The links from where you can go are
http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
http://code.jquery.com/jquery-1.6.2.min.js

The most popular and basic way to work with jQuery is to use the .ready() function.

[code lang=”js”]
$(document).ready(function() {
// function body will go here
});
[/code]

Or

[code lang=”js”]
$(function() {
// function body will go here
});
[/code]

Difference Between MySQL Table Type MyISAM and InnoDB?

 

  • The main difference between MyISAM and InnoDB is that InnoDB supports transaction.
  • InnoDB supports some newer features: Transactions, row-level locking, foreign keys.
  • InnoDB is for high volume, high performance.

 

MyISAM is of course the default table type i’m MySQL

Some says MyISAM is fast and some says that InnoDB is ?
Let me explain you, If your data is very large and you have to run more more query there per minutes, or we can say if you need transaction more.INSERT, UPDATE query are executed per minutes.
and table contains very data,then InnoDB will the best solution, according to all of your need , it will prove fetch,insert,update all will fast. InnoDB has been designed for maximum performance when processing large data volumes.

 

 

If your data integration so much high,then it’s better to user InnoDB.

But if you haven’t so much data and preparing small application, queries inseting fetching data is not too much,then it is better to use MyISAM, It will work faster rather then InnoDB in this case.

 

The InnoDB storage engine maintains its own buffer pool for caching data and indexes in main memory. InnoDB stores its tables and indexes in a table space, which may consist of several files (or raw disk partitions). This is different from, for example, MyISAM tables where each table is stored using separate files. InnoDB tables can be of any size even on operating systems where file size is limited to 4GB.

 

In hard disk tables of MyISAM is low weighted (contains less memory space) rather than InnoDB.

 

Locking Difference in MyISAM and InnoDB?

MyISAM provide the table level locking means if the data in one table has been modified by the other table ,the entire table will lock for the next process.But InnoDB provide the row level locking only the row of the table that is being updated is locked.

 

MyISAM provide a full variety of datatypes,but InnoDB will not do.

 

MyISAM provide full text search which is not supported by InnoDB.

 

 

Importance and Benefits of PHP Output Buffering & how can I set it?

PHP sends data from server to client/browser as soon as it is ready – this response might be line by line or by code blocks.Output buffering enables you to store up your output and send it when you are ready to go or to not send it at all, if you decide.

 

or simple

 

Output buffering puts your PHP script’s output/response in a buffer instead of sending it directly to the browser in pieces, allowing you to update your webpage as a whole before the user see.

 

1.Start Output Buffer

You have to start the output buffer before anything is sent to the browser.So one of the ways to ensure that is starting it right after you opened the php tag.

 

2.Send Output Buffer to Browser

If at any time you wish to send the content of the buffer to the browser you can do simply by the following line.
ob_flush();

After this point however the output buffer will continue to buffer the content which is send to the browser.
If you which to simply send the content of the buffer and stop using it you can do this with the following code.

ob_end_flush();

 

3.Delete Output Buffer

In some circumtances you might wish to delete whatever is stored in the output buffer.You can do this by using the following command.
ob_clean();

 

4.Get Output Buffer Content

If you started the output buffer you can get the content of it at any time (unless you have deleted it or sent it to the browser.This is done by the following line

[php]<?php $myvar = ob_get_contents();?>[/php]

This means that everything you echo or would be sent otherwise to the browser between this line and the ob_start(); will now be in $myvar.

Here is small example of output buffering

[php]
<?php
ob_start();
include(‘tpl_scriptarticle.php’);
$title = ‘Hello All’;
$myvar = ob_get_contents();
ob_clean();
echo $myvar;
?>
[/php]

There are some more function , you can get more by this link click here