Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Page visibility bugs #278

Open
wants to merge 80 commits into
base: page-visibility-bugs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
ba93f77
Merge pull request #177 from googleanalytics/page-visibility-bugs
philipwalton May 23, 2017
0e6af81
Release version 2.3.3
philipwalton May 23, 2017
5af4f28
Remove site search mentions
philipwalton May 30, 2017
2fac034
Update the analytics.js test files
philipwalton Jun 1, 2017
bdbc90a
Increase the visible threshold to reduce flakiness
philipwalton Jun 1, 2017
d3649b4
Add a siteSearchQueryParams config option
philipwalton Jun 1, 2017
9f7359a
Rename siteSearchQueryParams
philipwalton Jun 2, 2017
432629f
Fix closure compiler warnings
philipwalton Jun 2, 2017
a4ac81c
Add new option documentation
philipwalton Jun 2, 2017
5e13e65
Remove missed compat check
philipwalton Jun 2, 2017
3ebc254
Fixed typo
brentmclark Jun 2, 2017
55c6d0e
Fix documentation spelling error
philipwalton Jun 2, 2017
74308ac
Merge pull request #181 from googleanalytics/site-search
philipwalton Jun 2, 2017
b240254
Merge pull request #182 from brentmclark/patch-1
philipwalton Jun 2, 2017
7b354a5
Release version 2.4.0
philipwalton Jun 2, 2017
7e29fb9
Fix outboundLinkTracker bugs in Safari
philipwalton Jun 7, 2017
64d0a5b
Merge pull request #185 from googleanalytics/safari-outbound-link-bugs
philipwalton Jun 7, 2017
eda5cdc
Release version 2.4.1
philipwalton Jun 7, 2017
f53366e
Update clean-url-tracker.md
niaomingjian Nov 14, 2017
0194377
Merge pull request #210 from niaomingjian/master
philipwalton Nov 14, 2017
647b2ae
Fix MaxScrollTracker interactive events docs
kevinjalbert Nov 28, 2017
bdb83de
Merge pull request #211 from kevinjalbert/patch-1
philipwalton Dec 2, 2017
5c5bf40
Missing trailing - in attribute prefix
pscheit Jan 4, 2018
da0f330
Merge pull request #216 from pscheit/patch-1
philipwalton Jan 4, 2018
19610cb
Fix lint errors from updating google style
philipwalton Feb 8, 2018
14d90da
Add an initial IdleQueue implementation
philipwalton Aug 6, 2018
dece7be
Update dependencies
philipwalton Aug 5, 2018
5ba09e2
Update the gulpfile to work with Gulp 4
philipwalton Aug 5, 2018
8a7cb87
Upgrade test libs and move them out of the bundle
philipwalton Aug 6, 2018
bdb833f
Update .eslintrc to use Google JS style
philipwalton Aug 6, 2018
d448229
Remove unused getEventCount method
philipwalton Aug 6, 2018
5bcc8cb
Optimize the MethodChain.remove static method
philipwalton Aug 6, 2018
4a8b9ad
Add timestamp support to Store
philipwalton Aug 7, 2018
15650a0
Ensure queue callbacks are removed on destroy
philipwalton Aug 9, 2018
41eabdc
Remove tracker logic from IdleQueue
philipwalton Aug 11, 2018
336830e
Simplify Idle and Tracker queue method names
philipwalton Aug 11, 2018
3906b78
Add an isProcessing flag and simplify logic
philipwalton Aug 13, 2018
daaab2a
Clean up tests and use sandbox
philipwalton Aug 13, 2018
7dc9750
Remove tracker method overrides
philipwalton Aug 13, 2018
d602537
Defer expensive initializing until accessed
philipwalton Aug 13, 2018
8b1e6c4
Add missing jsdoc comment
philipwalton Aug 14, 2018
b2bc274
Add a defineIdleProperties utility method
philipwalton Aug 14, 2018
9edd84b
Move shared test helpers into their own file
philipwalton Aug 15, 2018
bbb00ee
Add tests for defineIdleProperties
philipwalton Aug 15, 2018
8fde15d
Refactor defineIdleProperties into IdleValue
philipwalton Aug 17, 2018
90d6764
Update Session and Store to use IdleValue
philipwalton Aug 17, 2018
ed2b306
Fix closure compiler warnings
philipwalton Aug 17, 2018
8b813ec
Add proper reference counting
philipwalton Aug 17, 2018
3eefed4
Update pageVisibilityTracker to use TrackerQueue
philipwalton Aug 17, 2018
e613e54
Update maxScrollTracker to use TrackerQueue
philipwalton Aug 17, 2018
be29604
Update eventTracker to use TrackerQueue
philipwalton Aug 17, 2018
b75615a
Update impressionTracker to use TrackerQueue
philipwalton Aug 17, 2018
220bd71
Update mediaQueryTracker to use TrackerQueue
philipwalton Aug 18, 2018
ed04094
Update socialWidgetTracker to use TrackerQueue
philipwalton Aug 18, 2018
79aad71
Update urlChangeTracker to use TrackerQueue
philipwalton Aug 18, 2018
9f732db
Use the now() utility instead of Date.now()
philipwalton Aug 18, 2018
e9ac57d
Remove the local analytics.js test files
philipwalton Aug 18, 2018
9c8bb0e
Update the build script
philipwalton Aug 18, 2018
34e8cb8
Update gulpfile for the updated build
philipwalton Aug 18, 2018
4dd98c9
Remove unused deferUntilPluginsLoaded utility
philipwalton Aug 19, 2018
e571ba5
Get unit tests passing on Sauce Labs
philipwalton Aug 19, 2018
190af58
Get e2e tests passing on Sauce Labs
philipwalton Aug 19, 2018
278131e
Update travis to run the latest node
philipwalton Aug 19, 2018
6d55c73
Fix SVG link test failures in Safari
philipwalton Aug 19, 2018
1f795ca
Fix regressions caught by tests
philipwalton Aug 20, 2018
15cb392
Fix flakey test
philipwalton Aug 20, 2018
394e01e
Update easy-sauce browsers
philipwalton Aug 20, 2018
2f18a38
Update TrackerQueue to take a tracking ID
philipwalton Aug 21, 2018
8bd569f
Update IdleQueue with yield thresholds
philipwalton Aug 23, 2018
bf05e37
Disable Safari tests while they're flaky
philipwalton Aug 23, 2018
104afcd
Fix store write race conditions
philipwalton Sep 5, 2018
30beb34
Ensure unobserving doesn't error before observing
philipwalton Sep 5, 2018
e738bcc
Add unit test TODOs
philipwalton Sep 5, 2018
863acbb
Add a getState method
philipwalton Sep 6, 2018
703ee09
Update to use idlize
philipwalton Sep 20, 2018
99f7c61
Merge pull request #235 from googleanalytics/idle-callback
philipwalton Sep 20, 2018
74a4b5b
Move idlize from devDependencies to dependencies
philipwalton Sep 22, 2018
b031685
update URLS in README to HTTPS
coliff Oct 9, 2019
405bc44
Merge pull request #250 from coliff/patch-1
philipwalton Oct 9, 2019
646e079
Update README.md
diminishedprime Sep 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@
"node": true,
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
},
"extends": [
"eslint:recommended",
"google",
],
"globals": {
"safari": false
},
"overrides": [
{
"files": ["test/**/*"],
"globals": {
"assert": false,
"sinon": false
}
}
]
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
language: node_js
node_js:
- "6"
- "node"

