PageSourceSearch

https://www.motilaloswalmf.com/scripts/analytics.js

js motilaloswalmf.com collected 2026-09-24 11:44:43 UTC 5,916 bytes, 280 lines download raw bytes

1window.dataLayer = window.dataLayer || [];
2
3function emitGtagEvent(eventName, payload) {
4  const trigger = () => {
5    if (typeof window.gtag === 'function') {
6      window.gtag('event', eventName, payload);
7      return true;
8    }
9    return false;
10  };
11
12  if (!trigger()) {
13    setTimeout(() => {
14      trigger();
15    }, 800);
16  }
17}
18
19export function trackLoginButton() {
20  try {
21    // window.dataLayer.push({
22    //   event: 'login',
23    //   page_name: window.location.pathname,
24    // });
25
26    emitGtagEvent('login', {
27      page_name: window.location.pathname,
28    });
29  } catch (error) {
30    console.warn(error);
31  }
32}
33
34// lumpsum , Sip ,card
35export function trackInvestButton(fundName, schemeCode) {
36  try {
37    // window.dataLayer.push({
38    //   event: 'MF_Fund_Selected',
39    //   fundName,
40    //   schemeCode,
41    //   page_name: window.location.pathname,
42    // });
43
44    emitGtagEvent('MF_Fund_Selected', {
45      fundName,
46      schemeCode,
47      page_name: window.location.pathname,
48    });
49  } catch (error) {
50    console.warn(error);
51  }
52}
53
54// lumpsum , Sip , card
55export function trackInvestNowButton(
56  fundName,
57  schemeCode,
58  planType,
59  investmentType,
60  investmentMethod,
61  investmentmode,
62) {
63  try {
64    // window.dataLayer.push({
65    //   event: 'MF_FundBuy_Selected',
66    //   fundName,
67    //   schemeCode,
68    //   planType,
69    //   investmentType,
70    //   investmentMethod,
71    //   investmentmode,
72    //   currency: 'INR',
73    //   page_name: window.location.pathname,
74    // });
75
76    emitGtagEvent('MF_FundBuy_Selected', {
77      fundName,
78      schemeCode,
79      planType,
80      investmentType,
81      investmentMethod,
82      investmentmode,
83      currency: 'INR',
84      page_name: window.location.pathname,
85    });
86  } catch (error) {
87    console.warn(error);
88  }
89}
90
91// lumpsum , Sip
92export function trackAuthenticateButton(panNo) {
93  try {
94    // window.dataLayer.push({
95    //   event: 'MF_Fund_panlogin',
96    //   panNo,
97    //   page_name: window.location.pathname,
98    // });
99
100    emitGtagEvent('MF_Fund_panlogin', {
101      panNo,
102      page_name: window.location.pathname,
103    });
104  } catch (error) {
105    console.warn(error);
106  }
107}
108
109export function trackOTPSubmitButton(panNo) {
110  try {
111    // window.dataLayer.push({
112    //   event: 'Login_With_OTP',
113    //   panNo,
114    //   page_name: window.location.pathname,
115    // });
116
117    emitGtagEvent('Login_With_OTP', {
118      panNo,
119      page_name: window.location.pathname,
120    });
121  } catch (error) {
122    console.warn(error);
123  }
124}
125
126export function trackRegisterNewLink() {
127  try {
128    // window.dataLayer.push({
129    //   event: 'MF_Register_New',
130    //   page_name: window.location.pathname,
131    // });
132
133    emitGtagEvent('MF_Register_New', {
134      page_name: window.location.pathname,
135    });
136  } catch (error) {
137    console.warn(error);
138  }
139}
140
141export function trackRegisterSubmitButton(panNo) {
142  try {
143    // window.dataLayer.push({
144    //   event: 'MF_Register_Submit',
145    //   panNo,
146    //   page_name: window.location.pathname,
147    // });
148
149    emitGtagEvent('MF_Register_Submit', {
150      panNo,
151      page_name: window.location.pathname,
152    });
153  } catch (error) {
154    console.warn(error);
155  }
156}
157
158// card
159export function trackViewCartButton(fundName, schemeCode, investmentMethod) {
160  try {
161    // window.dataLayer.push({
162    //   event: 'MF_Fund_Selected',
163    //   fundName,
164    //   schemeCode,
165    //   investmentMethod,
166    //   page_name: window.location.pathname,
167    // });
168
169    emitGtagEvent('MF_Fund_Selected', {
170      fundName,
171      schemeCode,
172      investmentMethod,
173      page_name: window.location.pathname,
174    });
175  } catch (error) {
176    console.warn(error);
177  }
178}
179
180export function trackAddMoreToCartButton() {
181  try {
182    // window.dataLayer.push({
183    //   event: 'MF_FundBuy_AddMore',
184    //   page_name: window.location.pathname,
185    // });
186
187    emitGtagEvent('MF_FundBuy_AddMore', {
188      page_name: window.location.pathname,
189    });
190  } catch (error) {
191    console.warn(error);
192  }
193}
194
195// other investment journey
196export function trackCalcInvestButton(eventName, calcname = '') {
197  try {
198    // window.dataLayer.push({
199    //   event: eventName,
200    //   calcname,
201    //   page_name: window.location.pathname,
202    // });
203
204    emitGtagEvent(eventName, {
205      calcname,
206      page_name: window.location.pathname,
207    });
208  } catch (error) {
209    console.warn(error);
210  }
211}
212
213export function trackAuthenticateButtonLogin(panNo) {
214  try {
215    // window.dataLayer.push({
216    //   event: 'mf_pan_verify',
217    //   panNo,
218    //   page_name: window.location.pathname,
219    // });
220
221    emitGtagEvent('mf_pan_verify', {
222      panNo,
223      page_name: window.location.pathname,
224    });
225
226    window.nv('event', 'mf_pan_verify', {
227      event: 'mf_pan_verify',
228      panNo,
229      page_name: window.location.pathname,
230    }, 100, 1);
231  } catch (error) {
232    // console.warn(error);
233  }
234}
235
236export function trackRegisterSubmitButtonLogin(panNo) {
237  try {
238    // window.dataLayer.push({
239    //   event: 'mf_register_submit',
240    //   panNo,
241    //   page_name: window.location.pathname,
242    // });
243
244    emitGtagEvent('mf_register_submit', {
245      panNo,
246      page_name: window.location.pathname,
247    });
248
249    window.nv('event', 'mf_register_submit', {
250      event: 'mf_register_submit',
251      panNo,
252      page_name: window.location.pathname,
253    }, 100, 1);
254  } catch (error) {
255    // console.warn(error);
256  }
257}
258
259export function trackNewKYCSubmitButtonLogin(panNo) {
260  try {
261    // window.dataLayer.push({
262    //   event: 'mf_kyc_start',
263    //   panNo,
264    //   page_name: window.location.pathname,
265    // });
266
267    emitGtagEvent('mf_kyc_start', {
268      panNo,
269      page_name: window.location.pathname,
270    });
271
272    window.nv('event', 'mf_kyc_start', {
273      event: 'mf_kyc_start',
274      panNo,
275      page_name: window.location.pathname,
276    }, 100, 1);
277  } catch (error) {
278    // console.warn(error);
279  }
280}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.