Skip to content

Simple session storage for GTM to save state between tabs.

License

Notifications You must be signed in to change notification settings

ArtemKorneevGA/gtm-storage

Repository files navigation

gtm-storage

Simple session storage for GTM to save state between tabs.

About The Project

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.

Built With

Getting Started

  • Install dependencies: npm install

  • Build to ES5: npm run build

  • Run test: npm run test

Usage

For examples, please refer to src/gtm_storage.test.js

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Artem Korneev - linkedin

About

Simple session storage for GTM to save state between tabs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published