Skip to content

Instantly share code, notes, and snippets.

View bdaley's full-sized avatar

Brian Daley bdaley

View GitHub Profile

Must Have Modules

  • Chaos Tools - Needed for every Drupal module on the planet. Ever. Throughout time.
  • Magic - Some D8 functionality, including scripts in the footer.
  • Module Filter - Filter tool for your modules page.
  • Devel - Helpful development tools
  • Administration Menu - Install this and disable that worthless Toolbar.
  • CKeditor - WYSIWYG editor.
  • IMCE - Manages images and works directly with CKeditor.
  • Speedy - JS and CSS compression.
@bdaley
bdaley / Google-Analytics-Enhanced.html
Created December 10, 2012 19:46
Google Analytics w/ Enhanced Link Attribution
<script type="text/javascript">
var _gaq = _gaq || [];
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-XXXXXX-Y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';