Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

Files

Latest commit

18f299b · May 5, 2015

History

History
53 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.11 KB

Jekyll-Store/Google-Analytics

Build Status

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request