GRAYBYTE WORDPRESS FILE MANAGER4605

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wp-smushit/_src/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wp-smushit/_src/js//global-tracking.js
import tracker from './utils/tracker';

export default class GlobalTracking {
	init() {
		this.trackSubmenuProUpsell();
		this.trackPluginListProUpsell();
		this.trackDashboardWidgetProUpsell();
	}

	trackSubmenuProUpsell() {
		const submenuUpgradeLink = document.querySelector( '#toplevel_page_smush a[href*="utm_campaign=smush_submenu_upsell' );
		if ( submenuUpgradeLink ) {
			submenuUpgradeLink.addEventListener( 'click', ( event ) => {
				this.trackGeneralProUpsell( 'submenu', event?.target?.href );
			} );
		}
	}

	trackPluginListProUpsell() {
		const pluginlistUpgradeLink = document.getElementById( 'smush-pluginlist-upgrade-link' );
		if ( pluginlistUpgradeLink ) {
			pluginlistUpgradeLink.addEventListener( 'click', ( event ) => {
				this.trackGeneralProUpsell( 'plugins_list', event?.target?.href );
			} );
		}
	}

	trackDashboardWidgetProUpsell() {
		const upsellBox = document.getElementById( 'smush-box-dashboard-upsell-upsell' );
		if ( ! upsellBox ) {
			return;
		}

		const dashboardProUpsellLink = upsellBox.querySelector( 'a[href*=smush-dashboard-upsell]' );
		if ( dashboardProUpsellLink ) {
			dashboardProUpsellLink.addEventListener( 'click', ( event ) => {
				this.trackGeneralProUpsell( 'dash_widget', event?.target?.href );
			} );
		}
	}

	trackSetupWizardProUpsell( utmLink, proInterests ) {
		this.trackGeneralProUpsell( 'wizard', utmLink, proInterests );
	}

	trackGeneralProUpsell( localtion, utmLink, proInterests = 'na' ) {
		this.trackProUpsell( {
			Feature: 'pro_general',
			Location: localtion,
			'UTM Link': utmLink,
			'Pro Interests': proInterests,
		} );
	}

	trackProUpsell( properties ) {
		properties = Object.assign( {
			'User Action': 'cta_clicked',
		}, properties );

		tracker.track( 'smush_pro_upsell', properties );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
common
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
frontend
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
modules
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
smush
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
utils
--
July 10 2025 04:32:33
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:33
giriqfky / giriqfky
0644
app.js
1.726 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
global-tracking.js
1.741 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
global.js
2.84 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
loopback-tester.js
1.015 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
shared-ui.js
0.586 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
tutorials.js
2.234 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF