ampproject / ampproject/amphtml

amp-analytics: Canary version error "reportWhen and repeat are mutually exclusive."

Open
#19,176 4 comments 0 reactions 1 assignee Claimed by @zhouyx View on GitHub
Component: amp-analytics P2: Soon Stale Type: Bug WG: analytics
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## What's the issue?
Canary version console error "reportWhen and repeat are mutually exclusive."

## How do we reproduce the issue?
This trigger snippet will cause the above error and prevent the event from firing
"hiddenPings": {
"on": "hidden",
"extraUrlParams": {
"pp_ev": "blur"
},
"visibilitySpec": {
"totalTimeMin": 10000,
"visiblePercentageMax": 0,
"repeat": true
},
"request": "trackPagePing"
}

## Which AMP version is affected?
Canary - v: 1811061842310

Is this a new issue? Or was it always broken? Paste your AMP version. You can find it in the browser dev tools.
Works in the non Canary version: 1811051833450

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.