Commit Graph

27 Commits (edc77236c708ca248f0c9b2139bf7e2a49dbf736)

Author SHA1 Message Date
Uku Taht ff9f95ea18 Fix old script 6 years ago
Uku Taht e80fc7bb8e
Tracker script improvements (#1048)
* Use `document.currentScript` to get script host

* Add data-api
6 years ago
Vignesh Joglekar 7f3e55418b
Changes from static tracker script name assignments to dynamic (#786)
Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
dependabot[bot] 1d53648896
Bump handlebars from 4.7.6 to 4.7.7 in /tracker (#1008)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 years ago
Vignesh Joglekar 96633f46b1
Fixes exclude regex eating one character before single * (#861)
* Swaps to Negative Lookbehind for exclude Regex

* Updates to not use negative lookbehind
6 years ago
Iiro Krankka dde5116a76
Stop analytics tracking if running under Cypress tests (#850)
* Stop tracking if running under Cypress tests

* Update CHANGELOG.md
6 years ago
Vignesh Joglekar fb7a3fef89
Adds data-exclude support and localStorage.plausible_ignore support (#489)
* Adds data-exclude support and plausible_ignore support

* Splits exclusion into separate script option

* localStorage parsing upgrades

* Additional script type additions

I'm unsure about the formatting decision in tracker.ex - lmk.

* Adds new compiled files

This will certainly have conflicts with my other PRs related to the tracking scripts right now, I'll make one extra PR after both are done to ensure they're consolidated into the compiled scripts.

* Moves localStorage blocker out of special script

* Changelog

* Second thoughts on localStorage exclusion

* Updates `*` to not match `/` or whitespace

* Fix formatting

* Removes zero-length asterisks

* Adds support for double glob, zero-length replacements

* Update to reduce size+allow localStorage exclude

Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
Uku Taht 873fe1a337 Add note about p.js 6 years ago
Vignesh Joglekar 31ed9c017c
Allows middle-click and ctrl+click outbound clicks to properly open as user intended (#494)
* Initial fix

* Filesize optimizations

* Changelog

* Only redirects current tab on correct conditions

Does nothing special on middle or mod-click
6 years ago
Uku Taht 719b67ed22 Add nodejs to .tool-versions 6 years ago
Uku Taht b724def948 Only register outbound link click if it has a host property
Fixes #398
6 years ago
Uku Taht 392b0b33ee Make outbound link tracking dynamic 6 years ago
Uku Taht 0a530a0f66 Do not use pushState and popState in hash mode 6 years ago
Uku Taht 1b21a26e78 Ignore hash clicks 6 years ago
Uku Taht d0d7b823f8
Browser and OS version (#397)
* Collect browser and OS version

* Display browser version

* Show operating system versions

* Device categorization

* Treat headless chrome like a bot

* Ignore events from automated browsers

* Only take major and minor of the version

* Add tests

* Add CHANGELOG entry

* Add changelog entry for bots

* Store empty value as browser when unknown
6 years ago
Gustavo Maronato 77ec529f19
Fix #401 (#402) 6 years ago
Uku Taht f0cbf33d7c
Add tracker feature to automatically track outbound links (#389)
* Add tracker feature to automatically track outbound links

* Precompute templates and allow aliases

* Fix /js/analytics.js

* Remove change to tracking code

* Update CHANGELOG
6 years ago
Uku Taht 0b6e645b44
Rename metadata -> properties (#390) 6 years ago
Uku Taht 40900c7653
Ability to add event metadata (#381)
* Ability to add event metadata

* Close Dropdown on outside click

* Show (none) value in metadata breakdown

* Allow filtering for metadata key/val pairs

* Use correct clickhouse_ecto

* Better naming for meta filter

* Add tests

* Add changelog entry

* Remove change made for testing
6 years ago
Uku Taht b2f78bb741
Change Javascript license to MIT (#369) 6 years ago
Uku Taht 3a99b8a4fb
Handle page visibility change when preloading (#311) 6 years ago
Uku Taht 4aa4dfdcaf
Hash mode (#299)
* Build tracker with hash mode

* Extract hash fragment in hash mode

* Serve new hash-based tracker
6 years ago
Uku Taht d30f17c807
Extract utm_source on the server side (#298)
* Extract utm_source on the server side

* Build tracker scripts
6 years ago
Uku Taht 1519359bbf
Makes the tracker and its payload smaller (#296) 6 years ago
Uku Taht bb36bae15c
Inject base url to tracker at runtime (#78)
* Inject base url to tracker at runtime

* Cache tracker script for 1 hour
7 years ago
Uku Taht 8d36d27ca3 Default script to prod 7 years ago
Uku Taht 4bd12f03fc
Reduce script size (#68)
* Remove cookie code

* Compile tracker separetly from website assets

* Install uglify

* Help minifier reduce varaibles
7 years ago