: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'id' => 'ppas-advanced-tracking-code',
'title' => esc_html__('Analytics Code in JSON Format', 'accelerated-mobile-pages'),
array('ampforwp-Piwik-Pro-switch', '=' , '1'),
array('ppas-advanced-tracking', '=' , '1')
"host": "##instance_domain##",
"website_id": "##app_id##",
"website_hash": "##tracker_hash##"
"request": "customevent",
"event_category": "buttons",
"event_name": "testButton"
'id' => 'ampforwp-Quantcast-switch',
'title' => 'Quantcast Measurement',
'default' => ampforwp_get_default_analytics('4'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track quantcast analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-quantcast-measurement-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' =>'amp-quantcast-analytics-code',
'title' => esc_html__('p-code','accelerated-mobile-pages'),
array('ampforwp-Quantcast-switch', '=' , '1')),
'id' => 'ampforwp-comScore-switch',
'title' => esc_html__('comScore','accelerated-mobile-pages'),
'default' => ampforwp_get_default_analytics('5'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track comScore analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-comscore-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' =>'amp-comscore-analytics-code-c1',
'title' => esc_html__('C1','accelerated-mobile-pages'),
array('ampforwp-comScore-switch', '=' , '1')),
'id' =>'amp-comscore-analytics-code-c2',
'title' => esc_html__('C2','accelerated-mobile-pages'),
array('ampforwp-comScore-switch', '=' , '1')),
'id' => 'ampforwp-Effective-switch',
'title' => 'Effective Measure',
'default' => ampforwp_get_default_analytics('6'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track effective measure analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-effective-measure-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'title' => esc_html__( 'Effective Measure Analytics', 'accelerated-mobile-pages' ),
array('ampforwp-Effective-switch', '=' , '1')
'desc' => esc_html__( 'Example: https://s.effectivemeasure.net/d/6/i?pu=CANONICAL_URL&ru=DOCUMENT_REFERRER&rnd=RANDOM', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__('Enter your Effective Measure URL.', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-StatCounter-switch',
'title' => 'StatCounter',
'default' => ampforwp_get_default_analytics('7'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track statcounter analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-statcounter-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'title' => esc_html__( 'StatCounter', 'accelerated-mobile-pages' ),
array('ampforwp-StatCounter-switch', '=' , '1')
'desc' => esc_html__( 'Example: https://c.statcounter.com/PROJECT_ID/0/SECURITY_CODE/1/', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__('Enter your StatCounter URL.', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-Histats-switch',
'title' => esc_html__('Histats Analytics','accelerated-mobile-pages'),
'default' => ampforwp_get_default_analytics('8'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track histats analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-get-histats-analytics-id/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'title' => esc_html__( 'Histats Analytics', 'accelerated-mobile-pages' ),
array('ampforwp-Histats-switch', '=' , '1')
'tooltip-subtitle' => esc_html__( 'Enter your Histats Analytics ID.', 'accelerated-mobile-pages' ),
'desc' => 'Tutorial: <a href="https://ampforwp.com/tutorials/how-to-get-histats-analytics-id/">How to get Histats Analytics ID for AMP?</a>',
'default' => ampforwp_get_setting('histats-feild'),
'id' => 'ampforwp-adobe-switch',
'title' => 'Adobe Analytics',
// 'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
// esc_html__('Enable this option to track Adobe analytics in AMP and', 'accelerated-mobile-pages'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-adobe-type',
'class' => 'child_opt_arrow',
'title' => esc_html__('Analytics Type', 'accelerated-mobile-pages'),
'options' => array('adobeanalytics'=>'Adobe Analytics' , 'adobeanalytics_nativeConfig'=>'Adobe Analytics Native Config'),
'default' => ampforwp_get_setting('ampforwp-adobe-type'),
'required'=>array('ampforwp-adobe-switch','=','1'),
// 'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
// esc_html__('Enable this option to track Adobe analytics in AMP and', 'accelerated-mobile-pages'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-adobe-orgid',
'title' => __( 'Organisation ID', 'accelerated-mobile-pages' ),
array('ampforwp-adobe-type', '=' , 'adobeanalytics_nativeConfig')
'tooltip-subtitle' => __( 'Enter the Adobe organization id ', 'accelerated-mobile-pages' ),
'desc' => __( 'For example: 224GYJDWUW4GV345JHB@AdobeOrg', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-adobe-subdomain',
'title' => __( 'Subdomain for tracking', 'accelerated-mobile-pages' ),
array('ampforwp-adobe-type', '=' , 'adobeanalytics_nativeConfig')
'tooltip-subtitle' => __( 'Enter the Subdomain for tracking', 'accelerated-mobile-pages' ),
'desc' => ' You need to create a subdomain which will be pointing to the root of your website. This is required otherwise tracking will not work. For example: adobestat.yourwebsite.com',
'id' => 'ampforwp-adobe-host',
'title' => __( 'Tracking Server', 'accelerated-mobile-pages' ),
array('ampforwp-adobe-switch', '=' , '1')
'tooltip-subtitle' => __( 'Enter the Adobe tracking server', 'accelerated-mobile-pages' ),
'desc' => 'For example: metrics.example.com',
'id' => 'ampforwp-adobe-reportsuiteid',
'title' => __( 'ReportSuite ID', 'accelerated-mobile-pages' ),
array('ampforwp-adobe-switch', '=' , '1')
'tooltip-subtitle' => __( 'Enter the ReportSuite ID', 'accelerated-mobile-pages' ),
'desc' => 'For example: reportSuiteID1, reportSuiteID2',
'id' => 'ampforwp-Yandex-switch',
'title' => esc_html__('Yandex Metrika','accelerated-mobile-pages'),
'default' => ampforwp_get_default_analytics('9'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track yandex metrika analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-yandex-metrika-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' =>'amp-Yandex-Metrika-analytics-code',
'title' => esc_html__('Yandex Metrika Analytics ID','accelerated-mobile-pages'),
array('ampforwp-Yandex-switch', '=' , '1')),
'tooltip-subtitle' => esc_html__( 'Enter your Counter ID.', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-Chartbeat-switch',
'title' => esc_html__('Chartbeat Analytics','accelerated-mobile-pages'),
'default' => ampforwp_get_default_analytics('10'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track chartbeat analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-chartbeat-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' =>'amp-Chartbeat-analytics-code',
'title' => esc_html__('Chartbeat Analytics ID','accelerated-mobile-pages'),
array('ampforwp-Chartbeat-switch', '=' , '1')),
'tooltip-subtitle' => esc_html__( 'Enter your Account ID.', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-Alexa-switch',
'title' => esc_html__('Alexa Metrics', 'accelerated-mobile-pages' ),
'default' => ampforwp_get_default_analytics('11'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track alexa metrics analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/add-alexa-metrics-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-alexa-account',
'title' => esc_html__( 'Alexa Metrics Account', 'accelerated-mobile-pages' ),
array('ampforwp-Alexa-switch', '=' , '1')
'tooltip-subtitle' => esc_html__( 'Enter Account Number given by Alexa Metrics', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-alexa-domain',
'title' => esc_html__( 'Alexa Metrics Domain', 'accelerated-mobile-pages' ),
array('ampforwp-Alexa-switch', '=' , '1')
'tooltip-subtitle' => esc_html__( 'Enter the domain', 'accelerated-mobile-pages' ),
'id' => 'ampforwp-afs-analytics-switch',
'title' => 'AFS Analytics',
'default' => ampforwp_get_default_analytics('12'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track afs analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-afs-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-afs-siteid',
'title' => esc_html__( 'Website ID', 'accelerated-mobile-pages' ),
array('ampforwp-afs-analytics-switch', '=' , '1')
'tooltip-subtitle' => esc_html__( 'Enter the Website ID', 'accelerated-mobile-pages' ),
'desc' => 'example: 00000003',
'id' =>'amp-clicky-switch',
'title' => esc_html__('Clicky Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track clicky analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-clicky-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'clicky-site-id',
'title' => esc_html__( 'Clicky Site ID', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__( 'Enter your Clicky Analytics Site ID. If you dont have account in Clicky, Please click','accelerated-mobile-pages'),
esc_url('https://clicky.com/help/faq/common/site-preferences'),
esc_html__('here','accelerated-mobile-pages'),
esc_html__( 'to create an account.','accelerated-mobile-pages' )
array('amp-clicky-switch', '=' , '1')
'placeholder' => esc_html__('YOUR_SITE_ID_HERE','accelerated-mobile-pages'),
'id' =>'ampforwp-callrail-switch',
'title' => esc_html__('Call Rail Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track callrail analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-callrail-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-callrail-config-url',
'title' => esc_html__( 'Config URL', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Enter your Call Rail Analytics Site Config URL','accelerated-mobile-pages'),
'desc'=>sprintf( '<a href="https://ampforwp.com/tutorials/article/how-to-add-callrail-analytics-in-amp/" target="_blank">%s</a>',esc_html__('View integration tutorial','accelerated-mobile-pages' )),
'required' => array('ampforwp-callrail-switch', '=' , '1')
'id' => 'ampforwp-callrail-number',
'title' => esc_html__( 'Tell Number', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Enter your Tell Number for Call Rail Analytics','accelerated-mobile-pages'),
'required' => array('ampforwp-callrail-switch', '=' , '1')
'id' => 'ampforwp-callrail-analytics-url',
'title' => esc_html__( 'Analytics Config URL', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Enter your Analytics Config URL','accelerated-mobile-pages'),
'required' => array('ampforwp-callrail-switch', '=' , '1')
//iotechnologies Analytics
'id' =>'ampforwp-iotech-switch',
'title' => esc_html__('IO Technologies Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track io technologies analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-iotechnologies-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-iotech-projectid',
'title' => esc_html__( 'Project ID', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Enter Your Project ID Here','accelerated-mobile-pages'),
'required' => array('ampforwp-iotech-switch', '=' , '1')
'id' =>'ampforwp-dotmetrics-switch',
'title' => esc_html__('Dotmetrics Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track dotmetrics analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-dotmetrics-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-dotmetrics-id',
'title' => esc_html__( 'User ID', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Enter Your User ID Here','accelerated-mobile-pages'),
'required' => array('ampforwp-dotmetrics-switch', '=' , '1')
'id' =>'ampforwp-topmailru-switch',
'title' => esc_html__('Top Mail Ru Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track topmailru analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-topmailru-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-topmailru-id',
'title' => esc_html__( 'Counter ID', 'accelerated-mobile-pages' ),
'tooltip-subtitle' => esc_html__( 'Enter Your Counter ID Here','accelerated-mobile-pages'),
'required' => array('ampforwp-topmailru-switch', '=' , '1')
'id' =>'ampforwp-plausible-switch',
'title' => esc_html__('Plausible Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track plausible analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-plausible-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' =>'amp-atinternet-switch',
'title' => esc_html__('AT internet Analytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track AT internet analytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-atinternet-analytics-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'amp-atinternet-site-id',
'title' => esc_html__( 'Site ID', 'accelerated-mobile-pages' ),
esc_html__( 'Enter your AT internet Analytics Site ID here','accelerated-mobile-pages'),
array('amp-atinternet-switch', '=' , '1')
'placeholder' => esc_html__('YOUR_SITE_ID_HERE','accelerated-mobile-pages'),
'id' =>'ampforwp-publytics-switch',
'title' => esc_html__('Publytics','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track publytics in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' => 'ampforwp-publytics-track-code',
'title' => esc_html__( 'Domain/Tracking Code', 'accelerated-mobile-pages' ),
esc_html__( 'Enter your publytics Tracking ID here','accelerated-mobile-pages'),
array('ampforwp-publytics-switch', '=' , '1')
'placeholder' => esc_html__('ADD_CODE_HERE','accelerated-mobile-pages'),
'id' =>'amp-marfeel-pixel',
'title' => esc_html__('Marfeel Pixel','accelerated-mobile-pages'),
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
esc_html__('Enable this option to track marfeel pixel in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-facebook-pixel-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
'id' =>'amp-marfeel-account-id',
'title' => esc_html__('Marfeel Account ID','accelerated-mobile-pages'),
'desc' => 'Example: 153246987501548',
array('amp-marfeel-pixel', '=' , '1')),