ampproject / ampproject/amphtml
🐛 Google Analytics 4 Related Bug: Google Analytics did not send session_start event
- 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
Assessment
This issue has not been assessed yet.