Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-conte.../plugins/accelera.../includes/features/analytic...
File: analytics-functions.php
return $ga4_fields;
[1000] Fix | Delete
}
[1001] Fix | Delete
[1002] Fix | Delete
add_filter( 'query_vars', 'ampforwp_adobe_query_var' );
[1003] Fix | Delete
function ampforwp_adobe_query_var( $qvars) {
[1004] Fix | Delete
if( true == ampforwp_get_setting('ampforwp-adobe-switch') && 'adobeanalytics_nativeConfig' == ampforwp_get_setting('ampforwp-adobe-type')){
[1005] Fix | Delete
$qvars[] = 'ampforwpAnalytics';
[1006] Fix | Delete
}
[1007] Fix | Delete
return $qvars;
[1008] Fix | Delete
}
[1009] Fix | Delete
[1010] Fix | Delete
function ampforwp_adobe_stats_page($wp_query){
[1011] Fix | Delete
[1012] Fix | Delete
if( false == ampforwp_get_setting('ampforwp-adobe-switch') || 'adobeanalytics_nativeConfig' != ampforwp_get_setting('ampforwp-adobe-type')){
[1013] Fix | Delete
return;
[1014] Fix | Delete
}
[1015] Fix | Delete
if(isset($wp_query->query_vars['ampforwpAnalytics']) && $wp_query->query_vars['ampforwpAnalytics']=='adobeNativeConfig'){
[1016] Fix | Delete
$hostname = ampforwp_get_setting('ampforwp-adobe-host');
[1017] Fix | Delete
$orgid = ampforwp_get_setting('ampforwp-adobe-orgid');
[1018] Fix | Delete
$ReportSuiteId = ampforwp_get_setting('ampforwp-adobe-reportsuiteid');
[1019] Fix | Delete
?>
[1020] Fix | Delete
<html>
[1021] Fix | Delete
<head>
[1022] Fix | Delete
<title>Adobe Stats Iframe</title>
[1023] Fix | Delete
<script language="javaScript" type="text/javascript" src="<?php echo AMPFORWP_ANALYTICS_URL;?>/VisitorAPI.js"></script>
[1024] Fix | Delete
<script language="javaScript" type="text/javascript" src="<?php echo AMPFORWP_ANALYTICS_URL;?>/AppMeasurement.js"></script>
[1025] Fix | Delete
</head>
[1026] Fix | Delete
<body>
[1027] Fix | Delete
<script>
[1028] Fix | Delete
var v_orgId = "<?php echo $orgid;?>";
[1029] Fix | Delete
var s_account = "<?php echo $ReportSuiteId;?>";
[1030] Fix | Delete
var s_trackingServer = "<?php echo $hostname;?>";
[1031] Fix | Delete
var visitor = Visitor.getInstance(v_orgId);
[1032] Fix | Delete
visitor.trackingServer = s_trackingServer;
[1033] Fix | Delete
var s = s_gi(s_account);
[1034] Fix | Delete
s.account = s_account;
[1035] Fix | Delete
s.trackingServer = s_trackingServer;
[1036] Fix | Delete
s.visitor = visitor;
[1037] Fix | Delete
s.pageName = s.Util.getQueryParam("pageName");
[1038] Fix | Delete
s.eVar1 = s.Util.getQueryParam("v1");
[1039] Fix | Delete
s.campaign = s.Util.getQueryParam("campaign");
[1040] Fix | Delete
s.pageURL = s.Util.getQueryParam("pageURL");
[1041] Fix | Delete
s.referrer = s.Util.getQueryParam("ref");
[1042] Fix | Delete
s.t();
[1043] Fix | Delete
</script>
[1044] Fix | Delete
</body>
[1045] Fix | Delete
</html>
[1046] Fix | Delete
<?php
[1047] Fix | Delete
exit;
[1048] Fix | Delete
[1049] Fix | Delete
}
[1050] Fix | Delete
}
[1051] Fix | Delete
[1052] Fix | Delete
add_filter( 'parse_query','ampforwp_adobe_stats_page', 10 );
[1053] Fix | Delete
function ampforwpremoveHttps($url) {
[1054] Fix | Delete
$url = preg_replace( "#^[^:/.]*[:/]+#i", "", $url );
[1055] Fix | Delete
return $url;
[1056] Fix | Delete
}
[1057] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function