Posted By

Xacur on 07/31/11


Tagged

open graph facebook html5


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Malm
clacwebstudio
Josueriv


HTML5 head with Open Graph and Google Analytics


 / Published in: HTML
 

  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8">
  4. <link rel="shortcut icon" href="/favicon.ico">
  5. <link rel="apple-touch-icon" href="/apple-touch-icon.png">
  6. <title>Title</title>
  7.  
  8. <!-- Meta Information starts -->
  9. <meta name="description" content="">
  10. <meta name="keywords" content="">
  11. <meta name="author" content="">
  12. <meta name="robots" content="index,follow">
  13. <meta name="copyright" content="">
  14. <!-- Meta Information ends -->
  15.  
  16. <!-- Open graph starts -->
  17. <meta property="og:title" content="">
  18. <meta property="og:type" content="">
  19. <meta property="og:url" content="">
  20. <meta property="og:image" content="">
  21. <meta property="og:site_name" content="">
  22. <meta property="fb:admins" content="USER_ID">
  23. <meta property="og:description"
  24. content="">
  25. <!-- Open graph ends -->
  26.  
  27.  
  28. <!-- Style Sheets starts -->
  29. <!--[if IE]><![endif]-->
  30. <link rel="stylesheet" type="text/css" media="all" href="style.css">
  31. <!-- Style Sheets ends -->
  32.  
  33. <!-- Javascript starts -->
  34. <!--[if lt IE 9]>
  35. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  36. <![endif]-->
  37. <!-- Javascript ends -->
  38.  
  39. <!-- Google's analytics -->
  40. var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
  41. (function(d, t) {
  42. var g = d.createElement(t),
  43. s = d.getElementsByTagName(t)[0];
  44. g.async = true;
  45. g.src = '//www.google-analytics.com/ga.js';
  46. s.parentNode.insertBefore(g, s);
  47. })(document, 'script');
  48. </script>
  49. <!-- Google analytics ends-->
  50.  
  51.  
  52.  
  53. </head>
  54.  
  55. <body>
  56.  
  57. <!-- Your content -->
  58.  
  59. </body>
  60. </html>

Report this snippet  

You need to login to post a comment.