ps-analytics

1.2.12 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ps-analytics

Weekly Downloads

0

Version

1.2.12

License

ISC

Unpacked Size

2.09 MB

Total Files

24

Last publish

Collaborators

  • kuldezha