1.2.12 • Published 3 months ago

ps-analytics v1.2.12

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

PS-ANALYTICS

This package is designed for tracking event actions performed by users

Primarily it is used in wc2front project In pair with Google Analytics (GA) Snowplow Analytics is also being used to track events

Features

  • snowplowScriptGenerator is being used for generating snowplowScript, so it will inject the content of the script sp.2.16.3.js into the DOM HTML
  • test.html is used for local testing of the tracking system
  • pyr-ga.js contains simple GA tracking services
  • To make changes to snowplow tracking, you should make changes to d-snowplow.ts file.
  • it is named using "d" prefix in order to be before decorators.ts script, because gulp merges files alphabetically and decorators.ts runs code which is defined in d-snowplow.ts

Implementation

  • Official documentation
  • Latest releases
  • in order to update the Snowplow Tracker version you need to check official Snowplow website for new js trackers
    • change the url for the schema and the body of the link_click event
    • change the implementation of the change_form and focus_form event actions
    • add conditions for checking the presence of the GlobalSnowplowNamespace field in global window object
    • same goes for the button_click tracker script
  • Here is more detailed information of how perform above actions
1.2.12

3 months ago

1.2.3

5 months ago

1.2.2

6 months ago