jekyll-store-google-analytics
v0.0.2
Published
Google analytics plugin for Jekyll-Store Engine
Downloads
1
Readme
Jekyll-Store/Google-Analytics
Google analytics plugin for Jekyll-Store Engine.
Usage
Requires that the google analytics javascript file to be loaded:
<script async src="//www.google-analytics.com/analytics.js"></script>
Actions
setTrackingId
Set's Google Analytics tracking ID.
Example:
JekyllStoreEngine.Actions.setTrackingId({ id: 'UA-62379004-1' });
pageLoaded
Declare the page loaded.
Example:
JekyllStoreEngine.Actions.pageLoaded();
checkoutStep
Declare the page a checkout step.
Example:
JekyllStoreEngine.Actions.checkoutStep({ step: 2 });
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request