This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Using the Vuex plugin pattern: https://vuex.vuejs.org/en/plugins.html, | |
this plugin will fire off a gtm.trackEvent for each mutation that occurs within your app. | |
It will also do a lookup on a literal object methods named after your mutation types. From those methods, | |
return a object with looks up on the store. | |
*/ | |
import Vue from 'vue' | |
// import mutation-types, see example: | |
/** |