HEX
Server: Apache
System: Linux p3plzcpnl466169.prod.phx3.secureserver.net 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: wynnelaw5142 (399059)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/wynnelaw5142/public_html/wp-content/plugins/quick-setup/modules/googleanalytics.php
<?php

/**
 * Copyright 2013 Go Daddy Operating Company, LLC. All Rights Reserved.
 */

// Make sure it's wordpress
if ( !defined( 'ABSPATH' ) )
	die( 'Forbidden' );

add_action( 'gd_quicksetup_installed_plugin-googleanalytics', 'gd_quicksetup_setup_googleanalytics' );

/**
 * Set the google analytics tracking key
 * @return null
 */
function gd_quicksetup_setup_googleanalytics() {

	if ( !isset( $_POST['google_analytics_key'] ) || !preg_match( '/^UA\-[0-9]+\-[0-9]+$/', $_POST['google_analytics_key'] ) ) {
		deactivate_plugins( 'googleanalytics/googleanalytics.php' );
		return;
	}

	update_option( 'web_property_id', $_POST['google_analytics_key'] );
}