ampproject / ampproject/amphtml

🐛 Google Analytics 4 Related Bug: Google Analytics did not send session_start event

Open
#39,729 1 comment 3 reactions 1 assignee Claimed by @erwinmombay View on GitHub
Component: amp-analytics Component: GA4 needs sizing P1: High Priority Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

We tried to implement GA4 in the AMP page, but seems the event session_start is not triggered in the page. Compare to our page that implement tag directly.

Our implementation was followed below:
```

{
"vars": {
"gtag_id": "MEASUREMENT_ID",
"config": {
"MEASUREMENT_ID": {
"groups": "default"
}
}
}
}

```

### URL where we can debug and reproduce the problem

https://iprice.my/computing/

### Reproduction Steps

- Try to access the page
- Observed in the realtime report in the GA4
- It didn't trigger event session_start

### Relevant Logs

_No response_

### Browser(s) Affected

Chrome, Firefox, Safari

### OS(s) Affected

_No response_

### Device(s) Affected

_No response_

### AMP Version Affected

_No response_

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.