# If a valid commit range exits, check that it has changes to code files.
before_install:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

This document lists the changes between each minor and patch versions. For changes between major versions, see the [Upgrade Reference](/docs/upgrading.md)

### 2.4.1 (2017-06-07)

- Fix a bug in Safari where `outboundLinkTracker` doesn't work with the back button [#185]

### 2.4.0 (2017-06-02)

- Add a `queryParamsWhitelist` option to the `cleanUrlTracker` plugin [#181]

### 2.3.3 (2017-05-23)

- Fix a bug where, in rare cases, visibility times were being tracked cross-session [#177]

### 2.3.2 (2017-04-10)

- Fix incorrect plugin usage attribution on the initial pageview sent by the `pageVisibilityTracker` if other plugins are required after it [#169]
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This library is no longer actively maintained

# Autotrack [![Build Status](https://travis-ci.org/googleanalytics/autotrack.svg?branch=master)](https://travis-ci.org/googleanalytics/autotrack)

- [Overview](#overview)
Expand All @@ -21,7 +23,7 @@ Autotrack was created to solve this problem. It provides default tracking for th

## Plugins

The `autotrack.js` file in this repository is small (7K gzipped) and comes with all plugins included. You can use it as is, or you can create a [custom build](#custom-builds) that only includes the plugins you want to make it even smaller.
The `autotrack.js` file in this repository is small (8K gzipped) and comes with all plugins included. You can use it as is, or you can create a [custom build](#custom-builds) that only includes the plugins you want to make it even smaller.

The following table briefly explains what each plugin does; you can click on the plugin name to see the full documentation and usage instructions:

Expand Down Expand Up @@ -72,7 +74,7 @@ The following table briefly explains what each plugin does; you can click on the
</tr>
</table>

**Disclaimer:** autotrack is maintained by members of the Google Analytics developer platform team and is primarily intended for a developer audience. It is not an official Google Analytics product and does not qualify for Google Analytics 360 support. Developers who choose to use this library are responsible for ensuring that their implementation meets the requirements of the [Google Analytics Terms of Service](https://www.google.com/analytics/terms/us.html) and the legal obligations of their respective country.
**Disclaimer:** autotrack is maintained by members of the Google Analytics developer platform team and is primarily intended for a developer audience. It is not an official Google Analytics product and does not qualify for Google Analytics 360 support. Developers who choose to use this library are responsible for ensuring that their implementation meets the requirements of the [Google Analytics Terms of Service](https://marketingplatform.google.com/about/analytics/terms/us/) and the legal obligations of their respective country.

## Installation and usage

Expand Down Expand Up @@ -110,7 +112,7 @@ Of course, you'll have to make the following modifications to the above code to

### Loading autotrack via npm

If you use npm and a module loader that understands [ES2015 imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) (e.g. [Webpack](https://webpack.js.org/), [Rollup](http://rollupjs.org/), or [SystemJS](https://github.com/systemjs/systemjs)), you can include autotrack in your build by importing it as you would any other npm module:
If you use npm and a module loader that understands [ES2015 imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) (e.g. [Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/), or [SystemJS](https://github.com/systemjs/systemjs)), you can include autotrack in your build by importing it as you would any other npm module:

```sh
npm install autotrack
Expand Down Expand Up @@ -277,7 +279,7 @@ The following translations have been graciously provided by the community. Pleas
If you discover issues with a particular translation, please file them with the appropriate repository. To submit your own translation, follow these steps:

1. Fork this repository.
2. Update the settings of your fork to [allow issues](http://programmers.stackexchange.com/questions/179468/forking-a-repo-on-github-but-allowing-new-issues-on-the-fork).
2. Update the settings of your fork to [allow issues](https://softwareengineering.stackexchange.com/questions/179468/forking-a-repo-on-github-but-allowing-new-issues-on-the-fork).
3. Remove all non-documentation files.
4. Update the documentation files with your translated versions.
5. Submit a pull request to this repository that adds a link to your fork to the above list.
Loading
Loading