Simple session storage for GTM to save state between tabs.
Simple session storage to sync state between tabs. Can be used in GTM.
Main scenarios ๐ฅ:
- Set user is registered in one tab get the state in all tabs;
- Count users actions between tabs. For example how many pages/articles/products user visited;
Also project show example of end-to-end test with Jest and Puppeteer. And how ES6 code can be converted to ES5 and used in GTM. If needed deployment to GTM can be automated using GTM-GEAR Python module.
-
Install dependencies:
npm install
-
Build to ES5:
npm run build
-
Run test:
npm run test
For examples, please refer to src/gtm_storage.test.js
Distributed under the MIT License. See LICENSE
for more information.
Artem Korneev - linkedin