$ npm install handlebars-helper-track
{{track}} handlebars helper to simplify adding Google analytics tracking codes.
Visit Google's documentation and Google's event tracking guide to learn more.
Install the helper with: npm install handlebars-helper-track
If you use Assemble and Grunt, in your project's Gruntfile add handlebars-helper-track to the helpers option in the Assemble task or target options:
grunt.initConfig({
assemble: {
options: {
helpers: ['handlebars-helper-track', 'other/helpers/*.js']
},
files: {}
}
});
Note that the 'handlebars-helper-track' module must also be listed in devDependencies for Assemble to automatically resolve the helper.
Alternatively you can register the helper with Assemble by adding handlebars-helper-track to both the devDependencies and the keywords array in your project's package.json.
With that completed, you may now use the {{track}} helper in your templates:
Please report any bugs or feature requests, thanks!
Type: String
Default: undefined
TODO
Find a bug? Have a feature request? Please create an Issue.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt, and build the documentation with grunt-readme.
Pull requests are also encouraged, and if you find this project useful please consider "starring" it to show your support! Thanks!
Here are some other Handlebars helpers you might be interested in from the Assemble core team.
<style>...</style> tags of the rendered HTML, but you may alternatively define a destination path using the dest hash option of the helper.Visit assemble.io/helpers for more information about using helpers with Assemble.
Jon Schlinkert
Brian Woodward
Copyright (c) 2013 Jon Schlinkert, contributors. Released under the MIT license
This file was generated by grunt-readme on Tuesday, December 3, 2013.