Файловый менеджер - Редактировать - /home/digitalm/yhubita/wp-content/plugins/google-analytics-dashboard-for-wp/lite/assets/vue/js/wizard.min.js
Назад
import{n as g,m as x,d as J,b as z,V as p,a as Q,i as V,e as tt,p as et}from"./chunks/vendor-b9834729.min.js";import{d as st,S as ot,c as F,e as at,a as nt,b as it,A as rt,W as lt}from"./chunks/AboutTestimonialsSlider-a497a870.min.js";import{S as dt}from"./chunks/SettingsInfoTooltip-facc1a56.min.js";import{a as ct,S as U,M as gt,s as f}from"./chunks/index-11e10b96.min.js";import{C as ut}from"./chunks/ContentIconList-bbe6e6ed.min.js";const pt={name:"OnboardingContentHeader",props:{title:String,subtitle:String}};var ht=function(){var t=this,e=t._self._c;return e("header",[e("h2",{domProps:{innerHTML:t._s(t.title)}}),t.subtitle?e("p",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.subtitle)}}):t._e()])},_t=[],mt=g(pt,ht,_t,!1,null,null,null,null);const $=mt.exports,{__:k,sprintf:ft}=wp.i18n,bt={name:"OnboardingStepWelcome",components:{SettingsInputRadio:st,OnboardingContentHeader:$},data(){return{text_header_title:k("Welcome to ExactMetrics!","google-analytics-dashboard-for-wp"),text_header_subtitle:k("Let's get you set up.","google-analytics-dashboard-for-wp"),text_save:k("Save and Continue","google-analytics-dashboard-for-wp"),text_category_label:k("Which category best describes your website?","google-analytics-dashboard-for-wp"),text_category_sublabel:k("We will recommend the optimal settings for ExactMetrics based on your choice.","google-analytics-dashboard-for-wp"),options:[{value:"business",label:k("Business Website","google-analytics-dashboard-for-wp")},{value:"publisher",label:ft(k("Publisher %1$s(Blog)%2$s","google-analytics-dashboard-for-wp"),"<small>","</small>")},{value:"ecommerce",label:k("Ecommerce","google-analytics-dashboard-for-wp")}]}},methods:{handleSubmit(){this.$router.push(this.$wizard_steps[1])}}};var wt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-step-welcome"},[e("onboarding-content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"exactmetrics-onboarding-wizard-form"},[e("div",{staticClass:"exactmetrics-separator"}),e("form",{on:{submit:function(o){return o.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("div",{staticClass:"exactmetrics-form-row"},[e("div",{staticClass:"exactmetrics-form-label"},[e("label",{domProps:{textContent:t._s(t.text_category_label)}}),e("p",{staticClass:"exactmetrics-description",domProps:{textContent:t._s(t.text_category_sublabel)}})]),e("settings-input-radio",{attrs:{name:"site_type",options:t.options,auth_disabled:!1}})],1),e("div",{staticClass:"exactmetrics-separator"}),e("div",{staticClass:"exactmetrics-form-row exactmetrics-form-buttons"},[e("button",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-large",attrs:{type:"submit",name:"next_step"},domProps:{textContent:t._s(t.text_save)}})])])])],1)},yt=[],vt=g(bt,wt,yt,!1,null,null,null,null);const xt=vt.exports,{__:P,sprintf:E}=wp.i18n,kt={name:"OnboardingLicense",computed:{...x({license:"$_license/license",license_network:"$_license/license_network",auth:"$_auth/auth"})},data(){return{text_license_label:P("License Key","google-analytics-dashboard-for-wp"),text_license_description_1:E(P("You’re using %1$sExactMetrics Lite%2$s - no license needed. Enjoy! %3$s","google-analytics-dashboard-for-wp"),"<strong>","</strong>",'<span class="exactmetrics-bg-img exactmetrics-smile"></span>'),text_license_description_2:E(P("As a valued ExactMetrics Lite user you %1$sreceive 50%% off%2$s, automatically applied at checkout.","google-analytics-dashboard-for-wp"),'<span class="exactmetrics-highlighted-text">',"</span>"),text_upgrade_button:P("Unlock All Features and Upgrade to Pro","google-analytics-dashboard-for-wp")}}};var Ct=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-license-lite"},[e("div",{staticClass:"exactmetrics-separator"}),e("label",{domProps:{textContent:t._s(t.text_license_label)}}),e("div",{staticClass:"settings-input settings-input-license"},[e("p",{domProps:{innerHTML:t._s(t.text_license_description_1)}}),e("p",{domProps:{innerHTML:t._s(t.text_license_description_2)}}),e("a",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-regular",attrs:{href:t.$getUpgradeUrl("onboarding","license"),target:"_blank"},domProps:{textContent:t._s(t.text_upgrade_button)}})])])},$t=[],Pt=g(kt,Ct,$t,!1,null,null,null,null);const St=Pt.exports,{__:h,sprintf:Mt}=wp.i18n,Tt={name:"OnboardingAuthenticate",components:{SettingsNetworkNotice:ot},props:{label:String,description:String},data(){return{is_network:this.$mi.network,text_button_connect:h("Connect ExactMetrics","google-analytics-dashboard-for-wp"),text_button_reconnect:h("Reconnect ExactMetrics","google-analytics-dashboard-for-wp"),text_website_profile:h("Website profile","google-analytics-dashboard-for-wp"),text_active_profile:h("Active profile","google-analytics-dashboard-for-wp"),text_auth_network:h("Your website profile has been set at the network level of your WordPress Multisite.","google-analytics-dashboard-for-wp"),text_auth_network_2:h("If you would like to use a different profile for this subsite, you can authenticate below.","google-analytics-dashboard-for-wp"),text_skip:h("Skip and Keep Connection","google-analytics-dashboard-for-wp"),text_manual_v4_label:h("Manually enter your GA4 Measurement ID","google-analytics-dashboard-for-wp"),text_manual_v4_description:h("Warning: If you use a manual GA4 Measurement ID, you won't be able to use any of the reporting and some of the tracking features. Your UA code should look like G-XXXXXXXXXX where the X's are combination of numbers and letters.","google-analytics-dashboard-for-wp"),text_v4_measurement_protocol:h("Measurement Protocol API Secret","google-analytics-dashboard-for-wp"),text_v4_measurement_protocol_description:Mt(h("The Measurement Protocol API secret allows your site to send tracking data to Google Analytics. To retrieve your Measurement Protocol API Secret, follow %1$sthis guide%2$s.","google-analytics-dashboard-for-wp"),'<a href="'+this.$getUrl("dual-tracking","settings","https://www.exactmetrics.com/docs/how-to-create-your-measurement-protocol-api-secret-in-ga4/")+'" target="_blank">',"</a>"),has_error:!1,has_v4_error:!1}},computed:{...x({license:"$_license/license",license_network:"$_license/license_network",auth:"$_auth/auth"}),iconClass(){let s="monstericon-arrow";return this.showButtons&&(s+=" monstericon-down"),s},measurement_protocol_secret(){return this.is_network?this.auth.network_measurement_protocol_secret:this.auth.measurement_protocol_secret}},methods:{submitForm:function(){this.$emit("nextstep",!0)},doAuth:function(s){s.preventDefault();const t=this;this.$swal({customClass:{container:"exactmetrics-swal exactmetrics-swal-loading"},icon:"info",title:h("Authenticating","google-analytics-dashboard-for-wp"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,loaderHtml:t.$getCustomLoaderHtml(),didOpen:function(){t.$swal.showLoading()}}),this.$store.dispatch("$_auth/doAuth",this.is_network).then(function(e){e.data.redirect?window.location=e.data.redirect:t.$swal({icon:"error",title:h("Error","google-analytics-dashboard-for-wp"),html:e.data.message,confirmButtonText:h("Ok","google-analytics-dashboard-for-wp")})})},doReAuth:function(s){s.preventDefault();const t=this;this.$swal({customClass:{container:"exactmetrics-swal exactmetrics-swal-loading"},icon:"info",title:h("Re-Authenticating","google-analytics-dashboard-for-wp"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,loaderHtml:t.$getCustomLoaderHtml(),didOpen:function(){t.$swal.showLoading()}}),this.$store.dispatch("$_auth/doReAuth",this.is_network).then(function(e){e.data.redirect?window.location=e.data.redirect:t.$swal({icon:"error",title:h("Error","google-analytics-dashboard-for-wp"),html:e.data.message,confirmButtonText:h("Ok","google-analytics-dashboard-for-wp")})})},processActionResponse:function(s){s.success===!1?(s.data.v4_error?this.has_v4_error=!0:s.data.error&&(this.has_v4_error=!1),this.has_error=s.data.error,this.$mi_error_toast({})):(this.has_v4_error=!1,this.has_error=!1,this.$mi_success_toast({}))},updateMeasurementProtocolSecret:function(s){this.$mi_saving_toast({}),this.has_error=!1,this.$store.dispatch("$_auth/updateMeasurementProtocolSecret",{value:s.target.value,network:this.is_network}).then(this.processActionResponse)}}};var At=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-settings-input exactmetrics-settings-input-authenticate"},[t.auth.network_v4&&!t.is_network&&!t.auth.v4?e("settings-network-notice",[e("strong",{domProps:{textContent:t._s(t.text_auth_network)}}),e("span",{domProps:{textContent:t._s(t.text_auth_network_2)}})]):t._e(),(t.is_network?t.auth.network_v4:t.auth.v4)?e("div",{staticClass:"exactmetrics-auth-info"},[e("span",{staticClass:"exactmetrics-dark",domProps:{textContent:t._s(t.text_website_profile)}}),e("p",[e("span",{domProps:{textContent:t._s(t.text_active_profile)}}),t._v(": "),e("span",{domProps:{textContent:t._s(t.is_network?t.auth.network_viewname:t.auth.viewname)}})]),e("div",{staticClass:"exactmetrics-separator"}),e("label",{staticClass:"exactmetrics-dark",attrs:{for:"exactmetrics-v4-measurement-protocol"},domProps:{textContent:t._s(t.text_v4_measurement_protocol)}}),e("p",{staticClass:"exactmetrics-field-description",domProps:{innerHTML:t._s(t.text_v4_measurement_protocol_description)}}),e("input",{staticClass:"exactmetrics-manual-ua",attrs:{id:"exactmetrics-v4-measurement-protocol",type:"text"},domProps:{value:t.measurement_protocol_secret},on:{change:t.updateMeasurementProtocolSecret}}),e("div",{staticClass:"exactmetrics-separator"}),e("div",[e("div",{staticClass:"exactmetrics-auth-actions"},[e("button",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-large",domProps:{textContent:t._s(t.text_button_reconnect)},on:{click:t.doReAuth}}),e("button",{staticClass:"exactmetrics-text-button exactmetrics-pull-right",attrs:{type:"submit"},on:{click:function(o){return o.preventDefault(),t.submitForm.apply(null,arguments)}}},[e("span",{domProps:{textContent:t._s(t.text_skip)}}),e("i",{staticClass:"monstericon-arrow-right"})])])])]):e("div",[e("span",{staticClass:"exactmetrics-dark",domProps:{textContent:t._s(t.label)}}),e("p",{domProps:{innerHTML:t._s(t.description)}}),e("button",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-large",domProps:{textContent:t._s(t.text_button_connect)},on:{click:t.doAuth}})])],1)},It=[],zt=g(Tt,At,It,!1,null,null,null,null);const Ot=zt.exports,{__:b,sprintf:Et}=wp.i18n,Lt={name:"OnboardingStepWelcome",components:{OnboardingAuthenticate:Ot,OnboardingLicense:St,OnboardingContentHeader:$},data(){return{text_header_title:b("Connect ExactMetrics to Your Website","google-analytics-dashboard-for-wp"),text_header_subtitle:b("ExactMetrics connects Google Analytics to WordPress and shows you stats that matter.","google-analytics-dashboard-for-wp"),text_authenticate_label:b("Connect Google Analytics + WordPress","google-analytics-dashboard-for-wp"),text_authenticate_description:b("You will be taken to the ExactMetrics website where you'll need to connect your Analytics account.","google-analytics-dashboard-for-wp"),text_error_auth:b("Whoops, something went wrong and we weren't able to connect to ExactMetrics. Please enter your GA4 Measurement ID manually.","google-analytics-dashboard-for-wp"),text_save:b("Save and Continue","google-analytics-dashboard-for-wp"),is_network:this.$mi.network,has_error:!1,auth_error:!1,manual_valid:!0,has_v4_error:!1,text_manual_v4_label:b("Manually enter your GA4 Measurement ID","google-analytics-dashboard-for-wp"),text_manual_v4_description:b("Warning: If you use a manual GA4 Measurement ID, you won't be able to use any of the reporting and some of the tracking features. Your Id code should look like G-XXXXXXXXXX where the X's are combination of numbers and letters.","google-analytics-dashboard-for-wp"),text_v4_measurement_protocol:b("Measurement Protocol API Secret","google-analytics-dashboard-for-wp"),text_v4_measurement_protocol_description:Et(b("The Measurement Protocol API secret allows your site to send tracking data to Google Analytics. To retrieve your Measurement Protocol API Secret, follow %1$sthis guide%2$s.","google-analytics-dashboard-for-wp"),'<a href="'+this.$getUrl("dual-tracking","settings","https://www.exactmetrics.com/docs/how-to-create-your-measurement-protocol-api-secret-in-ga4/")+'" target="_blank">',"</a>")}},computed:{...x({auth:"$_auth/auth"}),manual_button_class(){let s="exactmetrics-onboarding-button exactmetrics-onboarding-button-large";return this.manual_valid||(s+=" exactmetrics-button-disabled"),s},measurement_protocol_secret(){return this.is_network?this.auth.network_measurement_protocol_secret:this.auth.measurement_protocol_secret}},methods:{handleSubmit(){if(this.auth_error&&this.auth.manual_v4===""&&this.auth.network_manual_v4===""){this.manual_valid=!1,this.has_error=b("GA4 Measurement ID can't be empty","google-analytics-dashboard-for-wp");return}this.auth_error&&!this.manual_valid||this.$router.push(this.$wizard_steps[2])},updateManualV4:function(s){const t=this;this.$mi_saving_toast({}),t.has_error=!1,this.$store.dispatch("$_auth/updateManualV4",{v4:s.target.value,network:this.is_network}).then(function(e){e.success===!1?(t.has_error=e.data.error,t.has_v4_error=!0,t.$swal.close(),s.target.value=""):(t.has_error=!1,t.has_v4_error=!1,t.manual_valid=!0,t.$swal.close())})},updateMeasurementProtocolSecret:function(s){this.$mi_saving_toast({}),this.has_error=!1,this.$store.dispatch("$_auth/updateMeasurementProtocolSecret",{value:s.target.value,network:this.is_network}).then(function(t){t.success===!1?(self.has_error=t.data.error,self.$swal.close(),s.target.value=""):(self.has_error=!1,self.manual_valid=!0,self.$swal.close())})}},mounted(){if(typeof URLSearchParams<"u"){let s=new URLSearchParams(window.location.search);if(s){let t=s.get("mi-auth-error");(t==="1"||t==="2")&&(this.auth_error=parseInt(t),this.auth.manual_v4&&(this.manual_valid=!0))}}}};var Rt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-step-authenticate"},[e("onboarding-content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"exactmetrics-onboarding-wizard-form"},[e("form",[e("div",{staticClass:"exactmetrics-form-row"},[e("onboarding-license")],1),e("div",{staticClass:"exactmetrics-separator"}),t.auth_error?[e("label",{staticClass:"exactmetrics-dark",domProps:{textContent:t._s(t.text_manual_v4_label)}}),e("p",{domProps:{innerHTML:t._s(t.text_manual_v4_description)}}),e("input",{staticClass:"exactmetrics-manual-ua",attrs:{id:"exactmetrics-auth-manual-v4-input",type:"text"},domProps:{value:t.is_network?t.auth.network_manual_v4:t.auth.manual_v4},on:{change:t.updateManualV4}}),t.has_v4_error?e("label",{staticClass:"exactmetrics-error"},[e("i",{staticClass:"monstericon-warning-triangle"}),e("span",{domProps:{innerHTML:t._s(t.has_error)}})]):t._e(),t.auth.manual_v4||t.auth.network_manual_v4?[e("div",{staticClass:"exactmetrics-separator"}),e("label",{staticClass:"exactmetrics-dark",attrs:{for:"exactmetrics-v4-measurement-protocol"},domProps:{textContent:t._s(t.text_v4_measurement_protocol)}}),e("p",{staticClass:"exactmetrics-field-description",domProps:{innerHTML:t._s(t.text_v4_measurement_protocol_description)}}),e("input",{staticClass:"exactmetrics-manual-ua",attrs:{id:"exactmetrics-v4-measurement-protocol",type:"text"},domProps:{value:t.measurement_protocol_secret},on:{change:t.updateMeasurementProtocolSecret}})]:t._e(),e("div",{staticClass:"exactmetrics-separator"}),e("div",{staticClass:"exactmetrics-form-row exactmetrics-form-buttons"},[e("button",{class:t.manual_button_class,attrs:{type:"submit",name:"next_step"},domProps:{textContent:t._s(t.text_save)},on:{click:function(o){return o.preventDefault(),t.handleSubmit.apply(null,arguments)}}})])]:[e("onboarding-authenticate",{attrs:{label:t.text_authenticate_label,description:t.text_authenticate_description},on:{nextstep:t.handleSubmit}})]],2)])],1)},Wt=[],Dt=g(Lt,Rt,Wt,!1,null,null,null,null);const G=Dt.exports,{__:S,sprintf:Ft}=wp.i18n,Ut={name:"OnboardingImprove",components:{SettingsInputCheckbox:F},data(){return{text_anonymous_label:S("Help Us Improve","google-analytics-dashboard-for-wp"),text_anonymous_description:S("Help us better understand our users and their website needs.","google-analytics-dashboard-for-wp"),text_anonymous_tooltip:Ft(S("If enabled ExactMetrics will send some information about your WordPress site like what plugins and themes you use and which ExactMetrics settings you use to us so that we can improve our product. For a complete list of what we send and what we use it for, %1$svisit our website.%2$s","google-analytics-dashboard-for-wp"),'<a target="_blank" href="'+this.$getUrl("onboarding-wizard","usage-tracking","https://www.exactmetrics.com/docs/usage-tracking/")+'">',"</a>")}}};var Gt=function(){var t=this,e=t._self._c;return e("div",[e("settings-input-checkbox",{attrs:{name:"anonymous_data",label:t.text_anonymous_label,description:t.text_anonymous_description,tooltip:t.text_anonymous_tooltip}}),e("div",{staticClass:"exactmetrics-separator"})],1)},Ht=[],Bt=g(Ut,Gt,Ht,!1,null,null,null,null);const Nt=Bt.exports,{__:l,sprintf:L}=wp.i18n,Xt={name:"OnboardingStepRecommendedSettings",components:{OnboardingImprove:Nt,SettingsInputSelect:at,SettingsInfoTooltip:dt,SettingsInputRepeater:nt,SettingsInputText:it,SettingsInputCheckbox:F,OnboardingContentHeader:$},data(){return{text_header_title:l("Recommended Settings","google-analytics-dashboard-for-wp"),text_header_subtitle:l("ExactMetrics recommends the following settings based on your configuration.","google-analytics-dashboard-for-wp"),text_events_label:l("Events Tracking","google-analytics-dashboard-for-wp"),text_events_description:l("Must have for all click tracking on site.","google-analytics-dashboard-for-wp"),text_events_tooltip:l("ExactMetrics uses an advanced system to automatically detect all outbound links, download links, affiliate links, telephone links, mail links, and more automatically. We do all the work for you so you don't have to write any code.","google-analytics-dashboard-for-wp"),text_link_attribution_label:l("Enhanced Link Attribution","google-analytics-dashboard-for-wp"),text_link_attribution_description:l("Improves the accuracy of your In-Page Analytics.","google-analytics-dashboard-for-wp"),text_link_attribution_tooltip:l("ExactMetrics will automatically help Google determine which links are unique and where they are on your site so that your In-Page Analytics reporting will be more accurate.","google-analytics-dashboard-for-wp"),text_updates_label:l("Install Updates Automatically","google-analytics-dashboard-for-wp"),text_updates_description:l("Get the latest features, bug fixes, and security updates as they are released.","google-analytics-dashboard-for-wp"),text_updates_tooltip:l("To ensure you get the latest bug fixes and security updates and avoid needing to spend time logging into your WordPress site to update ExactMetrics, we offer the ability to automatically have ExactMetrics update itself.","google-analytics-dashboard-for-wp"),text_badge_label:l("Show ExactMetrics Badge","google-analytics-dashboard-for-wp"),text_badge_description:l("Build trust with website visitors by automatically placing a ExactMetrics badge in your website’s footer.","google-analytics-dashboard-for-wp"),text_extensions_of_files_label:l("File Download Tracking","google-analytics-dashboard-for-wp"),text_extensions_of_files_description:l("Helps you see file downloads data.","google-analytics-dashboard-for-wp"),text_extensions_of_files_tooltip:l("ExactMetrics will automatically track downloads of common file types from links you have inserted onto your website. For example: want to know how many of your site's visitors have downloaded a PDF or other file you offer your visitors to download on your site? ExactMetrics makes this both easy, and code-free! You can customize the file types to track at any time from our settings panel.","google-analytics-dashboard-for-wp"),repeater_structure:[{name:"path",label:L(l("Path (example: %s)","google-analytics-dashboard-for-wp"),"/go/"),pattern:/^\/\S+$/,error:l("Path has to start with a / and have no spaces","google-analytics-dashboard-for-wp")},{name:"label",label:L(l("Label (example: %s)","google-analytics-dashboard-for-wp"),"aff"),pattern:/^\S+$/,error:l("Label can't contain any spaces","google-analytics-dashboard-for-wp")}],text_affiliate_repeater_description:l("Helps you increase affiliate revenue.","google-analytics-dashboard-for-wp"),text_affiliate_tooltip_content:l("ExactMetrics will automatically help you track affiliate links that use internal looking urls like example.com/go/ or example.com/refer/. You can add custom affiliate patterns on our settings panel when you finish the onboarding wizard.","google-analytics-dashboard-for-wp"),text_affiliate_label:l("Affiliate Link Tracking","google-analytics-dashboard-for-wp"),text_permissions_view_label:l("Who Can See Reports","google-analytics-dashboard-for-wp"),text_permissions_view_description:l("These user roles will be able to access ExactMetrics' reports in the WordPress admin area.","google-analytics-dashboard-for-wp"),text_permissions_view_tooltip:l("Enable specific user roles to access and view the ExactMetrics reports here. A user with the 'manage_options' capability and any user with at least one of these roles can view the reports.","google-analytics-dashboard-for-wp"),text_save:l("Save and continue","google-analytics-dashboard-for-wp"),text_events_faux_tooltip:l("Events Tracking is enabled the moment you set up ExactMetrics","google-analytics-dashboard-for-wp"),text_link_attribution_faux_tooltip:l("Enhanced Link Attribution is enabled the moment you set up ExactMetrics","google-analytics-dashboard-for-wp"),text_add_role:l("+ Add Role","google-analytics-dashboard-for-wp")}},methods:{handleSubmit(){this.$router.push(this.$wizard_steps[3])}},computed:{...x({settings:"$_settings/settings"}),user_roles:function(){let s=[];for(let t in this.$mi.roles)s.push({label:this.$mi.roles[t],value:t});return s},user_roles_manage_options:function(){let s=[];for(let t in this.$mi.roles_manage_options)s.push({label:this.$mi.roles_manage_options[t],value:t});return s}}};var Kt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-step-recommended-settings"},[e("onboarding-content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"exactmetrics-onboarding-wizard-form"},[e("form",{attrs:{action:"",method:"post"},on:{submit:function(o){return o.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("div",{staticClass:"exactmetrics-separator"}),e("settings-input-checkbox",{attrs:{label:t.text_events_label,description:t.text_events_description,tooltip:t.text_events_tooltip,faux:!0,faux_tooltip:t.text_events_faux_tooltip}}),e("div",{staticClass:"exactmetrics-separator"}),e("settings-input-checkbox",{attrs:{label:t.text_link_attribution_label,description:t.text_link_attribution_description,tooltip:t.text_link_attribution_tooltip,faux:!0,faux_tooltip:t.text_link_attribution_faux_tooltip}}),e("div",{staticClass:"exactmetrics-separator"}),e("settings-input-text",{attrs:{default_value:"doc,pdf,ppt,zip,xls,docx,pptx,xlsx",name:"extensions_of_files",label:t.text_extensions_of_files_label,description:t.text_extensions_of_files_description,tooltip:t.text_extensions_of_files_tooltip}}),e("div",{staticClass:"exactmetrics-separator"}),e("p",[e("label",{domProps:{textContent:t._s(t.text_affiliate_label)}}),e("span",{staticClass:"exactmetrics-sublabel",domProps:{innerHTML:t._s(t.text_affiliate_repeater_description)}}),e("settings-info-tooltip",{attrs:{content:t.text_affiliate_tooltip_content}})],1),e("settings-input-repeater",{attrs:{structure:t.repeater_structure,name:"affiliate_links",data:t.settings.affiliate_links}}),e("div",{staticClass:"exactmetrics-separator"}),e("settings-input-select",{attrs:{options:t.user_roles,forced:t.user_roles_manage_options,multiple:!0,name:"view_reports",label:t.text_permissions_view_label,description:t.text_permissions_view_description,tooltip:t.text_permissions_view_tooltip,addtext:t.text_add_role}}),e("div",{staticClass:"exactmetrics-separator"}),e("settings-input-checkbox",{attrs:{"value-on":"all","value-off":"none",name:"automatic_updates",label:t.text_updates_label,description:t.text_updates_description,tooltip:t.text_updates_tooltip}}),e("div",{staticClass:"exactmetrics-separator"}),e("settings-input-checkbox",{attrs:{name:"verified_automatic",label:t.text_badge_label,description:t.text_badge_description}}),e("div",{staticClass:"exactmetrics-separator"}),e("onboarding-improve"),e("div",{staticClass:"exactmetrics-form-row exactmetrics-form-buttons"},[e("button",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-large",attrs:{type:"submit",name:"next_step"},domProps:{textContent:t._s(t.text_save)}})])],1)])],1)},Yt=[],jt=g(Xt,Kt,Yt,!1,null,null,null,null);const H=jt.exports,qt={name:"OnboardingAddon",props:{feature:{type:Object,required:!0},allRecommendedPlugins:{type:Array,required:!0}},data(){return{group:""}},computed:{...x({addons:"$_addons/addons"}),isFeatureInstalled(){return this.feature.data.faux?!0:this.feature.id==="recommended_plugins"?this.checkArrayOfInstalled(this.allRecommendedPlugins):this.feature.addons?this.checkArrayOfInstalled(this.feature.addons):!1}},methods:{toggleCheck(s){this.$emit("item-checkbox-updated",this.feature,s.target.checked)},toggleGroup(s){this.group===""?this.group=s:this.group="",this.$emit("toggle-group",s)},checkArrayOfInstalled(s){let t=!0;return s.forEach(e=>{this.addons[e]?this.addons[e].installed===!1&&(t=!1):t=!1}),t}}};var Zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-features exactmetrics-flex"},[e("div",{staticClass:"exactmetrics-feat-content"},[e("p",[e("span",[t._v(t._s(t.feature.data.title))]),t.feature.group_heading?e("a",{staticClass:"icon",on:{click:function(o){return t.toggleGroup(t.feature.group_heading)}}},[t.group===""?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",fill:"none"}},[e("path",{attrs:{fill:"#586074","fill-rule":"evenodd",d:"M4.91 6.758a1.157 1.157 0 0 0 1.636 0l4.363-4.362A1.157 1.157 0 0 0 9.272.76L5.728 4.305 2.184.76A1.157 1.157 0 0 0 .547 2.395L4.91 6.76v-.001Z","clip-rule":"evenodd"}})]):t._e(),t.group===t.feature.group_heading?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",fill:"none"}},[e("path",{attrs:{fill:"#586074","fill-rule":"evenodd",d:"M4.91.76a1.157 1.157 0 0 1 1.636 0l4.363 4.361a1.157 1.157 0 0 1-1.637 1.636L5.728 3.213 2.184 6.757A1.157 1.157 0 0 1 .547 5.122L4.91.76Z","clip-rule":"evenodd"}})]):t._e()]):t._e()]),e("p",[t._v(t._s(t.feature.data.description))]),t.feature.data.checked&&t.feature.data.installText&&!t.feature.data.faux?e("p",{staticClass:"exactmetrics-feat-content-install-text"},[t._v(" "+t._s(t.feature.data.installText)+" ")]):t._e(),t.feature.data.faux&&t.feature.data.installedText?e("p",{staticClass:"exactmetrics-feat-content-install-text"},[t._v(" "+t._s(t.feature.data.installedText)+" ")]):t._e()]),e("div",{staticClass:"exactmetrics-feat-checkbox"},[t.isFeatureInstalled?e("label",{staticClass:"exactmetrics-checkbox-round 1"},[e("input",{staticClass:"faux",attrs:{id:t.feature.id,type:"checkbox",disabled:""},domProps:{checked:!0}}),e("span",{staticClass:"checkmark",attrs:{id:"checkmark-loader-"+t.feature.id}})]):t.feature.loading?e("label",{staticClass:"exactmetrics-checkbox-round"},[e("span",{staticClass:"loader",staticStyle:{display:"block"}})]):e("label",{staticClass:"exactmetrics-checkbox-round 3"},[e("input",{staticClass:"addon-checkbox",attrs:{id:t.feature.id,type:"checkbox",name:t.feature.id},domProps:{checked:t.feature.data.checked},on:{click:t.toggleCheck}}),e("span",{class:{checkmark:!0,remove:!t.feature.data.checked,error:t.feature.error},attrs:{id:"checkmark-loader-"+t.feature.id}})])])])},Jt=[],Qt=g(qt,Zt,Jt,!1,null,null,null,null);const Vt=Qt.exports,{__:n}=wp.i18n,te={name:"OnboardingStepRecommendedFeatures",components:{OnboardingContentHeader:$,OnboardingAddon:Vt},data(){return{skip_for_now:n("Skip for Now","google-analytics-dashboard-for-wp"),text_header_title:n("Which website features would you like to enable?","google-analytics-dashboard-for-wp"),text_header_subtitle:n("We’ve already selected our recommended features based on your site. ","google-analytics-dashboard-for-wp"),text_other_addons:n("Other Addons","google-analytics-dashboard-for-wp"),text_other_addons_button:n("View all ExactMetrics addons","google-analytics-dashboard-for-wp"),text_save:n("Continue","google-analytics-dashboard-for-wp"),features_awaiting_install:[],features_awaiting_install_text:n("The following plugins will be installed: ","google-analytics-dashboard-for-wp"),features_list:[{id:"standard",standard:{addons:"standard"},data:{feature:"standard",title:n("Standard Analytics & Reports","google-analytics-dashboard-for-wp"),description:n("Get the reports and stats that matter right inside your WordPress Dashboard.","google-analytics-dashboard-for-wp"),faux:!0}},{id:"enhanced_link",enhanced_link:{addons:"enhanced-link"},data:{feature:"enhanced-link",title:n("Enhanced Link Attribution","google-analytics-dashboard-for-wp"),description:n("Helps you see what links your users are clicking on your site.","google-analytics-dashboard-for-wp"),faux:!0}},{id:"recommended_plugins",group_heading:"recommended-plugins",data:{feature:"recommended_plugins",title:n("Add Recommended Plugins To My Website","google-analytics-dashboard-for-wp"),description:n("Get the best plugins to help you collect user feedback, create contact forms, improve your SEO, and convert users.","google-analytics-dashboard-for-wp"),checked:!0},loading:!1},{id:"userfeedback_lite",addons:["userfeedback-lite"],group:"recommended-plugins",data:{feature:"userfeedback-lite",title:n("Collect User Feedback","google-analytics-dashboard-for-wp"),description:n("Ask visitors questions about your website and content to learn how you can improve and grow your business.","google-analytics-dashboard-for-wp"),checked:!0,installText:n("Installs UserFeedback","google-analytics-dashboard-for-wp"),installedText:n("UserFeedback is already installed","google-analytics-dashboard-for-wp")},loading:!1,error:!1},{id:"aioseo",addons:["aioseo"],group:"recommended-plugins",data:{feature:"aioseo",title:n("All In One SEO Toolkit","google-analytics-dashboard-for-wp"),description:n("The best WordPress SEO plugin that works with ExactMetrics to boost your rankings.","google-analytics-dashboard-for-wp"),checked:!0,installText:n("Installs All In One SEO Toolkit","google-analytics-dashboard-for-wp"),installedText:n("All In One SEO Toolkit is already installed","google-analytics-dashboard-for-wp")},loading:!1,error:!1},{id:"duplicator",addons:["duplicator"],group:"recommended-plugins",data:{feature:"duplicator",title:n("Website Backup and Migration","google-analytics-dashboard-for-wp"),description:n("Backup your website's files and databases for free with the #1 backup solution.","google-analytics-dashboard-for-wp"),checked:!0,installText:n("Installs Duplicator","google-analytics-dashboard-for-wp"),installedText:n("Duplicator is already installed","google-analytics-dashboard-for-wp")},loading:!1,error:!1},{id:"wpforms_lite",addons:["wpforms-lite"],group:"recommended-plugins",data:{feature:"wpforms-lite",title:n("Smart Form Builder by WPForms","google-analytics-dashboard-for-wp"),description:n("The most popular WordPress form plugin, trusted by over 6 million websites. Easily create contact forms, payment forms, surveys and more.","google-analytics-dashboard-for-wp"),checked:!0,installText:n("Installs WPForms","google-analytics-dashboard-for-wp"),installedText:n("WPForms is already installed","google-analytics-dashboard-for-wp")},loading:!1,error:!1},{id:"optinmonster",addons:["optinmonster"],group:"recommended-plugins",data:{feature:"optinmonster",title:n("Conversion Tools","google-analytics-dashboard-for-wp"),description:n("Get the #1 conversion optimization plugin to convert your growing website traffic into subscribers, leads and sales.","google-analytics-dashboard-for-wp"),checked:!0,installText:n("Installs OptinMonster","google-analytics-dashboard-for-wp"),installedText:n("OptinMonster is already installed","google-analytics-dashboard-for-wp")},loading:!1,error:!1},{id:"eu_compliance",addons:["eu-compliance"],data:{feature:"eu-compliance",title:n("Privacy Compliance Addon","google-analytics-dashboard-for-wp"),description:n("Help Google Analytics become compliant with internet privacy laws like GDPR, PECR, and CCPA.","google-analytics-dashboard-for-wp"),checked:!1},loading:!1,error:!1},{id:"advanced_reports",addons:["dimensions","forms","ecommerce","page-insights"],data:{feature:["dimensions","forms","ecommerce","page-insights"],title:n("Advanced Reports","google-analytics-dashboard-for-wp"),description:n("Get access to advanced reports inside WordPress including search keywords report, real-time analytics dashboard, publishers / eCommerce report, custom dimensions, and more.","google-analytics-dashboard-for-wp"),checked:!1},loading:!1,error:!1},{id:"ecommerce",addons:["ecommerce"],data:{feature:"ecommerce",title:n("eCommerce Tracking","google-analytics-dashboard-for-wp"),description:n("Instantly enable enhanced eCommerce tracking, so you can measure conversions, sales, and revenue stats. Works with WooCommerce, Easy Digital Downloads, MemberPress, and more.","google-analytics-dashboard-for-wp"),checked:!1},loading:!1,error:!1},{id:"advanced_tracking",addons:["dimensions","forms"],data:{feature:["dimensions","forms"],title:n("20+ Advanced Tracking","google-analytics-dashboard-for-wp"),description:n("Get access to advanced tracking features like form conversion tracking, author tracking, custom dimensions, scroll tracking, and more.","google-analytics-dashboard-for-wp"),checked:!1},loading:!1,error:!1},{id:"media",addons:["media"],data:{feature:"media",title:n("Media Tracking","google-analytics-dashboard-for-wp"),description:n("Track how your users interact with videos on your website.","google-analytics-dashboard-for-wp"),checked:!1},loading:!1,error:!1}],allRecommendedPlugins:["userfeedback-lite","aioseo","optinmonster","wpforms-lite","duplicator"],active_group:"",recommendedPluginsGroupState:{allDisabled:!1,allChecked:!1}}},computed:{...x({settings:"$_settings/settings",addons:"$_addons/addons"}),addonList:function(){return this.addonState(this.addons)},featureAwaitingInstall(){return this.features_awaiting_install.join(", ")}},watch:{features_list:{handler:function(){this.featuresToInstall()},deep:!0}},mounted(){localStorage.removeItem("activated_addons"),this.featuresToInstall()},methods:{featuresList(){return this.features_list},skipAddons(){this.$wizard_steps[4]!==void 0?this.$router.push(this.$wizard_steps[4]):this.$router.push({name:"success"})},addonState(s){let t=this.features_list;for(var e=0;e<t.length;e++){const o=t[e].data.feature;if(o!=="standard"&&o!=="enhanced-link"&&(typeof o=="string"&&s[o]&&(s[o].active?t[e].data.faux=!0:s[o].installed&&t[e].data.checked===!0&&(t[e].data.checked=!0)),typeof o=="object")){let a=o.length,r=[],d=[];for(let y in o){let m=o[y];s[m]&&(s[m].active?(d.push(m),r.push(m)):s[m].installed&&r.push(m))}a===d.length?t[e].data.faux=!0:a===r.length&&t[e].data.checked===!0&&(t[e].data.checked=!0)}(o==="wpforms-lite"||o==="aioseo"||o==="optinmonster"||o==="userfeedback-lite"||o==="duplicator")&&s[o]&&s[o].installed&&(t[e].data.faux=!0,t[e].data.checked=!1)}if(this.$nextTick(()=>{this.updateRecommendedPluginsGroupState(),this.featuresToInstall()}),parseInt(this.$mi.allow_file_edit)===0){const o=t.findIndex(a=>a.id==="recommended_plugins");t.splice(o,1)}return t},updateRecommendedPluginsGroupState(){const s=this.features_list.filter(t=>t.group==="recommended-plugins");this.recommendedPluginsGroupState.allDisabled=s.every(t=>t.data.faux),this.recommendedPluginsGroupState.allChecked=s.every(t=>t.data.faux||t.data.checked)},async continueNextStep(s){s.target.setAttribute("disabled","disabled"),s.target.innerHTML="Please Wait...";let t=this;this.showSpinnerToAllInstallable();const e=["standard","enhanced_link","recommended_plugins"],o=[],a=[],r=["advanced_reports","advanced_tracking"];for(const d of this.features_list)if(!e.includes(d.id)&&d.data.checked&&d.addons&&Array.isArray(d.addons)){for(let y of d.addons)parseInt(this.$mi.allow_file_edit)===1&&await t.executeAddon(d,y,a,o);r.includes(d.id)||(d.loading=!1)}if(a.length===0)localStorage.getItem("activated_addons")!==""&&o.push(localStorage.getItem("activated_addons")),localStorage.setItem("activated_addons",o),this.$wizard_steps[4]!==void 0?this.$router.push(this.$wizard_steps[4]):this.$router.push({name:"success"});else{o.length>0&&(localStorage.getItem("activated_addons")!==""&&o.push(localStorage.getItem("activated_addons")),localStorage.setItem("activated_addons",o)),console.log("===================================================================="),console.log("ExactMetrics Onboarding Wizard Debug"),console.log("Following addons were not installed:"),console.log(a.toString()),console.log("===================================================================="),t.$swal({icon:"error",title:n("Error Processing","google-analytics-dashboard-for-wp"),text:n("There was an error while processing some features. Please try again or you can skip this process for now","google-analytics-dashboard-for-wp"),confirmButtonText:n("Ok","google-analytics-dashboard-for-wp")}),s.target.removeAttribute("disabled"),s.target.innerHTML="Continue";let d=document.querySelector(".exactmetrics-skip-addons");d.style.visibility="visible"}},async executeAddon(s,t,e,o){let a=this,r=this.addons[t];if(!r){e.push(t);return}const d=["wpforms-lite","aioseo","optinmonster","userfeedback-lite","duplicator"];if(r.installed)r.installed&&!r.active&&(await a.activateAddon(r)===!0?o.push(r.title):(e.push(t),s.error=!0));else{let y="",m=JSON.parse(JSON.stringify(r));if(d.includes(t))y=await a.installPlugin(m);else{if(!this.$isPro())return;y=await a.installAddon(m)}if(y===!0&&await a.activateAddon(m)===!0){o.push(r.title);return}e.push(t),s.error=!0}},async installAddon(s){try{const t=await this.$store.dispatch("$_addons/installAddon",s);if(t!==void 0&&t&&t.plugin)return s.basename=t.plugin,!0}catch{return!1}return!1},async installPlugin(s){try{const t=await this.$store.dispatch("$_addons/installOnboardingPlugin",s);if(t!==void 0&&t&&"success"in t&&t.success===!0)return!0}catch{return!1}return!1},async activateAddon(s){try{return await this.$store.dispatch("$_addons/activateOnboardingAddon",s)}catch{return!1}},featuresToInstall(){const s=this.features_list;let t=[];const e=s.find(o=>o.id==="recommended_plugins");if(e&&e.data.checked){for(let o of s)if(o.group==="recommended-plugins"){const a=o.id.replace("_","-"),r=this.addons[a];if(r&&!r.active&&!r.installed){let d;o.id==="optinmonster"?d="OptinMonster":o.id==="userfeedback_lite"?d="UserFeedback":d=o.data.title,t.push(d)}}}else for(let o of s)if(o.group==="recommended-plugins"&&o.data.checked){const a=o.id.replace("_","-"),r=this.addons[a];if(r&&!r.active&&!r.installed){let d;o.id==="optinmonster"?d="OptinMonster":o.id==="userfeedback_lite"?d="UserFeedback":d=o.data.title,t.push(d)}}this.features_awaiting_install=t},handleItemCheckboxUpdated(s,t){s.data.checked=t;let e=[];for(let a=0;a<this.features_list.length;a++){const r=this.features_list[a];r.group&&s.group_heading===r.group&&(r.data.checked=t),r.group&&r.data.faux===void 0&&e.push(r.data.checked)}let o=this.features_list.find(a=>s.group===a.group_heading);e.indexOf(!1)===-1?o.data.checked=!0:o.data.checked=!1,this.updateRecommendedPluginsGroupState()},toggleGroup(s){this.active_group===""?this.active_group=s:this.active_group=""},showSpinnerToAllInstallable(){let s=["standard","enhanced_link"];this.features_list.forEach(t=>{!s.includes(t.id)&&t.data.checked&&(t.loading=!0)})}}};var ee=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"exactmetrics-onboarding-step-recommended-addons"},[e("onboarding-content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"exactmetrics-onboarding-wizard-form"},[e("div",{staticClass:"exactmetrics-grey-area"},[e("div",{staticClass:"exactmetrics-separator"}),t._l(t.addonList,function(o,a){return e("div",{key:a},[e("div",{directives:[{name:"show",rawName:"v-show",value:!o.group||o.group&&t.active_group===o.group,expression:"!feature_data.group || (feature_data.group && active_group === feature_data.group)"}]},[e("onboarding-addon",{attrs:{feature:o,"all-recommended-plugins":t.allRecommendedPlugins},on:{"toggle-group":t.toggleGroup,"item-checkbox-updated":t.handleItemCheckboxUpdated}}),e("div",{staticClass:"exactmetrics-separator"})],1)])}),e("button",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-large",attrs:{type:"button",name:"next_step"},domProps:{textContent:t._s(t.text_save)},on:{click:function(o){return o.preventDefault(),t.continueNextStep(o)}}}),e("a",{staticClass:"exactmetrics-skip-addons",attrs:{href:"#",title:""},on:{click:function(o){return o.preventDefault(),t.skipAddons()}}},[e("span",{domProps:{textContent:t._s(t.skip_for_now)}}),e("svg",{attrs:{width:"16",height:"9",viewBox:"0 0 16 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M11.1289 3.34375H0.546875C0.300781 3.34375 0.125 3.55469 0.125 3.76562V5.73438C0.125 5.98047 0.300781 6.15625 0.546875 6.15625H11.1289V7.80859C11.1289 8.54688 12.043 8.93359 12.5703 8.40625L15.5938 5.34766C15.9453 5.03125 15.9453 4.50391 15.5938 4.1875L12.5703 1.12891C12.043 0.601562 11.1289 0.988281 11.1289 1.72656V3.34375Z",fill:"#586074"}})])])],2)])],1),t.features_awaiting_install.length?e("div",{staticClass:"exactmetrics-features-awaiting-install"},[e("span",{domProps:{textContent:t._s(t.features_awaiting_install_text)}}),e("span",{domProps:{textContent:t._s(t.featureAwaitingInstall)}})]):t._e()])},se=[],oe=g(te,ee,se,!1,null,null,null,null);const ae=oe.exports,{__:C}=wp.i18n,ne={name:"OnboardingStepWpforms",components:{OnboardingContentHeader:$},data(){return{text_header_title:C("ExactMetrics Recommends WPForms","google-analytics-dashboard-for-wp"),text_header_subtitle:C("Built by the folks behind ExactMetrics, WPForms is the most beginner friendly form plugin in the market.","google-analytics-dashboard-for-wp"),text_wpforms_label:C("Used on over 4,000,000 websites!","google-analytics-dashboard-for-wp"),text_wpforms_description:C("WPForms allow you to create beautiful contact forms, subscription forms, payment forms, and other types of forms for your site in minutes, not hours!","google-analytics-dashboard-for-wp"),text_skip_step:C("Skip this Step","google-analytics-dashboard-for-wp"),text_install_wpforms:C("Continue & Install WPForms","google-analytics-dashboard-for-wp"),text_installing_wpforms:C("Installing...","google-analytics-dashboard-for-wp"),button_text:"",loading:!1}},mounted(){this.button_text=this.text_install_wpforms},methods:{handleSubmit(){this.$router.push(this.$wizard_steps[5])},buttonClass(){let s="exactmetrics-onboarding-button exactmetrics-onboarding-button-large exactmetrics-install-wpforms";return this.loading&&(s+=" exactmetrics-button-disabled"),s},installPlugin(){let s=this;this.loading=!0,this.button_text=this.text_installing_wpforms,this.$store.dispatch("$_addons/installWPForms").then(function(){s.loading=!1,s.button_text=s.text_install_wpforms,s.handleSubmit()})}}};var ie=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-step-wpforms"},[e("onboarding-content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"exactmetrics-onboarding-wizard-form"},[e("form",{attrs:{action:"",method:"post"},on:{submit:function(o){return o.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("div",{staticClass:"exactmetrics-separator"}),e("div",{staticClass:"exactmetrics-addon-row exactmetrics-wpforms-row"},[t._m(0),e("div",{staticClass:"exactmetrics-addon-text"},[e("label",{domProps:{textContent:t._s(t.text_wpforms_label)}}),e("p",{domProps:{textContent:t._s(t.text_wpforms_description)}})])]),e("div",{staticClass:"exactmetrics-separator"}),e("div",{staticClass:"exactmetrics-form-row exactmetrics-form-buttons"},[e("div",{staticClass:"exactmetrics-form-input"},[e("button",{class:t.buttonClass(),attrs:{type:"button"},domProps:{textContent:t._s(t.button_text)},on:{click:function(o){return o.preventDefault(),t.installPlugin.apply(null,arguments)}}}),t.loading?t._e():e("button",{staticClass:"exactmetrics-text-button exactmetrics-pull-right",attrs:{type:"submit",name:"next_step"}},[e("span",{domProps:{textContent:t._s(t.text_skip_step)}}),e("i",{staticClass:"monstericon-arrow-right"})])])])])])],1)},re=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"exactmetrics-addon-icon"},[t("div",{staticClass:"exactmetrics-addon-wpforms"})])}],le=g(ne,ie,re,!1,null,null,null,null);const de=le.exports,{__:c,sprintf:M}=wp.i18n,ce={name:"OnboardingStepSuccess",components:{OnboardingContentHeader:$},data(){return{text_header_title:c("Congratulations, your site is now using Google Analytics!","google-analytics-dashboard-for-wp"),text_header_subtitle:c("ExactMetrics is connected to Google Analytics and data is being collected.","google-analytics-dashboard-for-wp"),text_notice:M(c("%1$sPlease Note:%2$s While Google Analytics is properly setup and tracking everything, it does not send the data back to WordPress immediately. Depending on the size of your website, it can take between a few hours to 24 hours for reports to populate.","google-analytics-dashboard-for-wp"),"<strong>","</strong>"),text_newsletter:M(c("%1$sSubscribe to the ExactMetrics blog%2$s for tips on how to get more traffic and grow your business.","google-analytics-dashboard-for-wp"),'<a target="_blank" href="https://www.exactmetrics.com/blog/">',"</a>"),text_exit:c("Finish Setup & Exit Wizard","google-analytics-dashboard-for-wp"),text_exit_lite:c("Complete Setup without Upgrading","google-analytics-dashboard-for-wp"),exit_url:this.$mi.exit_url,text_success:c("Success","google-analytics-dashboard-for-wp"),text_connected:c("Connected to Google Analytics","google-analytics-dashboard-for-wp"),text_code_installed:c("Tracking Code Installed","google-analytics-dashboard-for-wp"),text_data_collected:c("Data Being Collected","google-analytics-dashboard-for-wp"),icon_success:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="16" height="16" rx="8" fill="#EAFAEE"/><path d="M6.70312 10.875C6.85938 11.0312 7.125 11.0312 7.28125 10.875L11.875 6.28125C12.0312 6.125 12.0312 5.85938 11.875 5.70312L11.3125 5.14062C11.1562 4.98438 10.9062 4.98438 10.75 5.14062L7 8.89062L5.23438 7.14062C5.07812 6.98438 4.82812 6.98438 4.67188 7.14062L4.10938 7.70312C3.95312 7.85938 3.95312 8.125 4.10938 8.28125L6.70312 10.875Z" fill="#46BF40"/></svg>',icon_checkmark:'<svg width="14" height="11" viewBox="0 0 14 11" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.05469 9.8125C5.28906 10.0469 5.6875 10.0469 5.92188 9.8125L12.8125 2.92188C13.0469 2.6875 13.0469 2.28906 12.8125 2.05469L11.9688 1.21094C11.7344 0.976562 11.3594 0.976562 11.125 1.21094L5.5 6.83594L2.85156 4.21094C2.61719 3.97656 2.24219 3.97656 2.00781 4.21094L1.16406 5.05469C0.929688 5.28906 0.929688 5.6875 1.16406 5.92188L5.05469 9.8125Z" fill="#46BF40"/></svg>',text_button_upgrade:c("Upgrade to ExactMetrics Pro","google-analytics-dashboard-for-wp"),upgrade_button_url:this.$getUpgradeUrl("onboarding-lite","onboarding-lite"),activated_addons:[],text_license_label:c("Already purchased? Simply enter your license key below to connect with ExactMetrics PRO!","google-analytics-dashboard-for-wp"),is_loading:!1,show_connect:!1,connect_key:"",text_license_placeholder:c("Paste your license key here","google-analytics-dashboard-for-wp"),text_license_verify:c("Verify","google-analytics-dashboard-for-wp"),text_upgrade_to_pro:c("Verify License Key","google-analytics-dashboard-for-wp"),text_lite_user:{heading:c("Upgrade to Unlock These Features","google-analytics-dashboard-for-wp"),description:c("To unlock the selected features, please upgrade to Pro and enter your license key below.","google-analytics-dashboard-for-wp"),bottom_text:M(c("%1$sBonus:%2$s Upgrade today and save %3$s50%% on a Pro License!%4$s (auto-applied at checkout)","google-analytics-dashboard-for-wp"),"<strong>","</strong>","<strong>","</strong>"),features:["Advanced Reporting","20+ Advanced Tracking","eCommerce Tracking","Advanced Growth Tools","EU and Privacy Compliance","and Dozens More!"]}}},computed:{...x({install_errors:"$_onboarding/install_errors",license:"$_license/license",license_network:"$_license/license_network",auth:"$_auth/auth"})},mounted(){const s=this;s.$swal({icon:"info",title:c("Checking your website...","google-analytics-dashboard-for-wp"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"exactmetrics-swal"},didOpen:function(){s.$swal.showLoading()}}),this.$store.dispatch("$_onboarding/getErrors").then(function(){s.$swal.close()});let t=localStorage.getItem("activated_addons");t&&(t=t.replace(/,\s*$/,""),this.activated_addons=t.split(","))},methods:{fieldInput:J(function(){this.show_connect=this.connect_key!==""},100),startUpgradeToPro(){const s=this;this.$swal({icon:"info",title:c("Verifying License...","google-analytics-dashboard-for-wp"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"exactmetrics-swal"},didOpen:function(){s.$swal.showLoading()}}),ct.getUpgradeLink(s.connect_key).then(function(t){if(t.success&&t.data.url)return window.location=t.data.url;{let e=t.data&&t.data.message?t.data.message:c("There was an error unlocking ExactMetrics PRO please try again or install manually.","google-analytics-dashboard-for-wp");s.$mi_error_toast({title:c("Error","google-analytics-dashboard-for-wp"),html:e,toast:!1,position:"center",showConfirmButton:!0,showCloseButton:!1,customClass:!1,confirmButtonText:c("Ok","google-analytics-dashboard-for-wp")}).then(function(){t.data&&t.data.reload&&(window.location=s.exit_url)})}}).catch(function(){s.$swal.close()})},exitOnboardingWizard(){window.location=this.exit_url}}};var ge=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-step-success"},[e("onboarding-content-header",{attrs:{title:t.text_header_title,subtitle:t.text_header_subtitle}}),e("div",{staticClass:"exactmetrics-onboarding-wizard-form"},[e("div",{staticClass:"exactmetrics-wizard-notices"},[e("div",{staticClass:"exactmetrics-wizard-notice"},[e("p",{domProps:{innerHTML:t._s(t.text_notice)}})]),t.install_errors?e("div",t._l(t.install_errors,function(o,a){return e("div",{key:a},[e("div",{staticClass:"exactmetrics-wizard-notice"},[e("p",{domProps:{innerHTML:t._s(o)}})])])}),0):t._e()]),e("div",{staticClass:"exactmetrics-wizard-notices exactmetrics-info-notices"},[e("div",{staticClass:"exactmetrics-wizard-notice"},[e("div",{staticClass:"exactmetrics-tracking-info-container"},[e("div",{staticClass:"exactmetrics-flex exactmetrics-tracking-info"},[e("div",{staticClass:"exactmetrics-tracking-info-text"},[e("p",[t._v(t._s(t.text_connected))])]),e("div",{staticClass:"exactmetrics-tracking-info-icon"},[e("span",{staticClass:"exactmetrics-success",domProps:{innerHTML:t._s(t.text_success)}}),e("span",{staticClass:"exactmetrics-success-icon",domProps:{innerHTML:t._s(t.icon_success)}})])])])])]),e("div",{staticClass:"exactmetrics-wizard-notices exactmetrics-info-notices"},[e("div",{staticClass:"exactmetrics-wizard-notice"},[e("div",{staticClass:"exactmetrics-tracking-info-container"},[e("div",{staticClass:"exactmetrics-flex exactmetrics-tracking-info"},[e("div",{staticClass:"exactmetrics-tracking-info-text"},[e("p",[t._v(t._s(t.text_code_installed))])]),e("div",{staticClass:"exactmetrics-tracking-info-icon"},[e("span",{staticClass:"exactmetrics-success",domProps:{innerHTML:t._s(t.text_success)}}),e("span",{staticClass:"exactmetrics-success-icon",domProps:{innerHTML:t._s(t.icon_success)}})])])])])]),e("div",{staticClass:"exactmetrics-wizard-notices exactmetrics-info-notices"},[e("div",{staticClass:"exactmetrics-wizard-notice"},[e("div",{staticClass:"exactmetrics-tracking-info-container"},[e("div",{staticClass:"exactmetrics-flex exactmetrics-tracking-info"},[e("div",{staticClass:"exactmetrics-tracking-info-text"},[e("p",[t._v(t._s(t.text_data_collected))])]),e("div",{staticClass:"exactmetrics-tracking-info-icon"},[e("span",{staticClass:"exactmetrics-success",domProps:{innerHTML:t._s(t.text_success)}}),e("span",{staticClass:"exactmetrics-success-icon",domProps:{innerHTML:t._s(t.icon_success)}})])])])])]),t.activated_addons?e("div",t._l(t.activated_addons,function(o,a){return e("div",{key:a},[e("div",{staticClass:"exactmetrics-wizard-notices exactmetrics-info-notices"},[e("div",{staticClass:"exactmetrics-wizard-notice"},[e("div",{staticClass:"exactmetrics-tracking-info-container"},[e("div",{staticClass:"exactmetrics-flex exactmetrics-tracking-info"},[e("div",{staticClass:"exactmetrics-tracking-info-text"},[e("p",[t._v(t._s(o+" Installed"))])]),e("div",{staticClass:"exactmetrics-tracking-info-icon"},[e("span",{staticClass:"exactmetrics-success"},[t._v(t._s(t.text_success))]),e("span",{staticClass:"exactmetrics-success-icon",domProps:{innerHTML:t._s(t.icon_success)}})])])])])])])}),0):t._e(),t.license.type!=="pro"?e("div",[e("div",{staticClass:"exactmetrics-onboarding-upsell"},[e("h2",[t._v(t._s(t.text_lite_user.heading))]),e("p",[t._v(t._s(t.text_lite_user.description))]),e("ul",t._l(t.text_lite_user.features,function(o,a){return e("li",{key:a},[e("span",{staticClass:"exactmetrics-icon",domProps:{innerHTML:t._s(t.icon_checkmark)}}),e("span",{staticClass:"exactmetrics-text"},[t._v(t._s(o))])])}),0),e("div",{staticClass:"exactmetrics-upsell-upgrade-button"},[e("a",{staticClass:"exactmetrics-button exactmetrics-button-large",attrs:{target:"_blank",href:t.upgrade_button_url},domProps:{textContent:t._s(t.text_button_upgrade)}})])]),e("div",{staticClass:"exactmetrics-upsell-bottom-text"},[e("p",{domProps:{innerHTML:t._s(t.text_lite_user.bottom_text)}})]),e("div",{staticClass:"exactmetrics-settings-license-lite"},[e("label",{attrs:{for:"exactmetrics-license-key"},domProps:{innerHTML:t._s(t.text_license_label)}}),e("div",{staticClass:"exactmetrics-inline-field"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.connect_key,expression:"connect_key"}],attrs:{id:"exactmetrics-license-key",readonly:t.is_loading,type:"text",autocomplete:"off",placeholder:t.text_license_placeholder},domProps:{value:t.connect_key},on:{input:[function(o){o.target.composing||(t.connect_key=o.target.value)},t.fieldInput]}}),t.show_connect?e("span",[e("button",{staticClass:"exactmetrics-button",domProps:{textContent:t._s(t.text_upgrade_to_pro)},on:{click:function(o){return o.preventDefault(),t.startUpgradeToPro(o)}}})]):e("span",[e("button",{staticClass:"exactmetrics-button disabled",domProps:{textContent:t._s(t.text_upgrade_to_pro)}})])])])]):t._e(),t.license.type!=="pro"&&t.license_network.type!=="pro"?e("div",[e("div",{staticClass:"exactmetrics-separator"}),e("a",{staticClass:"exactmetrics-exit-link",attrs:{href:"#",title:""},on:{click:function(o){return o.preventDefault(),t.exitOnboardingWizard.apply(null,arguments)}}},[t._v(t._s(t.text_exit_lite))])]):e("div",{staticClass:"exactmetrics-form-row exactmetrics-form-buttons"},[e("div",{staticClass:"exactmetrics-form-input"},[e("a",{staticClass:"exactmetrics-onboarding-button exactmetrics-onboarding-button-large",attrs:{href:"#"},domProps:{textContent:t._s(t.text_exit)},on:{click:function(o){return o.preventDefault(),t.exitOnboardingWizard.apply(null,arguments)}}})])])])],1)},ue=[],pe=g(ce,ge,ue,!1,null,null,null,null);const B=pe.exports,he=new z({routes:[{path:"*",redirect:"/"},{path:"/",name:"welcome",component:xt},{path:"/authenticate",name:"authenticate",component:G},{path:"/recommended_settings",name:"recommended_settings",component:H},{path:"/recommended_addons",name:"recommended_addons",component:ae},{path:"/wpforms",name:"wpforms",component:de},{path:"/success",name:"success",component:B}],scrollBehavior(){return{x:0,y:0}}}),{__:R,sprintf:_e}=wp.i18n,me=s=>new Promise(t=>{let e=new FormData,o=p.prototype.$addQueryArg(p.prototype.$mi.ajax,"page","exactmetrics-onboarding");e.append("action","exactmetrics_onboarding_get_errors"),Q.post(o,e).then(a=>{t(a.data)}).catch(function(a){if(s.dispatch("$_app/block",!1,{root:!0}),a.response){const r=a.response;return p.prototype.$mi_error_toast({title:_e(R("Can't load errors. Error: %1$s, %2$s","google-analytics-dashboard-for-wp"),r.status,r.statusText)})}p.prototype.$mi_error_toast({title:R("You appear to be offline.","google-analytics-dashboard-for-wp")})})}),fe={fetchErrors:me},be=s=>{let t=fe.fetchErrors(s);return t.then(e=>{s.commit("ERRORS_UPDATED",e)}).catch(e=>{console.error(e)}),t},we={getErrors:be},ye=s=>s.install_errors,ve={install_errors:ye},xe=(s,t)=>{s.install_errors=t},ke={ERRORS_UPDATED:xe},Ce={install_errors:[]},N={namespaced:!0,state:Ce,actions:we,getters:ve,mutations:ke};const{__:$e}=wp.i18n,Pe={name:"TheWizardHeader",data(){return{text_exit:$e("Exit Setup","google-analytics-dashboard-for-wp"),href:this.$mi.exit_url}},methods:{exitOnboardingWizard(){window.location=this.href},showExitButton(){return this.$route.name!=="success"}}};var Se=function(){var t=this,e=t._self._c;return e("header",{staticClass:"exactmetrics-onboarding-header"},[e("nav",{staticClass:"exactmetrics-header-navigation"},[e("a",{directives:[{name:"show",rawName:"v-show",value:t.showExitButton(),expression:"showExitButton()"}],staticClass:"exactmetrics-exit-button",attrs:{href:"#"},on:{click:function(o){return o.preventDefault(),t.exitOnboardingWizard.apply(null,arguments)}}},[e("i",{staticClass:"monstericon-times-circle"}),e("span",{domProps:{textContent:t._s(t.text_exit)}})])]),t._m(0)])},Me=[function(){var s=this,t=s._self._c;return t("h1",{staticClass:"exactmetrics-onboarding-wizard-logo"},[t("div",{staticClass:"exactmetrics-logo"},[t("div",{staticClass:"exactmetrics-bg-img"})])])}],Te=g(Pe,Se,Me,!1,null,null,null,null);const X=Te.exports,Ae={name:"TheWizardTimeline",data(){return{steps:this.$wizard_steps}},methods:{stepClass(s){let t="exactmetrics-onboarding-wizard-step";if(this.$route.name==="success")return t+" exactmetrics-onboarding-wizard-step-completed";let e=0;for(let o in this.steps)this.$route.name===this.steps[o]&&(e=o);return s<e&&(t+=" exactmetrics-onboarding-wizard-step-completed"),parseInt(s)===parseInt(e)&&(t+=" exactmetrics-onboarding-wizard-step-active"),t},lineClass(s){let t="exactmetrics-onboarding-wizard-step-line",e=0;for(let o in this.steps)this.$route.name===this.steps[o]&&(e=o);return s<=e&&(t+=" exactmetrics-onboarding-wizard-line-active"),t}}};var Ie=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-onboarding-wizard-container"},[e("div",{staticClass:"exactmetrics-onboarding-wizard-steps"},[t._l(t.steps,function(o,a){return[a>0?e("div",{key:a+"line",class:t.lineClass(a)}):t._e(),e("div",{key:a,class:t.stepClass(a)})]})],2)])},ze=[],Oe=g(Ae,Ie,ze,!1,null,null,null,null);const K=Oe.exports,{__:u}=wp.i18n,Ee={name:"OnboardingBottomUpsell",data(){return{text_pro_plan:u("Pro Plan","google-analytics-dashboard-for-wp"),text_per_year:u("per year","google-analytics-dashboard-for-wp"),text_upgrade_now:u("Upgrade Now","google-analytics-dashboard-for-wp"),upgrade_url:this.$getUpgradeUrl("welcome-screen","upgrade-upsell"),text_get_pro:u("Upgrade to PRO","google-analytics-dashboard-for-wp"),check_list:[u("eCommerce Tracking","google-analytics-dashboard-for-wp"),u("Custom Dimensions","google-analytics-dashboard-for-wp"),u("Form Tracking","google-analytics-dashboard-for-wp"),u("AMP Support","google-analytics-dashboard-for-wp"),u("Author Tracking","google-analytics-dashboard-for-wp")],check_list_2:[u("EU Compliance Addon","google-analytics-dashboard-for-wp"),u("Real Time Report","google-analytics-dashboard-for-wp"),u("Search Console","google-analytics-dashboard-for-wp"),u("Custom Date Ranges","google-analytics-dashboard-for-wp")],testimonials:[{image:"exactmetrics-about-testimonial-avatar-1",text:u("This is absolutely, positively, one of the TOP plugins to install on your WP site. There is no better way to quickly gauge traffic for spikes, surges, and consistency. I installed this on over a dozen WordPress installations and counting, thank you for an outstanding app!","google-analytics-dashboard-for-wp"),author:u("Daniel Monaghan - Experienced","google-analytics-dashboard-for-wp")},{image:"exactmetrics-about-testimonial-avatar-2",text:u("Very simple to configure and the results are very clearly displayed. So much easier for clients to view than in their own analytics account! Delighted with it.","google-analytics-dashboard-for-wp"),author:u("Naomi Spirit - From This Day","google-analytics-dashboard-for-wp")},{image:"exactmetrics-about-testimonial-avatar-3",text:u("Love this plugin! It’s got powerful customization options, it’s easy to use, there’s good documentation, and if all that’s not enough, ExactMetrics is quick to provide support. Thanks for this wonderful plugin!","google-analytics-dashboard-for-wp"),author:u("Julie Dupuis - Faraway Land Travel","google-analytics-dashboard-for-wp")}]}}};var Le=function(){var t=this,e=t._self._c;return e("div")},Re=[],We=g(Ee,Le,Re,!1,null,null,null,null);const De=We.exports;const Fe={name:"WizardModuleOnboarding",components:{OnboardingBottomUpsell:De,TheWizardTimeline:K,TheWizardHeader:X},router:he,created(){const s="$_settings";s in this.$store._modules.root._children||this.$store.registerModule(s,U);const t="$_onboarding";t in this.$store._modules.root._children||this.$store.registerModule(t,N)},computed:{...x({blocked:"$_app/blocked"}),route(){return this.$route.name}},mounted(){this.$mi_loading_toast(),this.$store.dispatch("$_settings/getSettings")}};var Ue=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-admin-page onboarding-wizard"},[e("the-wizard-header"),e("the-wizard-timeline"),e("div",{staticClass:"exactmetrics-onboarding-wizard-container"},[e("div",{staticClass:"exactmetrics-onboarding-wizard-content"},[e("router-view")],1)]),t.route==="success"?e("OnboardingBottomUpsell"):t._e(),t.blocked?e("div",{staticClass:"exactmetrics-blocked"}):t._e()],1)},Ge=[],He=g(Fe,Ue,Ge,!1,null,"1177c7ce",null,null);const Be=He.exports;const{__:i,sprintf:w}=wp.i18n,Ne={name:"WizardModuleWelcome",components:{AboutTestimonialsSlider:rt,ContentIconList:ut,WelcomeOverlay:lt},data(){return{text_getting_started_title:i("Getting Started with ExactMetrics","google-analytics-dashboard-for-wp"),text_getting_started_p1:i("ExactMetrics is the easiest analytics solution on the market to get started with, as we walk you through exactly what you need to do, in plain english, using our 3 minute setup wizard.","google-analytics-dashboard-for-wp"),text_getting_started_p2:i("To begin with, we’ll get your site authorized with Google Analytics, so we can start tracking and generating reports for you right away.","google-analytics-dashboard-for-wp"),text_getting_started_p3:i("In no time at all, and after just a few clicks, you'll have setup the most powerful Google Analytics tracking available for WordPress. It's easy to double your traffic and sales when you know exactly how people find and use your website. Let's get started!.","google-analytics-dashboard-for-wp"),text_getting_started_link1:i("Launch the wizard!","google-analytics-dashboard-for-wp"),wizard_url:this.$mi.wizard_url,text_welcome:i("Welcome to","google-analytics-dashboard-for-wp"),text_thank_you:w(i("Thank you for choosing ExactMetrics -%s The Most Powerful WordPress Analytics Plugin","google-analytics-dashboard-for-wp"),"<br />"),text_efortless:w(i("%1$sExactMetrics%2$s makes it “effortless” to setup Google Analytics in WordPress, the RIGHT Way. You can watch the video tutorial or use our 3 minute setup wizard.","google-analytics-dashboard-for-wp"),"<b>","</b>"),welcome_video:!1,text_features_addons:i("ExactMetrics Features & Addons","google-analytics-dashboard-for-wp"),text_features_addons_subtitle:i("Here are the features that make ExactMetrics the most powerful and user-friendly WordPress analytics plugin in the market.","google-analytics-dashboard-for-wp"),icons_list:[{icon:"monstericon-chart-bar",text:w(i("%1$sGoogle Analytics Tracking%2$s – Setup google analytics website tracking across devices and campaigns with just a few clicks (without any code).","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-file-alt-em",text:w(i("%1$sGoogle Analytics Dashboard%2$s - See your website analytics report right inside your WordPress dashboard with actionable insights.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-clock",text:w(i("%1$sReal-time Stats%2$s - Get real-time stats inside WordPress to see who is online, what are they doing and more.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-check-circle-em",text:w(i("%1$sEnhanced Ecommerce Tracking%2$s - 1-click Google Analytics Enhanced eCommerce tracking for WooCommerce, Easy Digital Download & MemberPress.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-shopping-bag",text:w(i("%1$sPage Level Analytics%2$s - Get detailed stats for each post and page, so you can see the most popular posts, pages, and sections of your site.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-links",text:w(i("%1$sAffiliate Link & Ads Tracking%2$s - Automatically track clicks on your affiliate links, banner ads, and other outbound links with our link tracking.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-unlock",text:w(i("%1$sEU Compilance (GDPR Friendly)%2$s - Make Google Analytics compliant with GDPR and other privacy regulations automatically.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"monstericon-cog",text:w(i("%1$sCustom Dimensions%2$s - Setup tracking for authors, tags, searches, custom post types, users, and other events with 1-click.","google-analytics-dashboard-for-wp"),"<b>","</b>")},{icon:"",text:w(i("%1$sSee All Features%2$s","google-analytics-dashboard-for-wp"),'<a target="_blank" href="'+this.$getUrl("about-page","features","https://www.exactmetrics.com/features/")+'">','<i class="monstericon-long-arrow-right-light"></i></a>')}],text_pro_plan:i("Pro Plan","google-analytics-dashboard-for-wp"),text_per_year:i("per year","google-analytics-dashboard-for-wp"),text_upgrade_now:i("Upgrade Now","google-analytics-dashboard-for-wp"),text_upgrade_pro_now:i("Upgrade to ExactMetrics Pro Now","google-analytics-dashboard-for-wp"),upgrade_url:this.$getUpgradeUrl("welcome-screen","upgrade-upsell"),testimonials:[{image:"exactmetrics-about-testimonial-avatar-1",text:i("This is absolutely, positively, one of the TOP plugins to install on your WP site. There is no better way to quickly gauge traffic for spikes, surges, and consistency. I installed this on over a dozen WordPress installations and counting, thank you for an outstanding app!","google-analytics-dashboard-for-wp"),author:i("Daniel Monaghan - Experienced","google-analytics-dashboard-for-wp")},{image:"exactmetrics-about-testimonial-avatar-2",text:i("Very simple to configure and the results are very clearly displayed. So much easier for clients to view than in their own analytics account! Delighted with it.","google-analytics-dashboard-for-wp"),author:i("Naomi Spirit - From This Day","google-analytics-dashboard-for-wp")},{image:"exactmetrics-about-testimonial-avatar-3",text:i("Love this plugin! It’s got powerful customization options, it’s easy to use, there’s good documentation, and if all that’s not enough, ExactMetrics is quick to provide support. Thanks for this wonderful plugin!","google-analytics-dashboard-for-wp"),author:i("Julie Dupuis - Faraway Land Travel","google-analytics-dashboard-for-wp")}],text_guides:i("Guides and Documentation:","google-analytics-dashboard-for-wp"),text_get_pro:i("Upgrade to PRO","google-analytics-dashboard-for-wp"),check_list:[i("eCommerce Tracking","google-analytics-dashboard-for-wp"),i("Custom Dimensions","google-analytics-dashboard-for-wp"),i("Form Tracking","google-analytics-dashboard-for-wp"),i("AMP Support","google-analytics-dashboard-for-wp"),i("Author Tracking","google-analytics-dashboard-for-wp")],check_list_2:[i("EU Compliance Addon","google-analytics-dashboard-for-wp"),i("Real Time Report","google-analytics-dashboard-for-wp"),i("Search Console","google-analytics-dashboard-for-wp"),i("Custom Date Ranges","google-analytics-dashboard-for-wp")]}}};var Xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-admin-page"},[e("div",{staticClass:"exactmetrics-about-page-top"},[e("div",{staticClass:"exactmetrics-container"},[e("h3",{domProps:{textContent:t._s(t.text_welcome)}}),e("div",{staticClass:"exactmetrics-bg-img exactmetrics-em-logo-color"}),e("h2",{domProps:{innerHTML:t._s(t.text_thank_you)}}),e("div",{staticClass:"exactmetrics-about-top-button"},[e("a",{staticClass:"exactmetrics-button exactmetrics-button-green exactmetrics-button-xl",attrs:{href:t.wizard_url}},[e("span",{domProps:{textContent:t._s(t.text_getting_started_link1)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})]),e("p",{domProps:{innerHTML:t._s(t.text_efortless)}})])]),e("div",{staticClass:"exactmetrics-bg-img exactmetrics-about-getting-started-video",on:{click:function(o){t.welcome_video=!0}}}),t.welcome_video?e("welcome-overlay",{attrs:{id:"getting-started-video"},on:{close:function(o){t.welcome_video=!1}}},[e("iframe",{attrs:{width:"1280",height:"720",src:"https://www.youtube.com/embed/4GZ-IgZssao?autoplay=1&modestbranding=1&showinfo=0&rel=0&fs=1",frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})]):t._e()],1),e("div",{staticClass:"exactmetrics-container exactmetrics-about-middle-title"},[e("a",{staticClass:"exactmetrics-button exactmetrics-button-green exactmetrics-button-xl",attrs:{href:t.wizard_url}},[e("span",{domProps:{textContent:t._s(t.text_getting_started_link1)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})]),e("h2",{domProps:{textContent:t._s(t.text_features_addons)}}),e("p",{domProps:{textContent:t._s(t.text_features_addons_subtitle)}})]),e("content-icon-list",{attrs:{upsell_list:t.icons_list}}),e("div",{staticClass:"exactmetrics-wide-purple"},[e("div",{staticClass:"exactmetrics-container"},[e("div",{staticClass:"exactmetrics-about-upgrade-box-flex"},[e("div",{staticClass:"exactmetrics-about-pro-plan-box"},[e("span",{domProps:{textContent:t._s(t.text_pro_plan)}}),e("span",{staticClass:"exactmetrics-price-large"},[t._v("$199")]),e("span",{staticClass:"exactmetrics-price-term",domProps:{textContent:t._s(t.text_per_year)}}),e("a",{staticClass:"exactmetrics-button",attrs:{href:t.upgrade_url},domProps:{textContent:t._s(t.text_upgrade_now)}})]),e("div",{staticClass:"exactmetrics-about-pro-checkboxes"},[e("h3",{domProps:{textContent:t._s(t.text_get_pro)}}),e("div",{staticClass:"exactmetrics-two-column"},[e("div",{staticClass:"exactmetrics-list-check"},[e("ul",t._l(t.check_list,function(o,a){return e("li",{key:a,domProps:{innerHTML:t._s(o)}})}),0)]),e("div",{staticClass:"exactmetrics-list-check"},[e("ul",t._l(t.check_list_2,function(o,a){return e("li",{key:a,domProps:{innerHTML:t._s(o)}})}),0)])])])]),e("div",{staticClass:"exactmetrics-separator"}),e("about-testimonials-slider",{attrs:{testimonials:t.testimonials}})],1)]),e("div",{staticClass:"exactmetrics-container exactmetrics-bottom-buttons"},[e("a",{staticClass:"exactmetrics-button exactmetrics-button-green exactmetrics-button-xl",attrs:{href:t.wizard_url}},[e("span",{domProps:{textContent:t._s(t.text_getting_started_link1)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})]),e("br"),e("a",{staticClass:"exactmetrics-button exactmetrics-button-text",attrs:{href:t.$getUpgradeUrl("welcome-screen","bottom-link"),target:"_blank",rel:"noopener"}},[e("span",{domProps:{textContent:t._s(t.text_upgrade_pro_now)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])])],1)},Ke=[],Ye=g(Ne,Xe,Ke,!1,null,null,null,null);const je=Ye.exports,{__:v,sprintf:qe}=wp.i18n,Ze={name:"MigrationStepWelcome",data(){return{text_welcome:v("Welcome to the all-new ExactMetrics","google-analytics-dashboard-for-wp"),text_subtitle:v("Redesigned from the ground up, ExactMetrics is built to bring a world-class analytics and reporting experience to WordPress.","google-analytics-dashboard-for-wp"),text_new_improved:v("The New & Improved ExactMetrics includes:","google-analytics-dashboard-for-wp"),text_bullets:[v("All-New Design","google-analytics-dashboard-for-wp"),v("Better Reporting","google-analytics-dashboard-for-wp"),v("Better Tracking","google-analytics-dashboard-for-wp"),v("Better Support","google-analytics-dashboard-for-wp")],text_continue:v("Continue","google-analytics-dashboard-for-wp"),text_your_settings:v("Your settings have been automatically transferred.","google-analytics-dashboard-for-wp"),text_reauth_needed:qe(v("On the next step, you will be asked to re-authenticate with Google Analytics. Please %1$ssee our detailed post%2$s to learn why we need your help. Don't worry, your tracking will continue to work as-is even if you don't do this, but re-auth is required to see analytics reports inside WordPress dashboard.","google-analytics-dashboard-for-wp"),'<a href="'+this.$getUrl("migration","first-step","https://www.exactmetrics.com/why-did-we-implement-the-new-google-analytics-authentication-flow-challenges-explained/")+'" target="_blank">',"</a>")}},methods:{handleSubmit(){this.$router.push(this.$wizard_steps[1])}}};var Je=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-migration-step exactmetrics-migration-step-welcome"},[e("form",{attrs:{action:"",method:"post"},on:{submit:function(o){return o.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[t._m(0),e("h1",{domProps:{textContent:t._s(t.text_welcome)}}),e("p",{domProps:{textContent:t._s(t.text_subtitle)}}),e("div",{staticClass:"exactmetrics-bg-img exactmetrics-em-migration-image"}),e("p",{domProps:{textContent:t._s(t.text_new_improved)}}),e("div",{staticClass:"exactmetrics-migration-checkboxes"},t._l(t.text_bullets,function(o,a){return e("div",{key:a,staticClass:"exactmetrics-migration-checkbox"},[e("i",{staticClass:"monstericon-check"}),e("span",{domProps:{textContent:t._s(o)}})])}),0),e("div",[e("button",{staticClass:"exactmetrics-button exactmetrics-button-large",attrs:{type:"submit"}},[e("span",{domProps:{textContent:t._s(t.text_continue)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])]),e("div",{staticClass:"exactmetrics-migration-footer"},[e("i",{staticClass:"monstericon-info-circle-regular"}),e("span",{domProps:{textContent:t._s(t.text_your_settings)}}),e("span",{staticClass:"exactmetrics-migration-info",domProps:{innerHTML:t._s(t.text_reauth_needed)}})])])])},Qe=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"exactmetrics-welcome-header-logo"},[t("div",{staticClass:"exactmetrics-bg-img exactmetrics-em-logo-icon"})])}],Ve=g(Ze,Je,Qe,!1,null,null,null,null);const ts=Ve.exports,{__:_,sprintf:es}=wp.i18n,ss={name:"MigrationStepUpsell",data(){return{text_need:es(_("%1$sNeed%2$s to Grow FASTER??","google-analytics-dashboard-for-wp"),'<span class="exactmetrics-highlight">',"</span>"),text_subtitle:_("Get additional, actionable insights by going Pro.","google-analytics-dashboard-for-wp"),text_continue:_("Skip","google-analytics-dashboard-for-wp"),text_see_all:_("See All Features","google-analytics-dashboard-for-wp"),text_upgrade_paragraph:_("Upgrade to Pro to get the complete ExactMetrics experience including 1 click tracking integrations for your favorite WordPress plugins and insightful reports backed by our legendary support team.","google-analytics-dashboard-for-wp"),text_pro_includes:_("Our Pro plan includes:","google-analytics-dashboard-for-wp"),text_bullets:[_("eCommerce Tracking","google-analytics-dashboard-for-wp"),_("EU Compliance Addon","google-analytics-dashboard-for-wp"),_("Custom Dimensions","google-analytics-dashboard-for-wp"),_("Real Time Report","google-analytics-dashboard-for-wp"),_("Form Tracking","google-analytics-dashboard-for-wp"),_("AMP Support","google-analytics-dashboard-for-wp"),_("Search Console","google-analytics-dashboard-for-wp"),_("Author Tracking","google-analytics-dashboard-for-wp"),_("Custom Date Ranges","google-analytics-dashboard-for-wp")],features_link:this.$getUpgradeUrl("migration-wizard","features","https://exactmetrics.com/features")}},methods:{handleSubmit(){this.$router.push(this.$wizard_steps[4])}}};var os=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-migration-step exactmetrics-migration-step-upsell"},[e("form",{attrs:{action:"",method:"post"},on:{submit:function(o){return o.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[e("h1",{domProps:{innerHTML:t._s(t.text_need)}}),e("h2",{domProps:{textContent:t._s(t.text_subtitle)}}),e("p",{domProps:{textContent:t._s(t.text_upgrade_paragraph)}}),e("p",{staticClass:"exactmetrics-paragraph-limit",domProps:{textContent:t._s(t.text_pro_includes)}}),e("div",{staticClass:"exactmetrics-migration-checkboxes"},t._l(t.text_bullets,function(o,a){return e("div",{key:a,staticClass:"exactmetrics-migration-checkbox"},[e("i",{staticClass:"monstericon-check"}),e("span",{domProps:{textContent:t._s(o)}})])}),0),e("div",[e("a",{staticClass:"exactmetrics-button exactmetrics-button-large",attrs:{href:t.features_link,target:"_blank",rel:"noopener"}},[e("span",{domProps:{textContent:t._s(t.text_see_all)}}),e("i",{staticClass:"monstericon-external-link-alt"})]),e("button",{staticClass:"exactmetrics-button exactmetrics-button-text",attrs:{type:"submit"}},[e("span",{domProps:{textContent:t._s(t.text_continue)}}),e("i",{staticClass:"monstericon-long-arrow-right-light"})])])])])},as=[],ns=g(ss,os,as,!1,null,null,null,null);const is=ns.exports,rs=new z({routes:[{path:"*",redirect:"/"},{path:"/",name:"welcome",component:ts},{path:"/authenticate",name:"authenticate",component:G},{path:"/recommended_settings",name:"recommended_settings",component:H},{path:"/pro",name:"pro",component:is},{path:"/success",name:"success",component:B}],scrollBehavior(){return{x:0,y:0}}});const{__:ls,sprintf:ds}=wp.i18n,cs={name:"OnboardingAboveContent",data(){return{steps:this.$wizard_steps,text_step:ls("Step %1$s of %2$s","google-analytics-dashboard-for-wp")}},computed:{currentStep(){let s=0;for(let t in this.steps)this.steps.hasOwnProperty(t)&&this.$route.name===this.steps[t]&&(s=parseInt(t));return s+1},totalSteps(){return this.steps.length?this.steps.length:0},textCurrentStep(){return ds(this.text_step,this.currentStep,this.totalSteps)}}};var gs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-above-content"},[e("span",{staticClass:"exactmetrics-step-current",domProps:{textContent:t._s(t.textCurrentStep)}})])},us=[],ps=g(cs,gs,us,!1,null,null,null,null);const hs=ps.exports,{__:_s}=wp.i18n,ms={name:"OnboardingBelowContent",data(){return{steps:this.$wizard_steps,text_go_back:_s("Go back","google-analytics-dashboard-for-wp")}},computed:{currentStep(){let s=0;for(let t in this.steps)this.steps.hasOwnProperty(t)&&this.$route.name===this.steps[t]&&(s=parseInt(t));return s}},methods:{goBack(){if(this.currentStep===0){window.location=this.$mi.exit_url;return}const s=this.currentStep-1;this.$router.push(this.$wizard_steps[s])}}};var fs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-below-content"},[e("button",{staticClass:"exactmetrics-button-go-back",on:{click:t.goBack}},[e("i",{staticClass:"monstericon-long-arrow-right-light"}),e("span",{domProps:{textContent:t._s(t.text_go_back)}})])])},bs=[],ws=g(ms,fs,bs,!1,null,null,null,null);const ys=ws.exports;const vs={name:"WizardModuleMigration",components:{OnboardingBelowContent:ys,OnboardingAboveContent:hs,TheWizardTimeline:K,TheWizardHeader:X},router:rs,created(){const s="$_settings";s in this.$store._modules.root._children||this.$store.registerModule(s,U);const t="$_onboarding";t in this.$store._modules.root._children||this.$store.registerModule(t,N)},computed:{...x({blocked:"$_app/blocked"})},mounted(){this.$mi_loading_toast(),this.$store.dispatch("$_settings/getSettings")}};var xs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"exactmetrics-admin-page onboarding-wizard"},[e("the-wizard-header"),e("the-wizard-timeline"),e("div",{staticClass:"exactmetrics-onboarding-wizard-container"},[e("div",{staticClass:"exactmetrics-onboarding-wizard-content"},[e("onboarding-above-content"),e("router-view"),e("onboarding-below-content")],1)]),t.blocked?e("div",{staticClass:"exactmetrics-blocked"}):t._e()],1)},ks=[],Cs=g(vs,xs,ks,!1,null,"c4fb6051",null,null);const $s=Cs.exports,{__:T}=wp.i18n,W={install(s){const t=this;s.prototype.$swal&&(s.prototype.$mi_saving_toast=function(){},s.prototype.$mi_success_toast=function(){},s.prototype.$mi_error_toast=function(e){let{icon:o="error",customContainerClass:a="exactmetrics-swal",allowOutsideClick:r=!1,allowEscapeKey:d=!1,allowEnterKey:y=!1,title:m=T("Error","google-analytics-dashboard-for-wp"),html:O=T("Please try again.","google-analytics-dashboard-for-wp"),confirmButtonText:Y="OK",showCancelButton:j=!1,cancelButtonText:q="Cancel",footer:Z=!1}=e;return s.prototype.$swal({icon:o,customClass:{container:a},allowOutsideClick:r,allowEscapeKey:d,allowEnterKey:y,title:m,html:O,footer:Z,showCancelButton:j,cancelButtonText:q,confirmButtonText:Y,didOpen:function(){s.prototype.$swal.hideLoading()}})},s.prototype.$mi_loading_toast=function(){let e="exactmetrics-swal exactmetrics-swal-loading";window.scrollY>0&&(e+=" exactmetrics-swal-full-height"),s.prototype.$swal({customClass:{container:e},icon:"info",title:T("Loading settings","google-analytics-dashboard-for-wp"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,loaderHtml:t.getCustomLoaderHtml(),didOpen:function(){s.prototype.$swal.showLoading()},willClose(){setTimeout(()=>{s.prototype.$swal._destroy()},500)}})}),s.prototype.$getCustomLoaderHtml=t.getCustomLoaderHtml},getCustomLoaderHtml(){return'<div class="exactmetrics-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>'}},D=document.getElementById("exactmetrics-vue-onboarding-wizard"),A=document.getElementById("exactmetrics-welcome"),I=document.getElementById("exactmetrics-migration-wizard");p.config.productionTip=!1;if(D||A||I)if({}.NODE_ENV!=="production"&&(p.config.devtools=!0,p.config.performance=!0),V({ctrl:!0}),p.use(z),p.use(tt),p.use(et,{defaultTemplate:'<div class="exactmetrics-tooltip" role="tooltip"><div class="exactmetrics-tooltip-arrow"></div><div class="exactmetrics-tooltip-inner"></div></div>',defaultArrowSelector:".exactmetrics-tooltip-arrow, .exactmetrics-tooltip__arrow",defaultInnerSelector:".exactmetrics-tooltip-inner, .exactmetrics-tooltip__inner"}),p.use(gt),A)new p({store:f,mounted:()=>{f.dispatch("$_app/init")},render:s=>s(je)}).$mount(A);else if(I){const s={install(t){t.prototype.$wizard_steps=["welcome","authenticate","recommended_settings"],t.prototype.$mi&&t.prototype.$mi.had_ecommerce&&t.prototype.$wizard_steps.push("pro"),t.prototype.$wizard_steps.push("success")}};p.use(s),p.use(W),new p({store:f,mounted:()=>{f.dispatch("$_app/init"),f.dispatch("$_license/getLicense"),f.dispatch("$_auth/getAuth"),f.dispatch("$_addons/getAddons")},render:t=>t($s)}).$mount(I)}else{const s={install(t){t.prototype.$wizard_steps=["welcome","authenticate"],t.prototype.$mi&&!t.prototype.$mi.network&&t.prototype.$wizard_steps.push("recommended_settings"),t.prototype.$mi&&!t.prototype.$mi.migrated&&t.prototype.$wizard_steps.push("recommended_addons"),t.prototype.$wizard_steps.push("success")}};p.use(s),p.use(W),new p({store:f,mounted:()=>{f.dispatch("$_app/init"),f.dispatch("$_license/getLicense"),f.dispatch("$_auth/getAuth"),f.dispatch("$_addons/getAddons")},render:t=>t(Be)}).$mount(D)}
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка