# Google Analytics 4 click and conversion event tracking

**URL:** https://meta.discourse.org/t/google-analytics-4-click-and-conversion-event-tracking/309221
**Category:** Data & reporting
**Created:** [May 23, 2024, 11:32pm UTC](https://meta.discourse.org/t/google-analytics-4-click-and-conversion-event-tracking/309221 "2024-05-23T23:32:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![xingu](https://avatars.discourse-cdn.com/v4/letter/x/258eb7/32.png) [@xingu](https://meta.discourse.org/u/xingu)
#### Post date: [October 10, 2024, 3:43am UTC](https://meta.discourse.org/t/google-analytics-4-click-and-conversion-event-tracking/309221/2 "2024-10-10T03:43:29Z")

</div>

I’m following this documentation ([Integrate Google Tag Manager with Google Analytics](https://meta.discourse.org/t/integrating-google-tag-manager-with-google-analytics/47335)) but however I don’t seem the data variable populating in the console, and I don’t see any datalayer variables that allow GTM to pick up based on below. Is there anyway to get an updated instruction on the best way to track pageview and event on the site? Thanks!

> Variables

1. Go to the “Variables” tab in GTM and click “New” in the User-Defined Variables section.
2. Create two Data Layer Variables:

- **Title** : `DL-page-title`  
**Type** : `Data Layer Variable`  
**Data Layer Variable Name** : `page.title`  
**Data Layer Version** : 2
- **Title** : `DL-page-url`  
**Type** : `Data Layer Variable`  
**Data Layer Variable Name** : `page.url`  
**Data Layer Version** : 2

---

_[View the full topic](https://meta.discourse.org/t/google-analytics-4-click-and-conversion-event-tracking/309221)._
