c2corg / c2corg/c2c_ui

Feature: Migrate to GA4

Open
#3,549 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
29
Forks
33
Avg merge
7m
Merged PRs (30d)
2

Description

**Community discussion about this feature (mandatory)**
Discussed with c2c board and developpers

**Is your feature request related to a problem? Please describe.**
Google Analystics is no long working. We should use GA4.

**Describe the solution you'd like**
This code should be integreted so that it should be use on all topoguide pages
```

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-YEVSKTFH2Q');

```

**Describe alternatives you've considered**
[vue-gtatg](https://github.com/MatteoGabriele/vue-gtag) is a vue plugin for GA4. We considered use it instead of the one currently used ([vueanalytics](https://www.npmjs.com/package/vue-analytics)), but vue-gtag required vue 3.0.0 and there are a lot of plugins we used that are not ready for vue 3.0.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing vueanalytics integration and the topoguide page entry points. Compare the current setup with the proposed GA4 gtag.js snippet or vue-gtag alternative, then verify that GA4 is integrated across all topoguide pages without requiring Vue 3.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics, frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.