Skip to content

Removing Product analytics call from backend

Ankit Panchal requested to merge ankit.panchal/removing-pa-call-be into master

What does this MR do and why?

This MR adds send_product_analytics_event to send api to Product Analytics.

Fixes #443888 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Enable Feature flag internal_events_for_product_analytics
rails c

Feature.enable(:internal_events_for_product_analytics)
  1. Add InternalEvents.trackEvent('user_viewed_dashboard_list'); in the last line of tracker/index.js, This will allow us to send track_event API call on any page in GDK.
diff --git a/app/assets/javascripts/tracking/index.js b/app/assets/javascripts/tracking/index.js
index 2ee4703aa0b..d349edf82c4 100644
--- a/app/assets/javascripts/tracking/index.js
+++ b/app/assets/javascripts/tracking/index.js
@@ -73,4 +73,5 @@ export function initDefaultTrackers() {
   InternalEvents.bindInternalEventDocument();
   InternalEvents.trackInternalLoadEvents();
   InternalEvents.initBrowserSDK();
+  InternalEvents.trackEvent('user_viewed_dashboard_list');
 }
  1. Run gdk tail in the terminal and verify send_application_instrumentation_event is not being called after this change by adding logs.
Edited by Ankit Panchal

Merge request reports