import{V as a,a as W,m as y,n as h,h as M,i as j,b as A,e as G,p as K}from"./chunks/vendor-1d873285.min.js";import{R as q,a as J,b as Q,c as X,D as z,d as e1}from"./chunks/report-table-helper-bff2a505.min.js";import{S as t1,N as o1,M as I,s as _}from"./chunks/monsterinsights-helper-plugin-d5dab654.min.js";const s1=(s,e,o,i,r)=>new Promise(n=>{let d=new FormData;o=JSON.stringify(o),d.append("action","monsterinsights_save_widget_state"),d.append("nonce",a.prototype.$mi.nonce),d.append("width",e),d.append("reports",o),d.append("interval",i),d.append("notice",r),d.append("compact",s.state.compact),W.post(a.prototype.$mi.ajax,d).then(c=>{a.prototype.$swal.close(),n(c.data)}).catch(function(c){console.log(c)})}),i1=()=>new Promise(()=>{let s=new FormData;s.append("action","monsterinsights_mark_notice_closed"),s.append("nonce",a.prototype.$mi.nonce),W.post(a.prototype.$mi.ajax,s)}),N={saveWidgetState:s1,markNoticeClosed:i1},r1=s=>new Promise(e=>{if(a.prototype.$mi.widget_state&&a.prototype.$mi.widget_state.reports){for(let o in a.prototype.$mi.widget_state.reports)if(a.prototype.$mi.widget_state.reports.hasOwnProperty(o))for(let i in a.prototype.$mi.widget_state.reports[o])a.prototype.$mi.widget_state.reports[o].hasOwnProperty(i)&&(s.state.reports[i].enabled=a.prototype.$mi.widget_state.reports[o][i])}s.state.width=a.prototype.$mi.widget_state.width,s.state.interval=a.prototype.$mi.widget_state.interval,s.state.notice30day=a.prototype.$mi.widget_state.notice30day,s.state.compact=typeof a.prototype.$mi.widget_state.compact<"u"?a.prototype.$mi.widget_state.compact:!1,e(!0)}),n1=s=>{let e={overview:{},publisher:{},ecommerce:{}},o=s.rootGetters.hasOwnProperty("$_reports/date")?s.rootGetters["$_reports/date"].interval:"";for(let i in s.state.reports)if(s.state.reports.hasOwnProperty(i)&&s.state.reports[i].hasOwnProperty("type")){let r=s.state.reports[i].type;e[r][i]=s.state.reports[i].enabled}N.saveWidgetState(s,s.state.width,e,o)},a1=()=>{N.markNoticeClosed()},l1={processDefaults:r1,saveWidgetState:n1,markNoticeClosed:a1},C1=s=>{const e="hide_for_v4",o={};for(let i in s.reports)s.reports[i][e]||(o[i]=s.reports[i]);return o},c1=s=>s.width,d1=s=>s.width!=="regular"?!1:s.compact,p1=s=>s.loaded,g1=s=>s.error,h1=s=>s.notice30day,f1={reports:C1,width:c1,loaded:p1,error:g1,notice30day:h1,compact:d1},u1=(s,e)=>{s.reports[e]&&a.set(s.reports[e],"enabled",!0)},w1=(s,e)=>{s.reports[e]&&a.set(s.reports[e],"enabled",!1)},m1=(s,e)=>{s.loaded=e},_1=(s,e)=>{s.width=e},y1=(s,e)=>{s.compact=e},v1=(s,e)=>{if(typeof e.title>"u"&&typeof e.content>"u"&&typeof e.footer>"u"){a.set(s.error,e.report,!1);return}a.set(s.error,e.report,e)},L1={ENABLE_REPORT:u1,DISABLE_REPORT:w1,UPDATE_LOADED:m1,UPDATE_WIDTH:_1,SET_ERROR:v1,UPDATE_COMPACT:y1},{__:l}=wp.i18n,b1={width:"regular",interval:30,loaded:!1,compact:!0,reports:{overview:{type:"overview",name:l("Overview Report","google-analytics-for-wordpress"),enabled:!0,component:"WidgetReportOverview"},toppages:{type:"overview",name:l("Top Posts/Pages","google-analytics-for-wordpress"),tooltip:l("This list shows your website's most viewed posts and pages based on pageviews.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportTopPosts"},newvsreturn:{type:"overview",name:l("New vs. Returning Visitors","google-analytics-for-wordpress"),tooltip:l("This graph shows what percent of your user sessions come from new versus repeat visitors.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportNewVsReturning"},devices:{type:"overview",name:l("Device Breakdown","google-analytics-for-wordpress"),tooltip:l("This graph shows the percentage of sessions on your site from different types of devices: traditional desktops/laptops, tablets, and mobile phones.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportDevices"},landingpages:{type:"publisher",name:l("Top Landing Pages","google-analytics-for-wordpress"),tooltip:l("This list shows the top pages users first land on when visiting your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportLandingPages"},exitpages:{type:"publisher",name:l("Top Exit Pages","google-analytics-for-wordpress"),tooltip:l("This list shows the top pages users exit your website from.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportExitPages",hide_for_v4:!0},outboundlinks:{type:"publisher",name:l("Top Outbound Links","google-analytics-for-wordpress"),tooltip:l("This list shows the top links clicked on your website that go to another website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportOutboundLinks"},affiliatelinks:{type:"publisher",name:l("Top Affiliate Links","google-analytics-for-wordpress"),tooltip:l("This list shows the top affiliate links your visitors clicked the most.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportAffiliateLinks"},downloadlinks:{type:"publisher",name:l("Top Download Links","google-analytics-for-wordpress"),tooltip:l("This list shows the download links your visitors clicked the most.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportDownloadLinks"},infobox:{type:"ecommerce",name:l("Overview","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportEcommerceOverview"},products:{type:"ecommerce",name:l("Top Products","google-analytics-for-wordpress"),tooltip:l("This list shows the top selling products on your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportTopProducts"},conversions:{type:"ecommerce",name:l("Top Conversion Sources","google-analytics-for-wordpress"),tooltip:l("This list shows the top referral websites in terms of product revenue.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportTopConversions"},addremove:{type:"ecommerce",name:l("Total Add/Remove","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportAddRemove"},days:{type:"ecommerce",name:l("Time to Purchase","google-analytics-for-wordpress"),tooltip:l("This list shows how many days from first visit it took users to purchase products from your site.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportDays",hide_for_v4:!0},sessions:{type:"ecommerce",name:l("Sessions to Purchase","google-analytics-for-wordpress"),tooltip:l("This list shows the number of sessions it took users before they purchased a product from your website.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportSessions",hide_for_v4:!0},newcustomers:{type:"ecommerce",name:l("New Customers","google-analytics-for-wordpress"),tooltip:l("The percentage of first time purchasers.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportNewCustomers",hide_for_ua:!0},abandonedcheckouts:{type:"ecommerce",name:l("Abandoned Checkouts","google-analytics-for-wordpress"),tooltip:l("The percentage of checkouts that do not result in a transaction.","google-analytics-for-wordpress"),enabled:!1,component:"WidgetReportAbandonedCheckouts",hide_for_ua:!0}},error:{},notice30day:!1},x1={namespaced:!0,state:b1,actions:l1,getters:f1,mutations:L1},{__:w}=wp.i18n,M1={name:"WidgetTips",data(){return{tips:[{text:w("Forms Tracking help you see who’s viewing your forms, so you can increase conversions.","google-analytics-for-wordpress"),utm:"forms",level:"pro"},{text:w("Custom Dimensions show you popular categories, best time to publish, focus keywords, etc.","google-analytics-for-wordpress"),utm:"custom-dimensions",level:"pro"},{text:w("Make Google Analytics GDPR compliant with our EU Compliance addon.","google-analytics-for-wordpress"),utm:"gdpr",level:"plus"},{text:w("Get real-time Google Analytics report right inside your WordPress dashboard.","google-analytics-for-wordpress"),utm:"real-time",level:"plus"},{text:w("See all your important store metrics in one place with Enhanced Ecommerce Tracking.","google-analytics-for-wordpress"),utm:"ecommerce",level:"pro"},{text:w("Unlock search console report to see your top performing keywords in Google.","google-analytics-for-wordpress"),utm:"search-console",level:"plus"},{text:w("Get Page Insights to see important metrics for individual posts / pages in WordPress.","google-analytics-for-wordpress"),utm:"page-insights",level:"plus"},{text:w("Publishers Report shows your top performing pages, audience demographics, and more.","google-analytics-for-wordpress"),utm:"publishers",level:"plus"},{text:w("Get Scroll-Depth tracking to see how far users scroll on your pages before leaving.","google-analytics-for-wordpress"),utm:"scroll",level:"plus"}],text_upgrade_link:w("Upgrade to Pro »","google-analytics-for-wordpress"),text_pro_tip:w("Pro Tip:","google-analytics-for-wordpress")}},computed:{...y({license:"$_license/license",license_network:"$_license/license_network"}),licenseLevel(){return this.$mi.network?this.license_network.type:this.license.type},tip(){return this.getTip()}},methods:{getRandomTip(){return this.tips[Math.floor(Math.random()*this.tips.length)]},getPlusTip(){let s=this.getRandomTip();return s.level!=="pro"?this.getPlusTip():s},getTip(){return this.licenseLevel===""?this.getRandomTip():this.licenseLevel==="plus"||this.licenseLevel==="basic"?this.getPlusTip():!1},upgradeUrl(s,e){return this.$getUpgradeUrl(s,e)}}};var H1=function(){var e=this,o=e._self._c;return e.tip?o("div",{staticClass:"monsterinsights-tips"},[o("span",{staticClass:"monstericon-star"}),o("div",{staticClass:"monsterinsights-tip-text"},[o("strong",{domProps:{textContent:e._s(e.text_pro_tip)}}),e._v(" "+e._s(e.tip.text)+" "),o("a",{attrs:{href:e.upgradeUrl("pro-tips",e.tip.utm),target:"_blank",rel:"noopener"},domProps:{textContent:e._s(e.text_upgrade_link)}})])]):e._e()},V1=[],k1=h(M1,H1,V1,!1,null,null,null,null);const R1=k1.exports,{__:p,sprintf:P}=wp.i18n,Z1={name:"WidgetReportOverview",components:{WidgetTips:R1,ReportInfobox:q},computed:{...y({overview:"$_reports/overview",widget_width:"$_widget/width"}),infoboxRange(){return this.overview.infobox&&this.overview.infobox.range?this.overview.infobox.range:0},infoboxSessionsData(){return this.infoboxData("sessions")},infoboxPageviewsData(){return this.infoboxData("pageviews")},infoboxDurationData(){return this.infoboxData("duration")},infoboxBounceData(){return this.infoboxData("bounce_rate",!0)},infoboxTotalUsersData(){return this.infoboxData("totalusers")},infoboxNewUsersData(){return this.infoboxData("new_users")}},data(){return{chartKey:0,current_tab:"sessions",text_sessions:p("Sessions","google-analytics-for-wordpress"),text_sessions_tooltip:P(p("Unique %s Sessions","google-analytics-for-wordpress"),"
"),text_pageviews:p("Pageviews","google-analytics-for-wordpress"),text_pageviews_tooltip:P(p("Unique %s Pageviews","google-analytics-for-wordpress"),"
"),text_infobox_tooltip_sessions:p("A session is the browsing session of a single user to your site.","google-analytics-for-wordpress"),text_infobox_tooltip_pageviews:p("A pageview is defined as a view of a page on your site that is being tracked by the Analytics tracking code. Each refresh of a page is also a new pageview.","google-analytics-for-wordpress"),text_infobox_tooltip_average:p("Average session duration is calculated by dividing the total time spent by all users on your site (in seconds) by the number of sessions.","google-analytics-for-wordpress"),text_infobox_tooltip_bounce:p("Bounce Rate represents the percentage of sessions that don't meet the criteria for an engaged session. A session counts as engaged if the visitor completes an event (like a click or form submission), stays on your site for 10 seconds or longer, or views more than one page.","google-analytics-for-wordpress"),text_infobox_tooltip_totalusers:p("The number of distinct tracked users","google-analytics-for-wordpress"),text_infobox_tooltip_newusers:p("Users who interacted with your site for the first time.","google-analytics-for-wordpress"),text_duration:p("Avg. Session Duration","google-analytics-for-wordpress"),text_bounce:p("Bounce Rate","google-analytics-for-wordpress"),text_total_users:p("Total Users","google-analytics-for-wordpress"),text_new_users:p("New Users","google-analytics-for-wordpress")}},methods:{infoboxData(s,e=!1){let o={};return this.overview.infobox&&this.overview.infobox[s]&&(o.change=this.overview.infobox[s].prev,o.value=this.overview.infobox[s].value.toString(),this.overview.infobox[s].prev===0?o.direction="":this.overview.infobox[s].prev>0?(o.direction="up",o.color="green"):(o.direction="down",o.color="red")),e&&(o.direction==="down"?o.color="green":o.color="red"),o},forceRerender(){this.chartKey+=1}}};var P1=function(){var e=this,o=e._self._c;return o("div",[o("div",{staticClass:"monsterinsights-report-row monsterinsights-report-infobox-row"},[o("report-infobox",{attrs:{title:e.text_sessions,value:e.$formatNumber(e.infoboxSessionsData.value),change:e.infoboxSessionsData.change,color:e.infoboxSessionsData.color,direction:e.infoboxSessionsData.direction,days:e.infoboxRange,tooltip:e.text_infobox_tooltip_sessions}}),o("report-infobox",{attrs:{title:e.text_pageviews,value:e.$formatNumber(e.infoboxPageviewsData.value),change:e.infoboxPageviewsData.change,color:e.infoboxPageviewsData.color,direction:e.infoboxPageviewsData.direction,days:e.infoboxRange,tooltip:e.text_infobox_tooltip_pageviews}}),o("report-infobox",{attrs:{title:e.text_duration,value:e.infoboxDurationData.value,change:e.infoboxDurationData.change,color:e.infoboxDurationData.color,direction:e.infoboxDurationData.direction,days:e.infoboxRange,tooltip:e.text_infobox_tooltip_average}}),o("report-infobox",{attrs:{title:e.text_total_users,value:e.$formatNumber(e.infoboxTotalUsersData.value),change:e.infoboxTotalUsersData.change,color:e.infoboxTotalUsersData.color,direction:e.infoboxTotalUsersData.direction,days:e.infoboxRange,tooltip:e.text_infobox_tooltip_totalusers}}),o("report-infobox",{attrs:{title:e.text_bounce,value:e.infoboxBounceData.value,change:e.infoboxBounceData.change,color:e.infoboxBounceData.color,direction:e.infoboxBounceData.direction,days:e.infoboxRange,tooltip:e.text_infobox_tooltip_bounce}}),o("report-infobox",{attrs:{title:e.text_new_users,value:e.$formatNumber(e.infoboxNewUsersData.value),change:e.infoboxNewUsersData.change,color:e.infoboxNewUsersData.color,direction:e.infoboxNewUsersData.direction,days:e.infoboxRange,tooltip:e.text_infobox_tooltip_newusers}})],1),o("WidgetTips")],1)},$1=[],T1=h(Z1,P1,$1,!1,null,null,null,null);const S1=T1.exports,{__:D1}=wp.i18n,E1={props:{error:[Object,Boolean]},computed:{...y({license:"$_license/license",license_network:"$_license/license_network"}),title(){return this.error.title.title?this.error.title.title:D1("Error","google-analytics-for-wordpress")}},name:"WidgetReportError",methods:{isLicenseExpired(){return!!(typeof this.license<"u"&&this.license&&this.license.is_expired)},isNetworkLicenseExpired(){return!!(typeof this.license_network<"u"&&this.license_network&&this.license_network.is_expired)}}};var F1=function(){var e=this,o=e._self._c;return o("div",{staticClass:"monsterinsights-widget-error",class:e.isLicenseExpired()||e.isNetworkLicenseExpired()?"monsterinsights-license-expired-notice":""},[o("div",{staticClass:"swal2-header"},[e._m(0),o("h2",{staticClass:"swal2-title",attrs:{id:"monsterinsights-error-title"},domProps:{textContent:e._s(e.title)}})]),e.error.content?o("div",{staticClass:"monsterinsights-error-content",domProps:{innerHTML:e._s(e.error.content)}}):e._e(),e.error.footer?o("div",{staticClass:"monsterinsights-error-footer",domProps:{innerHTML:e._s(e.error.footer)}}):e._e()])},B1=[function(){var s=this,e=s._self._c;return e("div",{staticClass:"swal2-icon swal2-error swal2-animate-error-icon",staticStyle:{display:"flex"}},[e("span",{staticClass:"swal2-x-mark"},[e("span",{staticClass:"swal2-x-mark-line-left"}),e("span",{staticClass:"swal2-x-mark-line-right"})])])}],W1=h(E1,F1,B1,!1,null,null,null,null);const A1=W1.exports,{__:$}=wp.i18n,z1={name:"WidgetReportsLink",props:{see_all:String,go_to:String},data(){return{default_see_all:$("See All Reports","google-analytics-for-wordpress"),default_go_to:$("Go to the Analytics Dashboard","google-analytics-for-wordpress")}},computed:{text_see_all(){return this.see_all?this.see_all:this.default_see_all},text_go_to(){return this.go_to?this.go_to:this.default_go_to}}};var I1=function(){var e=this,o=e._self._c;return o("div",{staticClass:"monsterinsights-reports-link"},[o("span",{domProps:{innerHTML:e._s(e.text_see_all)}}),e._v(" "),o("a",{staticClass:"monsterinsights-button monsterinsights-button-small",attrs:{href:e.$mi.reports_url},domProps:{innerHTML:e._s(e.text_go_to)}})])},N1=[],O1=h(z1,I1,N1,!1,null,null,null,null);const U1=O1.exports;let k=!1,R=!1,T=!1;const Y1={name:"WidgetAccordion",components:{WidgetReportsLink:U1,ReportUpsellOverlay:J,WidgetReportError:A1,SettingsInfoTooltip:t1,WidgetReportOverview:S1},props:{mobileWidth:{default:782,type:Number}},data(){return{activeReport:"overview",reportsWithUpsell:{},isMobile:!1}},created(){if(this.$mi.widget_state&&this.$mi.widget_state.interval){const s=this.$mi.widget_state.interval,e=this.$mi_intervals(),o=e[s]||e.last30days,i=o.start||M().subtract(1,"days"),r=o.end||M.subtract(30,"days");this.$store.commit("$_reports/UPDATE_INTERVAL",this.$mi.widget_state.interval),this.$store.commit("$_reports/UPDATE_DATE",{start:i.format("YYYY-MM-DD"),end:r.format("YYYY-MM-DD")})}},computed:{...y({widget_reports:"$_widget/reports",widget_width:"$_widget/width",loaded:"$_widget/loaded",error:"$_widget/error"}),widgetFullWidth(){return this.widget_width!=="regular"},widgetReports(){let s={},e={};k=!1;for(let o in this.widget_reports)if(this.widget_reports.hasOwnProperty(o)&&this.widget_reports[o].enabled){if(this.widgetFullWidth){if(typeof this.reportsWithUpsell[o]<"u")if(k===!1)k=!0;else continue;if(this.error[this.widget_reports[o].type]){let i=this.widget_reports[o].type;if(e[i]=e[i]?e[i]+1:1,e[i]>1)continue}}s[o]=this.widget_reports[o]}return s}},methods:{maybeHideUpsell(s){this.$set(this.reportsWithUpsell,s,1),this.widgetFullWidth&&!T&&(T=!0,this.$forceUpdate())},toggle(s,e){const o=this.widget_reports[e].type,i=this;i.$store.commit("$_widget/UPDATE_LOADED",!1),i.$store.commit("$_widget/SET_ERROR",{report:o}),this.$store.dispatch("$_reports/getReportData",o).then(function(){i.$store.commit("$_widget/UPDATE_LOADED",!0)}),this.activeReport=e===this.activeReport?"":e,this.activeReport!==""&&this.scrollIntoView(s.target)},toggleClass(s){let e="monsterinsights-widget-toggle";return this.activeReport===s&&(e+=" monsterinsights-widget-toggle-active"),e},showReport(s,e){return this.widgetFullWidth&&e.enabled&&!this.isMobile?!0:this.activeReport===s},reportClass(s){return"monsterinsights-widget-report-element monsterinsights-widget-report-"+s},scrollIntoView(s){this.$nextTick(()=>{let e=s.getBoundingClientRect();window.scrollTo({top:e.top-50+pageYOffset,left:0,behavior:"smooth"})})},showReportTitle(s){return this.widgetFullWidth?!0:s},handleResize(){R||(R=!0,window.requestAnimationFrame?window.requestAnimationFrame(this.resizeCallback):setTimeout(this.resizeCallback,66))},resizeCallback(){this.isMobile=window.innerWidth%2$s',x("Recommended Plugin:","google-analytics-for-wordpress"),this.plugin_name)}}};var M2=function(){var e=this,o=e._self._c;return e.showRecommended?o("div",{staticClass:"monsterinsights-widget-footer"},[o("span",{domProps:{innerHTML:e._s(e.getRecommendedText)}}),o("span",[e._v(" - ")]),o("a",{attrs:{href:e.action_url},domProps:{textContent:e._s(e.action_text)}}),o("a",{attrs:{href:e.learn_url,target:"_blank"},domProps:{textContent:e._s(e.text_learn_more)}})]):e._e()},H2=[],V2=h(x2,M2,H2,!1,null,null,null,null);const k2=V2.exports,{__:R2}=wp.i18n,Z2={name:"ModuleDashboardWidget",components:{ReportReAuth:Q,WidgetFooter:k2,WidgetSettings:L2,WidgetAccordion:q1},data(){return{text_overview_report:R2("Overview Report","google-analytics-for-wordpress")}},computed:{...y({blocked:"$_app/blocked",blur:"$_reports/blur",widget_width:"$_widget/width",compact:"$_widget/compact",reauth:"$_reports/reauth"}),route(){return this.$route.name},mainClass(){let s="monsterinsights-dashboard-widget-page";return this.blur&&(s+=" monsterinsights-blur"),this.compact&&(s+=" monsterinsights-dashboard-widget-compact"),s},fullWidth(){return this.widget_width!=="regular"}},created(){const s="$_reports";s in this.$store._modules.root._children||this.$store.registerModule(s,X);const e="$_widget";e in this.$store._modules.root._children||this.$store.registerModule(e,x1)},mounted(){this.$store.dispatch("$_widget/processDefaults").then(()=>{this.$nextTick(()=>{this.$refs.settings.toggleFullWidth(!0)})})}};var P2=function(){var e=this,o=e._self._c;return o("div",{class:e.mainClass},[o("widget-settings",{ref:"settings"}),e.reauth?o("report-re-auth"):o("widget-accordion"),e.fullWidth?o("div",{staticClass:"monsterinsights-fullwidth-mascot"}):e._e(),e.fullWidth?o("div",{staticClass:"monsterinsights-fullwidth-report-title",domProps:{textContent:e._s(e.text_overview_report)}}):e._e(),e.fullWidth?e._e():o("widget-footer")],1)},$2=[],T2=h(Z2,P2,$2,!1,null,null,null,null);const S2=T2.exports;const{__:Z}=wp.i18n,D2={name:"WidgetReminder",data(){return{notifications:[],icons:{default:'',star:'',warning:'',lightning:''},text_expired_license:{title:Z("Your MonsterInsights license key has expired.","google-analytics-for-wordpress"),content:Z("Renew today to ensure Google Analytics continues to track properly.","google-analytics-for-wordpress"),btn:{text:Z("Click here.","google-analytics-for-wordpress"),url:this.$getUrl("vue-admin-notification","expired-license","https://www.monsterinsights.com/my-account/")}},elem_id_expired_license:"expired-license-notice",showLoader:!1}},computed:{...y({license:"$_license/license",license_network:"$_license/license_network"})},mounted(){this.getNotifications(),this.checkExpiredLicenseNoticeStatus()},methods:{async getNotifications(){const s=await o1.fetchNotifications();return s?this.notifications=s.notifications:!1},hideNotice(s){let e=this;this.showLoader=!0,this.$store.dispatch("$_notifications/dismissNotification",s).then(()=>{e.getNotifications(),this.showLoader=!1})},isLicenseExpired(){return this.license!=="undefined"?this.license.is_expired:!1},isNetworkLicenseExpired(){return this.license_network!=="undefined"?this.license_network.is_expired:!1},showExpiredLicenseNotice(){const s=localStorage.getItem("hideExpiredLicenseNotice");return!(s&&parseInt(s)===1)},hideExpiredNotice(s){const e=M(M().tz(this.$mi.timezone).format("YYYY-MM-DD"));localStorage.setItem("hideExpiredLicenseNotice",1),localStorage.setItem("hideExpiredLicenseNoticeTime",e);let o=document.getElementById(s);o.style.display="none"},checkExpiredLicenseNoticeStatus(){const s=localStorage.getItem("hideExpiredLicenseNoticeTime");s&&M(M().tz(this.$mi.timezone).format("YYYY-MM-DD")).diff(s)>=1&&(localStorage.removeItem("hideExpiredLicenseNotice"),localStorage.removeItem("hideExpiredLicenseNoticeTime"))}}};var E2=function(){var e=this,o=e._self._c;return o("div",{staticClass:"monsterinsights-reminder-widget-container"},[e.isLicenseExpired()||e.isNetworkLicenseExpired()?o("transition",{attrs:{name:"monsterinsights-slide-up"}},[e.showExpiredLicenseNotice()?o("div",{attrs:{id:e.elem_id_expired_license}},[o("div",{staticClass:"monsterinsights-reminder-widget"},[o("div",{staticClass:"monsterinsights-tracking-notice"},[o("div",{staticClass:"monsterinsights-tracking-notice-icon"},[o("div",{domProps:{innerHTML:e._s(e.icons.warning)}})]),o("div",{staticClass:"monsterinsights-tracking-notice-text"},[o("h3",{domProps:{textContent:e._s(e.text_expired_license.title)}}),o("p",[o("span",{domProps:{innerHTML:e._s(e.text_expired_license.content)}}),o("br"),o("br"),o("span",[o("a",{staticClass:"monsterinsights-reminder-notice-links",attrs:{target:"_blank",href:e.text_expired_license.btn.url,title:e.text_expired_license.btn.text}},[e._v(" "+e._s(e.text_expired_license.btn.text)+" ")])])])]),o("div",{staticClass:"monsterinsights-tracking-notice-close",on:{click:function(i){return e.hideExpiredNotice(e.elem_id_expired_license)}}},[e._v(" × ")])])])]):e._e()]):e._e(),e.notifications?o("div",[e.showLoader?o("div",{staticClass:"monsterinsights-notice-closing-loader"}):e._e(),o("TransitionGroup",{attrs:{name:"monsterinsights-slide-up",tag:"div"}},e._l(e.notifications,function(i,r){return o("div",{key:r,staticClass:"monsterinsights-reminder-widget"},[o("div",{staticClass:"monsterinsights-tracking-notice"},[o("div",{staticClass:"monsterinsights-tracking-notice-icon"},[o("div",{domProps:{innerHTML:e._s(e.icons[i.icon])}})]),o("div",{staticClass:"monsterinsights-tracking-notice-text"},[o("h3",{domProps:{textContent:e._s(i.title)}}),o("p",[o("span",{domProps:{innerHTML:e._s(i.content)}}),o("br"),i.btns?o("span",e._l(i.btns,function(n,d){return o("a",{key:d,staticClass:"monsterinsights-reminder-notice-links",attrs:{target:n.is_external?"_blank":"_self",href:n.url},domProps:{textContent:e._s(n.text)},on:{click:function(c){return e.hideNotice(i.id)}}})}),0):e._e()])]),o("div",{staticClass:"monsterinsights-tracking-notice-close",on:{click:function(n){return e.hideNotice(i.id)}}},[e._v(" × ")])])])}),0)],1):e._e()],1)},F2=[],B2=h(D2,E2,F2,!1,null,null,null,null);const W2=B2.exports,A2={"addon-ads":{viewBox:"0 0 512 512",content:''},"addon-amp":{viewBox:"0 0 320 512",content:''},"addon-dimensions":{viewBox:"0 0 576 512",content:''},"addon-ecommerce":{viewBox:"0 0 448 512",content:''},"addon-eu-compliance":{viewBox:"0 0 576 512",content:''},"addon-forms":{viewBox:"0 0 384 512",content:''},"addon-media":{viewBox:"0 0 576 512",content:''},"addon-page-insights":{viewBox:"0 0 512 512",content:''},"addon-performance":{viewBox:"0 0 576 512",content:''},"addon-user-journey":{viewBox:"0 0 50 43",content:''},"addon-ppc-tracking":{viewBox:"0 0 50 50",content:''},"addon-exceptions":{viewBox:"0 0 17 15",content:''},"addon-site-notes-important-events":{viewBox:"0 0 18 19",content:''},"report-sessions":{viewBox:"0 0 17 16",content:''},"report-sessions-active":{viewBox:"0 0 17 16",content:''},"report-pageviews":{viewBox:"0 0 16 17",content:''},"report-pageviews-active":{viewBox:"0 0 16 17",content:''},"report-totalusers":{viewBox:"0 0 21 11",content:''},"report-totalusers-active":{viewBox:"0 0 21 11",content:''},"report-pageviews_per_user":{viewBox:"0 0 16 17",content:''},"report-pageviews_per_user-active":{viewBox:"0 0 16 17",content:''},"report-average_session_duration":{viewBox:"0 0 16 16",content:''},"report-average_session_duration-active":{viewBox:"0 0 16 16",content:''},"report-bounce_rate":{viewBox:"0 0 16 17",content:''},"report-bounce_rate-active":{viewBox:"0 0 16 17",content:''},"report-revenue_sales":{viewBox:"0 0 16 17",content:''},"report-revenue_sales-active":{viewBox:"0 0 16 17",content:''},"report-average_revenue_per_user":{viewBox:"0 0 16 17",content:''},"report-average_revenue_per_user-active":{viewBox:"0 0 16 17",content:''},"report-average_revenue_per_session":{viewBox:"0 0 16 17",content:''},"report-average_revenue_per_session-active":{viewBox:"0 0 16 17",content:''},"report-new_users":{viewBox:"0 0 16 17",content:''},"report-new_users-active":{viewBox:"0 0 16 17",content:''},"report-ecommerce_purchases":{viewBox:"0 0 16 16",content:''},"report-ecommerce_purchases-active":{viewBox:"0 0 16 16",content:''},"report-engagement_rate":{viewBox:"0 0 16 17",content:''},"report-engagement_rate-active":{viewBox:"0 0 16 17",content:''},"report-sessions_per_user":{viewBox:"0 0 16 17",content:''},"report-sessions_per_user-active":{viewBox:"0 0 16 17",content:''},"report-settings":{viewBox:"0 0 27 27",content:''},"report-settings-close":{viewBox:"0 0 16 16",content:''},"report-forms-completions":{viewBox:"0 0 17 17",content:''},"report-forms-impressions":{viewBox:"0 0 17 17",content:''},"report-search-impressions":{viewBox:"0 0 20 20",content:''},"report-search-clicks":{viewBox:"0 0 20 20",content:''},"report-search-position":{viewBox:"0 0 20 20",content:''},"report-search-impressions-active":{viewBox:"0 0 20 20",content:''},"report-search-clicks-active":{viewBox:"0 0 20 20",content:''},"report-search-position-active":{viewBox:"0 0 20 20",content:''}},{__:t,sprintf:z2}=wp.i18n,O={install(s){const e=this;s.prototype.$miOverviewTooltips=function(i){if(!i.title)return document.querySelectorAll(".monsterinsights-line-chart-tooltip").forEach(function(H){H.style.opacity=0}),!1;let r=i.title[0],n=i.title[1],d=parseInt(i.title[2]),c=i.title[3],g=i.title[4]?i.title[4]:i.title[2],m=i.title[5]?i.title[5]:[],C=document.getElementById("monsterinsights-chartjs-line-"+g+"-tooltip");if(C===null&&(C=document.createElement("div"),document.body.appendChild(C),C.setAttribute("id","monsterinsights-chartjs-line-"+g+"-tooltip"),C.classList.add("monsterinsights-line-chart-tooltip")),!i.opacity){C.style.opacity=0;return}C.classList.remove("above"),C.classList.remove("below"),C.classList.remove("no-transform"),i.yAlign?C.classList.add(i.yAlign):C.classList.add("no-transform");let u="";d&&(d===0?u+="0%":d>0?u+=' '+d+"%":u+=' '+Math.abs(d)+"%");let f='
';f+='
'+n+"
",f+='
'+u+"
",c&&(f+='
'+c+"
"),f+='
'+r+"
",m&&(f+="
",m.forEach(v=>{v.title&&(f+=v.title+"
")})),f+="
",C.innerHTML=f;const L=this._chart.canvas.getBoundingClientRect();C.style.opacity="1",C.style.left=L.left+window.pageXOffset+i.x+"px",C.style.top=L.top+window.pageYOffset+i.y+"px",C.style.fontFamily="Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;",C.style.fontSize=i.fontSize,C.style.fontStyle=i._fontStyle,C.style.padding=i.yPadding+"px "+i.xPadding+"px",C.style.zIndex=99999,C.style.pointerEvents="none"},s.prototype.$miPieTooltips=function(i){if(!i.title)return document.querySelectorAll(".monsterinsights-pie-chart-tooltip").forEach(function(C){C.style.opacity=0}),!1;let r=i.title[0],n=i.title[1],d=i.title[2],c=document.getElementById("monsterinsights-chartjs-pie-"+d+"-tooltip");c===null&&(c=document.createElement("div"),document.body.appendChild(c),c.setAttribute("id","monsterinsights-chartjs-pie-"+d+"-tooltip")),c.classList.remove("above"),c.classList.remove("below"),c.classList.remove("no-transform"),i.yAlign?c.classList.add(i.yAlign):c.classList.add("no-transform");let g='
';g+='
'+n+"%
",g+='
'+r+"
",g+="
",c.innerHTML=g,c.style.opacity=1,c.style.padding=i.yPadding+"px "+i.xPadding+"px",c.style.zIndex="99999"},s.prototype.$mi_loading_toast=function(i,r=!0){let n="monsterinsights-swal monsterinsights-swal-loading";(window.scrollY>0||r)&&(n+=" monsterinsights-swal-full-height"),s.prototype.$swal({customClass:{container:n},icon:"info",title:i||t("Loading new report data","google-analytics-for-wordpress"),html:t("Please wait...","google-analytics-for-wordpress"),allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,loaderHtml:e.getCustomLoaderHtml(),didOpen:function(){s.prototype.$swal.showLoading()}})},s.prototype.$mi_success_toast=function(i){let{toast:r=!0,position:n="top-end",showConfirmButton:d=!1,icon:c="success",timer:g=3e3,customClass:m="mi-success",showCloseButton:C=!0,title:u=t("Settings Updated","google-analytics-for-wordpress"),showCancelButton:f=!1,confirmButtonText:L="",cancelButtonText:v="",text:H=""}=i;return s.prototype.$swal({customClass:{container:"monsterinsights-swal "+(m||"")},toast:r,position:n,showConfirmButton:d,icon:c,showCloseButton:C,title:u,timer:g,showCancelButton:f,confirmButtonText:L,cancelButtonText:v,text:H,showClass:{popup:""},hideClass:{popup:""}})},s.prototype.$mi_error_toast=function(i){let r=t("Continue %s","google-analytics-for-wordpress"),{icon:n="error",customContainerClass:d="monsterinsights-swal monsterinsights-swal-succcess",allowOutsideClick:c=!1,allowEscapeKey:g=!1,allowEnterKey:m=!1,title:C=t("Error","google-analytics-for-wordpress"),html:u=t("Please try again.","google-analytics-for-wordpress"),confirmButtonText:f=z2(r,''),showCancelButton:L=!1,cancelButtonText:v="Cancel",footer:H=!1,timer:Y=3e3}=i;return s.prototype.$swal({icon:n,customClass:{container:d},allowOutsideClick:c,allowEscapeKey:g,allowEnterKey:m,title:C,html:'

'+u+"

",footer:H,showCancelButton:L,cancelButtonText:v,confirmButtonText:f,timer:Y,didOpen:function(){s.prototype.$swal.hideLoading()}})},s.prototype.$mi_get_upsell_content=function(i){let r={};const n={overview:{mainheading:t("Publishers Report","google-analytics-for-wordpress"),title:t("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),subtitle:t("Stop guessing about what content your visitors are interested in. MonsterInsights Publisher Report shows you exactly which content gets the most visits, so you can analyze and optimize it for higher conversions.","google-analytics-for-wordpress"),features:[t("Top Landing Pages","google-analytics-for-wordpress"),t("Top Affilliate Links","google-analytics-for-wordpress"),t("Top Exit Pages","google-analytics-for-wordpress"),t("Top Download Links","google-analytics-for-wordpress"),t("Top Outbound Links","google-analytics-for-wordpress"),t("Scroll Depth","google-analytics-for-wordpress")]},publisher:{mainheading:t("Publishers Report","google-analytics-for-wordpress"),title:t("Improve Your Conversion Rate With Insights Into Which Content Works Best.","google-analytics-for-wordpress"),features:[t("Top Landing Pages","google-analytics-for-wordpress"),t("Top Affilliate Links","google-analytics-for-wordpress"),t("Top Exit Pages","google-analytics-for-wordpress"),t("Top Download Links","google-analytics-for-wordpress"),t("Top Outbound Links","google-analytics-for-wordpress"),t("Scroll Depth","google-analytics-for-wordpress")]},countries:{mainheading:t("Country / Region Report","google-analytics-for-wordpress"),title:t("View the most popular countries and regions on your website","google-analytics-for-wordpress"),features:[t("Top Page Views","google-analytics-for-wordpress"),t("Top Countries","google-analytics-for-wordpress"),t("Top Regions","google-analytics-for-wordpress"),t("Bounce Rates","google-analytics-for-wordpress"),t("Engaged Sessions","google-analytics-for-wordpress"),t("Purchases","google-analytics-for-wordpress")]},engagement_pages:{mainheading:t("Pages Report","google-analytics-for-wordpress"),title:t("View the most popular pages on your website.","google-analytics-for-wordpress"),features:[t("Page Name","google-analytics-for-wordpress"),t("New Sessions","google-analytics-for-wordpress"),t("Sessions","google-analytics-for-wordpress"),t("Bounce Rate","google-analytics-for-wordpress"),t("Engaged Sessions","google-analytics-for-wordpress"),t("Exits","google-analytics-for-wordpress")]},ecommerce:{mainheading:t("eCommerce Report","google-analytics-for-wordpress"),title:t("Increase Sales and Make More Money With Enhanced eCommerce Insights.","google-analytics-for-wordpress"),features:[t("10+ eCommerce Integrations","google-analytics-for-wordpress"),t("Average Order Value","google-analytics-for-wordpress"),t("Total Revenue","google-analytics-for-wordpress"),t("Sessions to Purchase","google-analytics-for-wordpress"),t("Top Conversion Sources","google-analytics-for-wordpress"),t("Top Products","google-analytics-for-wordpress"),t("Number of Transactions","google-analytics-for-wordpress"),t("Time to Purchase","google-analytics-for-wordpress")]},ecommerce_funnel:{mainheading:t("eCommerce Funnel Report","google-analytics-for-wordpress"),title:t("Visually see how customers move through your eCommerce website to make a purchase.","google-analytics-for-wordpress"),features:[t("Step by Step Funnel View","google-analytics-for-wordpress"),t("Conversion Rates","google-analytics-for-wordpress"),t("Breakdowns by Devices","google-analytics-for-wordpress"),t("Abandonment Rates","google-analytics-for-wordpress"),t("Breakdowns by Channel","google-analytics-for-wordpress"),t("Date Picker","google-analytics-for-wordpress")]},ecommerce_coupons:{mainheading:t("Coupon Report","google-analytics-for-wordpress"),title:t("Learn which coupons are generating the most sales for your store.","google-analytics-for-wordpress"),features:[t("Coupons","google-analytics-for-wordpress"),t("Average Order Value","google-analytics-for-wordpress"),t("Total Revenue","google-analytics-for-wordpress"),t("Sessions to Purchase","google-analytics-for-wordpress"),t("Top Conversion Sources","google-analytics-for-wordpress"),t("Top Products","google-analytics-for-wordpress"),t("Number of Transactions","google-analytics-for-wordpress"),t("Time to Purchase","google-analytics-for-wordpress")]},cart_abandonment:{mainheading:t("Cart Abandonment Report","google-analytics-for-wordpress"),title:t("See which products are left the most so that that you can optimize and increase your sales.","google-analytics-for-wordpress"),features:[t("Products Abandoned","google-analytics-for-wordpress"),t("Revenue Abandoned","google-analytics-for-wordpress"),t("Quantity Abandoned","google-analytics-for-wordpress"),t("Checkout Abandonment","google-analytics-for-wordpress"),t("Cart Abandonment","google-analytics-for-wordpress"),t("Day-by-day Breakdowns","google-analytics-for-wordpress")]},ecommerce_spend_by_day:{mainheading:t("Spend by Day Report","google-analytics-for-wordpress"),title:t("Identify which days of the week generate the most revenue and optimize your marketing campaigns accordingly.","google-analytics-for-wordpress"),features:[t("Daily Revenue Breakdown","google-analytics-for-wordpress"),t("Daily Purchases Analysis","google-analytics-for-wordpress"),t("Items Sold by Day","google-analytics-for-wordpress"),t("Transaction Percentages","google-analytics-for-wordpress"),t("Average Order Value by Day","google-analytics-for-wordpress"),t("Revenue Trends","google-analytics-for-wordpress")]},ecommerce_spend_by_hour:{mainheading:t("Spend by Hour Report","google-analytics-for-wordpress"),title:t("Discover peak shopping hours and optimize your store operations and marketing timing for maximum conversions.","google-analytics-for-wordpress"),features:[t("Hourly Revenue Breakdown","google-analytics-for-wordpress"),t("Hourly Purchases Analysis","google-analytics-for-wordpress"),t("Items Sold by Hour","google-analytics-for-wordpress"),t("Transaction Percentages","google-analytics-for-wordpress"),t("Average Order Value by Hour","google-analytics-for-wordpress"),t("Peak Shopping Hours","google-analytics-for-wordpress")]},ecommerce_purchases_by_location:{mainheading:t("Purchases by Location Report","google-analytics-for-wordpress"),title:t("Understand where your customers are located and optimize your marketing strategies for different geographic regions.","google-analytics-for-wordpress"),features:[t("Country Breakdown","google-analytics-for-wordpress"),t("State Breakdown","google-analytics-for-wordpress"),t("City Breakdown","google-analytics-for-wordpress"),t("Transactions by Location","google-analytics-for-wordpress"),t("Revenue by Geography","google-analytics-for-wordpress"),t("Average Order Value by Location","google-analytics-for-wordpress")]},ecommerce_refunds:{mainheading:t("Refunds Report","google-analytics-for-wordpress"),title:t("Track and analyze refunds to identify problematic products and improve your return policies.","google-analytics-for-wordpress"),features:[t("Total Refunds Tracking","google-analytics-for-wordpress"),t("Refund Amount Analysis","google-analytics-for-wordpress"),t("Products Refunded","google-analytics-for-wordpress"),t("Refund Percentages","google-analytics-for-wordpress"),t("Revenue Refunded","google-analytics-for-wordpress"),t("Daily Refund Trends","google-analytics-for-wordpress")]},ecommerce_refunds_by_geo:{mainheading:t("Refunds by Geography Report","google-analytics-for-wordpress"),title:t("Identify geographic patterns in refunds to optimize your shipping, return policies, and customer service by region.","google-analytics-for-wordpress"),features:[t("Country Breakdown","google-analytics-for-wordpress"),t("State Breakdown","google-analytics-for-wordpress"),t("City Breakdown","google-analytics-for-wordpress"),t("Refunds by Location","google-analytics-for-wordpress"),t("Refund Amount by Geography","google-analytics-for-wordpress"),t("Average Order Value by Location","google-analytics-for-wordpress")]},dimensions:{mainheading:t("Dimensions Report","google-analytics-for-wordpress"),title:t("Increase Engagement and Unlock New Insights About Your Site.","google-analytics-for-wordpress"),features:[t("Author Tracking","google-analytics-for-wordpress"),t("User ID Tracking","google-analytics-for-wordpress"),t("Post Types","google-analytics-for-wordpress"),t("Tag Tracking","google-analytics-for-wordpress"),t("Categories","google-analytics-for-wordpress"),t("SEO Scores","google-analytics-for-wordpress"),t("Publish Times","google-analytics-for-wordpress"),t("Focus Keywords","google-analytics-for-wordpress")]},forms:{mainheading:t("Forms Report","google-analytics-for-wordpress"),title:t("Track Every Type of Web Form and Gain Visibility Into Your Customer Journey.","google-analytics-for-wordpress"),columns:1,features:[t("Conversion Counts","google-analytics-for-wordpress"),t("Impression Counts","google-analytics-for-wordpress"),t("Conversion Rates","google-analytics-for-wordpress")]},queries:{mainheading:t("Search Console Report","google-analytics-for-wordpress"),title:t("See Exactly How Visitors Find Your Website From Google.","google-analytics-for-wordpress"),columns:1,features:[t("Top Google Search Terms","google-analytics-for-wordpress"),t("Number of Clicks","google-analytics-for-wordpress"),t("Click-through Ratio","google-analytics-for-wordpress"),t("Average Results Position","google-analytics-for-wordpress")]},realtime:{mainheading:t("Realtime Report","google-analytics-for-wordpress"),title:t("See Who And What is Happening on Your Website in Realtime.","google-analytics-for-wordpress"),features:[t("Top Page Views","google-analytics-for-wordpress"),t("Current Active Users","google-analytics-for-wordpress"),t("Top Referral Sources","google-analytics-for-wordpress"),t("Pageviews Per Minute","google-analytics-for-wordpress"),t("Top Countries","google-analytics-for-wordpress"),t("Top Cities","google-analytics-for-wordpress")]},sitespeed:{mainheading:t("Site Speed Report","google-analytics-for-wordpress"),title:t("Improve Your User Experience and Improve Search Engine Rankings.","google-analytics-for-wordpress"),features:[t("Overall Site Speed Score","google-analytics-for-wordpress"),t("Server Response Times","google-analytics-for-wordpress"),t("Mobile and Desktop Scores","google-analytics-for-wordpress"),t("First Contentful Paint","google-analytics-for-wordpress"),t("Automatic Recommendations","google-analytics-for-wordpress"),t("Total Blocking Time","google-analytics-for-wordpress"),t("On-Demand Audits","google-analytics-for-wordpress"),t("Time to Interactive","google-analytics-for-wordpress")]},traffic:{mainheading:t("Traffic Report","google-analytics-for-wordpress"),title:t("Learn how visitors arrive to your website and which are the most engaged or profitable.","google-analytics-for-wordpress"),features:[t("Channel Breakdowns","google-analytics-for-wordpress"),t("Session Counts","google-analytics-for-wordpress"),t("Pages/Session","google-analytics-for-wordpress"),t("Conversion Rate","google-analytics-for-wordpress"),t("Revenue","google-analytics-for-wordpress"),t("Engaged Sessions","google-analytics-for-wordpress")]},traffic_landing_pages:{mainheading:t("Landing Page Report","google-analytics-for-wordpress"),title:t("Find out which pages are making your first impression.","google-analytics-for-wordpress"),features:[t("Page Name","google-analytics-for-wordpress"),t("Pages/Session","google-analytics-for-wordpress"),t("Sessions","google-analytics-for-wordpress"),t("Purchases","google-analytics-for-wordpress"),t("Session Counts","google-analytics-for-wordpress"),t("Conversion Rates","google-analytics-for-wordpress")]},traffic_technology:{mainheading:t("Technology Report","google-analytics-for-wordpress"),title:t("Optimize your website for your top devices and browsers.","google-analytics-for-wordpress"),features:[t("Browser Names","google-analytics-for-wordpress"),t("Device Types","google-analytics-for-wordpress"),t("Export to PDF","google-analytics-for-wordpress"),t("Date Filtering","google-analytics-for-wordpress")]},traffic_campaign:{mainheading:t("Campaigns Report","google-analytics-for-wordpress"),title:t("Measure how effective your marketing campaigns are performing.","google-analytics-for-wordpress"),features:[t("Campaign Names","google-analytics-for-wordpress"),t("Easy Filtering","google-analytics-for-wordpress"),t("Pages / Session","google-analytics-for-wordpress"),t("Purchases","google-analytics-for-wordpress"),t("eCommerce Conversion Rates","google-analytics-for-wordpress"),t("Revenue","google-analytics-for-wordpress")]},traffic_source_medium:{mainheading:t("Source and Medium Report","google-analytics-for-wordpress"),title:t("Uncover which traffic sources are creating engagement and sales from your website.","google-analytics-for-wordpress"),features:[t("Source Name","google-analytics-for-wordpress"),t("Pages / Sessions","google-analytics-for-wordpress"),t("Session Counts","google-analytics-for-wordpress"),t("Purchases","google-analytics-for-wordpress"),t("Easy Filtering","google-analytics-for-wordpress"),t("Conversion Rates","google-analytics-for-wordpress")]},traffic_social:{mainheading:t("Social Media Report","google-analytics-for-wordpress"),title:t("See Which Social Media Networks are Making You Money.","google-analytics-for-wordpress"),features:[t("Social Networks","google-analytics-for-wordpress"),t("Sessions","google-analytics-for-wordpress"),t("Bounce Rate","google-analytics-for-wordpress"),t("Purchases","google-analytics-for-wordpress"),t("Revenue","google-analytics-for-wordpress"),t("Conversion Rate","google-analytics-for-wordpress")]},traffic_ai:{mainheading:t("AI Traffic Report","google-analytics-for-wordpress"),title:t("See Which AI Sources are Making You Money.","google-analytics-for-wordpress"),features:[t("AI Sources","google-analytics-for-wordpress"),t("Purchases","google-analytics-for-wordpress"),t("Revenue","google-analytics-for-wordpress"),t("Engaged Sessions","google-analytics-for-wordpress")]},media:{mainheading:t("Media Report","google-analytics-for-wordpress"),title:t("Easily See Which Videos Are Most Popular.","google-analytics-for-wordpress"),features:[t("Videos Plays, Average Duration, and Completions","google-analytics-for-wordpress"),t("Works with YouTube, Vimeo, and HTML 5 Videos","google-analytics-for-wordpress"),t("Compare stats over time","google-analytics-for-wordpress")]},exceptions:{mainheading:t("Exceptions Report","google-analytics-for-wordpress"),title:t("Be Notified About Important Website Events","google-analytics-for-wordpress"),features:[t("Traffic Changes","google-analytics-for-wordpress"),t("Conversion Rate Changes","google-analytics-for-wordpress"),t("Revenue Changes","google-analytics-for-wordpress"),t("Landing Page Changes","google-analytics-for-wordpress"),t("Engagement Rates","google-analytics-for-wordpress"),t("Email Notifications","google-analytics-for-wordpress"),t("Campaign Alerts","google-analytics-for-wordpress"),t("Site Notes Integration","google-analytics-for-wordpress")]},custom_events:{mainheading:t("Custom Events Report","google-analytics-for-wordpress"),title:t("See what custom events are happening on your website","google-analytics-for-wordpress"),features:[t("All Your Website's Tracked Events","google-analytics-for-wordpress"),t("Number of Events","google-analytics-for-wordpress"),t("Number of Sessions","google-analytics-for-wordpress"),t("Number of Engaged Sessions","google-analytics-for-wordpress"),t("Track Key Events","google-analytics-for-wordpress"),t("And Much More!","google-analytics-for-wordpress")]},userjourney:{mainheading:t("User Journey Report","google-analytics-for-wordpress"),title:t("See the exact steps your customers took to purchase, and how they arrived at your website.","google-analytics-for-wordpress"),features:[t("Step-by-Step Purchase Paths","google-analytics-for-wordpress"),t("Purchase Dates","google-analytics-for-wordpress"),t("Campaign Filtering","google-analytics-for-wordpress"),t("Order Totals","google-analytics-for-wordpress"),t("Medium & Source Filtering","google-analytics-for-wordpress"),t("Average Steps to Purchase","google-analytics-for-wordpress")]}};return n[i]&&(r=n[i]),r},s.prototype.$mi_intervals=function(){return z},s.directive("icon",{bind(i,{value:r}){o(i,r)},update(i,{value:r,oldValue:n}){r!==n&&o(i,r)}});function o(i,r){const n=A2[r];if(n===void 0){i.innerHTML="";return}i.classList.contains("icon--tab")||i.classList.add("icon--tab"),i.innerHTML=`${n.content}`}},getCustomLoaderHtml(){return'
'}},{__:D}=wp.i18n,U={install(s,{store:e}){s.prototype.$mi_loading_toast=function(){},s.prototype.$mi_error_toast=function(o){let{icon:i="error",customContainerClass:r="monsterinsights-swal",allowOutsideClick:n=!1,allowEscapeKey:d=!1,allowEnterKey:c=!1,title:g=D("Error","google-analytics-for-wordpress"),html:m=D("Please try again.","google-analytics-for-wordpress"),footer:C=!1,report:u="general"}=o;o={icon:i,customClass:{container:r},allowOutsideClick:n,allowEscapeKey:d,allowEnterKey:c,title:g,html:m,footer:C,report:u},e.commit("$_widget/SET_ERROR",{report:u,title:o.title,content:o.html,footer:o.footer})},s.prototype.$mi_intervals=function(){return z}}};const E=document.getElementById("monsterinsights-dashboard-widget"),F=document.getElementById("monsterinsights-reminder-notice"),B=document.querySelectorAll(".monsterinsights-setup-wizard-link");function I2(){let s=new FormData;s.append("action","monsterinsights_generate_setup_wizard_url"),s.append("nonce",window.monsterinsights.nonce),fetch(window.monsterinsights.ajax,{method:"POST",body:s}).then(e=>e.json()).then(e=>{const{data:o}=e;e.success&&o.wizard_url&&(window.location.href=o.wizard_url)}).catch(e=>{console.error("Error launching wizard:",e)})}B&&B.forEach(s=>{s.addEventListener("click",I2)});a.config.productionTip=!1;E&&({}.NODE_ENV!=="production"&&(a.config.devtools=!0,a.config.performance=!0),j({ctrl:!0}),a.use(A),a.use(G),a.use(K,{defaultTemplate:'',defaultArrowSelector:".monsterinsights-tooltip-arrow, .monsterinsights-tooltip__arrow",defaultInnerSelector:".monsterinsights-tooltip-inner, .monsterinsights-tooltip__inner"}),a.use(I),a.use(O),a.use(U,{store:_}),a.use(e1),new a({store:_,mounted:()=>{_.dispatch("$_app/init"),_.dispatch("$_license/getLicense"),_.dispatch("$_queue/add",()=>_.dispatch("$_notifications/getNotifications"))},render:s=>s(S2)}).$mount(E));F&&(a.use(A),a.use(I),a.use(O),a.use(U,{store:_}),new a({store:_,mounted:()=>{_.dispatch("$_app/init"),_.dispatch("$_license/getLicense")},render:s=>s(W2)}).$mount(F));