Skip to content

Conversation

@Pasindufdo98
Copy link
Contributor

@Pasindufdo98 Pasindufdo98 commented May 18, 2025

OnTrack Component Review

Team Member Name

Pasindu Fernando

Student ID :

s224263102

Component Name

Analytics Configuration (virtual page views)

Files in this Component

analytics.coffee (to be removed)

Description

The analytics.coffee file was previously responsible for configuring Google Analytics tracking in the AngularJS version of the application. Its key functionality included disabling automatic route change tracking by setting $analyticsProvider.virtualPageviews(false), preventing virtual pageviews from being recorded.

Why Removal is Required

It is no longer functional due to the migration to Angular 17.

All analytics functionality has been migrated to Google Analytics 4 (GA4), which is fully managed through gtag.js in index.html.

Virtual pageviews and event tracking are now handled explicitly using Angular’s Router and manual event tracking with gtag().

Screenshots

before commenting analytics.coffee file and depenency in config.coffee

Component Migration Plan:

  1. Remove the File:analytics.coffee

  2. Clean Up Dependencies:
    Remove doubtfire.config.analytics from config.coffee.
    Delete any references to angulartics or $analyticsProvider in doubtfire-angularjs.module.ts.

@Pasindufdo98 Pasindufdo98 marked this pull request as ready for review May 18, 2025 03:25
@Pasindufdo98
Copy link
Contributor Author

This PR is a recreation of the previous submission in #586, which was automatically closed after the original fork was deleted.
All prior feedback from that PR has been reviewed and the markdown file has been updated accordingly.
Old PR: #586

@aNebula aNebula merged commit 3423c34 into thoth-tech:main Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants