{"id":87435,"date":"2023-05-09T12:48:31","date_gmt":"2023-05-09T16:48:31","guid":{"rendered":"https:\/\/optinmonster.com\/?post_type=optinmonster_docs&#038;p=87435"},"modified":"2025-11-13T13:25:21","modified_gmt":"2025-11-13T18:25:21","slug":"how-optinmonster-uses-google-analytics-to-measure-conversion-analytics","status":"publish","type":"optinmonster_docs","link":"https:\/\/optinmonster.com\/docs\/how-optinmonster-uses-google-analytics-to-measure-conversion-analytics\/","title":{"rendered":"How to Integrate OptinMonster with Google Analytics"},"content":{"rendered":"\n<p>OptinMonster makes it easy to integrate your campaigns with Google Analytics for detailed reporting. View, filter and run detailed reports on campaign impressions and conversions using Google Analytics.<\/p>\n\n\n\n<p>In this article, you&#8217;ll learn how to connect Google Analytics with OptinMonster.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column alert alert-info is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong><em>Before you start<\/em><\/strong>, this feature is available with a <a href=\"https:\/\/optinmonster.com\/pricing\" target=\"_blank\" rel=\"noopener\" title=\"Pro and higher subscription\">Pro and higher subscription<\/a>.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"alert-box alert-blue\">\n<p class=\"alert-box-title\">Native Analytics:<\/p>\n\n\n\n<p>Google Analytics integration is optional.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-view-campaign-analytics-optinmonster\/\" title=\"\">View native analytics for your campaigns in OptinMonster following this guide<\/a><\/p>\n<\/div>\n\n\n\n<p><em><strong>Before you start<\/strong><\/em><em>, <\/em>you\u2019ll need to have an active Google Analytics account. <a href=\"https:\/\/google.com\/analytics\" target=\"_blank\" rel=\"nofollow noopener\">Create your Google Analytics account<\/a>.<\/p>\n\n\n\n<p><em><strong>Before you start<\/strong><\/em>, if you are not the owner of the Google Analytics account you are connecting to OptinMonster, you will need to be an <a href=\"https:\/\/support.google.com\/analytics\/answer\/9305587?hl=en#zippy=%2Cuniversal-analytics\" target=\"_blank\" rel=\"nofollow noopener\">Editor or Administrator level user<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Required: Custom Dimensions<\/h2>\n\n\n\n<p>Before you can run reports from your Google Analytics account, it is necessary to first create custom dimensions in Google Analytics for your GA4 Property. <\/p>\n\n\n\n<p>To create custom dimensions for your OptinMonster campaigns in Google Analytics, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Sign into your Google Analytics account.<\/li>\n\n\n\n<li>While viewing the Google Analytics property you wish to modify, click the gear icon in the lower left-hand corner. Then select the <strong>Data display &gt; Custom definitions<\/strong> option.<br><img decoding=\"async\" width=\"800\" height=\"673\" srcset=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-080904-1024x861.png 1024w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-080904-300x252.png 300w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-080904-768x646.png 768w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-080904-1536x1292.png 1536w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-080904.png 1726w\" src=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-080904-1024x861.png\" alt=\"Navigate to Custom Dimensions in Google Analytics\"><\/li>\n\n\n\n<li>In the <em>Custom definitions<\/em> screen, select the <strong>Create custom dimension<\/strong> button.<br><img decoding=\"async\" width=\"800\" height=\"475\" srcset=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081017-1024x608.png 1024w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081017-300x178.png 300w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081017-768x456.png 768w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081017-1536x911.png 1536w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081017.png 1726w\" src=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081017-1024x608.png\" alt=\"Create a new Custom Dimension\"><\/li>\n\n\n\n<li>You\u2019ll create <strong>three<\/strong> new Custom Dimensions: <strong>OM Campaign Name<\/strong>, <strong>OM Campaign ID<\/strong>, and <strong>OM Campaign Interaction<\/strong>. For each, set the <strong>Scope <\/strong>to Event, and enter the associated <strong>Event parameter&nbsp;<\/strong>as <code>om_campaign_name<\/code>, <code>om_campaign_id<\/code>, and <code>om_campaign_interaction<\/code>, respectively.<br><img decoding=\"async\" width=\"800\" height=\"297\" srcset=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081220-1024x380.png 1024w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081220-300x111.png 300w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081220-768x285.png 768w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081220-1536x570.png 1536w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081220.png 1724w\" src=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081220-1024x380.png\" alt=\"Create a custom definition for campaign name\"><br><img decoding=\"async\" width=\"800\" height=\"294\" srcset=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081313-1024x376.png 1024w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081313-300x110.png 300w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081313-768x282.png 768w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081313-1536x564.png 1536w, https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081313.png 1726w\" src=\"https:\/\/cdn.optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2024-03-05-at-081313-1024x376.png\" alt=\"Create a custom definition for campaign ID\"><br><img decoding=\"async\" width=\"800\" height=\"416\" class=\"wp-image-199840\" style=\"width: 800px;\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2025-01-03-at-104651.png\" alt=\"Custom dimensions for the OM Campaign Interaction event parameter.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2025-01-03-at-104651.png 1100w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2025-01-03-at-104651-300x156.png 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2025-01-03-at-104651-1024x532.png 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/Markup-2025-01-03-at-104651-768x399.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n<\/ol>\n\n\n\n<p class=\"is-style-arrow-link\"><a href=\"https:\/\/support.google.com\/analytics\/answer\/2709829\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Learn more about using Custom Dimensions in Google Analytics<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connect Google Analytics<\/h2>\n\n\n\n<p>When you&nbsp;<a href=\"https:\/\/optinmonster.com\/docs\/creating-your-first-optin\/\" target=\"_blank\" rel=\"noopener\" title=\"\">create a campaign<\/a> in OptinMonster that you intend to track the detailed performance of you&#8217;ll want to integrate with Google Analytics.<\/p>\n\n\n\n<p>To connect Google Analytics to OptinMonster, follow these steps:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to Integrate OptinMonster with Google Analytics\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/YOmT-9f8NGI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the OptinMonster Campaign builder, navigate to the Analytics view and select the <strong>Connect&nbsp;<\/strong>button next to Google Analytics.<br><img decoding=\"async\" width=\"800\" height=\"367\" class=\"alignnone size-full wp-image-178914\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga.jpg\" alt=\"Connect Google Analytics.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga-300x138.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga-768x352.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>If there are no existing Google Analytics integrations in your OptinMonster account you will be prompted to authenticate with Google Analytics.<br>Select the&nbsp;<strong>Generate Authentication Code<\/strong> button.<br><img decoding=\"async\" width=\"800\" height=\"200\" class=\"alignnone size-full wp-image-178913\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/generate-ga-auth.jpg\" alt=\"Authenticate Google Analytics with OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/generate-ga-auth.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/generate-ga-auth-300x75.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/generate-ga-auth-768x192.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>A popup window will open. If you are not already logged into Google Analytics you will first be prompted to do so. Then, select the&nbsp;<strong>Allow<\/strong> button to authenticate the connection between Google Analytics and OptinMonster.<br><img decoding=\"async\" width=\"791\" height=\"1024\" class=\"alignnone size-large wp-image-178912\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-permissions-791x1024.jpg\" alt=\"Grant permission for Google Analytics to connect with OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-permissions-791x1024.jpg 791w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-permissions-232x300.jpg 232w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-permissions-768x994.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-permissions.jpg 800w\" sizes=\"(max-width: 791px) 100vw, 791px\" \/><\/li>\n\n\n\n<li>Next, you&#8217;ll be returned to OptinMonster and the <strong>Google Authorization Code<\/strong> field will automatically populate with the generated code.<br>Enter an <strong>Account Label<\/strong> (*internal use only)&nbsp;then select the&nbsp;<strong>Next<\/strong>&nbsp;button.<strong><strong><br><\/strong><\/strong><em><img decoding=\"async\" width=\"800\" height=\"296\" class=\"alignnone size-full wp-image-178911\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga-finish.jpg\" alt=\"Connect OptinMonster with Google Analytics.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga-finish.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga-finish-300x111.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/connect-ga-finish-768x284.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>*The Account Label can be anything that helps you identify the specific integration within OptinMonster. It\u2019s possible to add more than one Google Analytics integration to your account and this is an easy way to differentiate between them when assigning integrations to individual campaigns.<\/em><\/li>\n\n\n\n<li><strong>Required<\/strong>: Select the <strong>Property<\/strong> you want to send Analytics data to. You can send data to&nbsp;<strong>GA4 Properties<\/strong>.<br><img decoding=\"async\" width=\"800\" height=\"182\" class=\"alignnone size-full wp-image-178910\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/select-ga-profiles.jpg\" alt=\"Select the Google Analytics properties you want to send data to.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/select-ga-profiles.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/select-ga-profiles-300x68.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/select-ga-profiles-768x175.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n<\/ol>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>When you&#8217;re finished, <strong>Save<\/strong> the campaign.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Default Google Analytics<\/h2>\n\n\n\n<p>You can easily assign a default Google Analytics integration all campaigns you create, to streamline the integration process.<\/p>\n\n\n\n<p>To assign a default Google Analytics integration, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/app.optinmonster.com\/sites\/\" target=\"_blank\" rel=\"noopener\">Navigate to the Sites page<\/a> of your OptinMonster account.<\/li>\n\n\n\n<li>Next, select the <strong>Edit<\/strong> button for the site you wish to assign a default Google Analytics integration to.<br><img decoding=\"async\" width=\"800\" height=\"361\" class=\"alignnone size-full wp-image-178091\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/site-edit.jpg\" alt=\"Edit a Site in OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/site-edit.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/site-edit-300x135.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/site-edit-768x347.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>Scroll down to the <strong>Google Analytics<\/strong> setting, select the <strong>Google Analytics Account<\/strong> and&nbsp;<strong>GA4 Google Analytics Property<\/strong> you wish to assign as the default.<br><img decoding=\"async\" width=\"800\" height=\"207\" class=\"alignnone size-full wp-image-178964\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/default-ga-integration.jpg\" alt=\"Select the default GA4 integration for your Site in OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/default-ga-integration.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/default-ga-integration-300x78.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/default-ga-integration-768x199.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li><strong>Optional<\/strong>: You can <em><strong>apply this change to all<\/strong><\/em> <em><strong>existing and new<\/strong> <strong>campaigns<\/strong><\/em> connected to the Site you are editing by enabling the checkbox field.<br><img decoding=\"async\" width=\"800\" height=\"205\" class=\"alignnone size-full wp-image-178963\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/apply-ga-all-campaigns.jpg\" alt=\"Apply the default Google Analytics integration to all campaigns.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/apply-ga-all-campaigns.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/apply-ga-all-campaigns-300x77.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/apply-ga-all-campaigns-768x197.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>When you&#8217;re finished click the <strong>Save Changes<\/strong> button.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Remove Google Analytics<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Individual Campaign<\/h3>\n\n\n\n<p>To remove Google Analytics integration from individual campaigns in your OptinMonster account, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the OptinMonster Campaign builder, navigate to the Analytics view and select the <strong>Disconnect<\/strong> button for Google Analytics.<br><img decoding=\"async\" width=\"800\" height=\"361\" class=\"alignnone size-full wp-image-178096\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-disconnect.jpg\" alt=\"Disconnect Google Analytics from OptinMonster campaign.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-disconnect.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-disconnect-300x135.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/ga-disconnect-768x347.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>When you&#8217;re finished,&nbsp;<strong>Save<\/strong> your campaign.<br><em>Impressions and conversions will no longer be sent to Google Analytics.<\/em><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Account-Wide<\/h3>\n\n\n\n<div class=\"alert-box alert-red\">\n<p class=\"alert-box-title\">Warning:<\/p>\n\n\n\n<p><strong><em>This action cannot be undone<\/em><\/strong> and will disconnect Google Analytics from <strong><em>any and all<\/em> <\/strong>campaigns that were integrated with it. You will need to manually reconnect each individual campaign if you wish to send analytics data to Google Analytics again.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><\/p>\n<\/div>\n\n\n\n<p>To remove a Google Analytics integration from your account completely, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/app.optinmonster.com\/integrations\/\" target=\"_blank\" rel=\"noopener\">Navigate to the Integrations page<\/a> in your OptinMonster account.<\/li>\n\n\n\n<li>Select the <strong>Configure<\/strong> button below the Google Analytics icon.<br><img decoding=\"async\" width=\"800\" height=\"335\" class=\"alignnone size-full wp-image-178922\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/configure-google-analytics.jpg\" alt=\"Configure your Google Analytics integration.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/configure-google-analytics.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/configure-google-analytics-300x126.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/configure-google-analytics-768x322.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>Next, select&nbsp;<strong>Disconnect<\/strong> next to the integration you want to remove.<br><img decoding=\"async\" width=\"800\" height=\"384\" class=\"alignnone size-full wp-image-178921\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/disconnect-ga.jpg\" alt=\"Disconnect Google Analytics from OptinMonster.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/disconnect-ga.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/disconnect-ga-300x144.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/03\/disconnect-ga-768x369.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n<\/ol>\n\n\n\n<div class=\"alert-box alert-red\">\n<p class=\"alert-box-title\">Warning:<\/p>\n\n\n\n<p>This will permanently delete the integration. There is no option to undo this action. If you decide to add the integration again you will need to manually reconnect individual campaigns.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><\/p>\n<\/div>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Finally, confirm the deletion by selecting&nbsp;<strong>Yes, I&#8217;m Sure<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Test Integration<\/h2>\n\n\n\n<p><strong>GA4 Properties<\/strong><\/p>\n\n\n\n<p>Use the Realtime Report to test your Google Analytics integration without delay.<\/p>\n\n\n\n<p class=\"is-style-arrow-link\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-view-optinmonster-reports-on-google-analytics\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Learn how to test your campaign integration using Google Analytics&#8217; Realtime report<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">View Analytics Data<\/h2>\n\n\n\n<div class=\"alert-box alert-blue\">\n<p class=\"alert-box-title\"><strong>Native Analytics<\/strong>:<\/p>\n\n\n\n<p class=\"is-style-default\">Are you looking for analytics data within the OptinMonster app? <a href=\"https:\/\/optinmonster.com\/docs\/how-to-view-campaign-analytics-optinmonster\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Learn how to access the native analytics data for your campaigns here<\/a>.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><\/p>\n<\/div>\n\n\n\n<p>Google Analytics reports can be viewed directly from your Google Analytics account.<\/p>\n\n\n\n<p class=\"is-style-arrow-link\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-view-optinmonster-reports-on-google-analytics\/\" target=\"_blank\" rel=\"noreferrer noopener\">Learn how to view OptinMonster campaign reports in Google Analytics<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Customize Event Data<\/h2>\n\n\n\n<div class=\"alert-box alert-blue\">\n<p class=\"alert-box-title\">Note:<\/p>\n\n\n\n<p>The information available in this section is intended for users with advanced technical knowledge, where they have a specific requirement to change the data OptinMonster sends to Google Analytics.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><\/p>\n<\/div>\n\n\n\n<p>The following OptinMonster Javascript Events are available that allow you to adjust event tracking to your needs:<\/p>\n\n\n\n<script src=\"https:\/\/library.wpcode.com\/embedjs\/924zrn0o.js\/\"><\/script>\n\n\n\n<script src=\"https:\/\/library.wpcode.com\/embedjs\/do1g96ro.js\/\"><\/script>\n\n\n\n<p><span style=\"font-size: 13.28px;\">Y<\/span><span style=\"font-size: 16px;\">ou can use the OptinMonster Javascript Events indicated above to modify how the data is sent to Google Analytics. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 16px;\">For example, you could use the following to change the event name:<\/span><\/p>\n\n\n\n<script src=\"https:\/\/library.wpcode.com\/embedjs\/qor6pmxo.js\/\"><\/script>\n\n\n\n<p>Or the following example to add custom event parameters to collect more information:<\/p>\n\n\n\n<script src=\"https:\/\/library.wpcode.com\/embedjs\/r2mg1ne2.js\/\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faqs\">FAQs<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\">Why do I see different impression counts in OptinMonster and GA4?<\/h5>\n\n\n\n<p>That&#8217;s a great question, and it&#8217;s very common to see different impression\/conversion numbers in your OptinMonster dashboard compared to what you see in Google Analytics 4 (GA4). This is completely normal, and it doesn&#8217;t mean anything is broken!<\/p>\n\n\n\n<p>The difference comes down to how each system tracks and records a campaign view.<\/p>\n\n\n\n<p>Think of an OptinMonster Impression as the most direct and accurate count. Every single time we display one of your campaigns to a visitor, our own system immediately and reliably counts it.<\/p>\n\n\n\n<p>A GA4 Impression, on the other hand, is only recorded when OptinMonster successfully tells Google Analytics that a campaign was shown, and the Google Analytics tracking script on your site successfully hears and records it.<\/p>\n\n\n\n<p>Here\u2019s a breakdown of the core differences.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tracking Method:\n<ul class=\"wp-block-list\">\n<li><strong>OptinMonster:<\/strong> We track impressions directly through our own system and send the data straight to our servers. It&#8217;s a closed loop.<\/li>\n\n\n\n<li><strong>GA4:<\/strong> It relies on its own separate tracking system being loaded and running correctly in your visitor&#8217;s web browser.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Data Reliability:\n<ul class=\"wp-block-list\">\n<li><strong>OptinMonster:<\/strong> Our native tracking works independently. It isn&#8217;t affected by most other scripts or browser extensions on the page.<\/li>\n\n\n\n<li><strong>GA4:<\/strong> Its ability to count an impression depends entirely on its tracking code being properly loaded and initialized on your site, without being blocked.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Counting Logic:\n<ul class=\"wp-block-list\">\n<li><strong>OptinMonster:<\/strong> We count every single time a campaign is displayed. No exceptions, no estimates.<\/li>\n\n\n\n<li><strong>GA4:<\/strong> On sites with a lot of traffic, GA4 may use a process called sampling, where it counts a percentage of impressions and then estimates the total number.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Processing Requirements:\n<ul class=\"wp-block-list\">\n<li><strong>OptinMonster:<\/strong> Our count happens instantly when the campaign is displayed.<\/li>\n\n\n\n<li><strong>GA4:<\/strong> For the count to happen, the GA4 script must not be blocked by the visitor&#8217;s ad blocker or other privacy browser extensions, which is very common.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Why are my GA4 impression\/conversion numbers consistently lower than in OptinMonster?<\/h5>\n\n\n\n<p>As we covered in the previous question, OptinMonster and GA4 are not the same thing. It is very common to see lower numbers in GA4. This doesn&#8217;t mean anything is broken! It&#8217;s usually due to one of these common scenarios:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Many visitors use ad blockers which often stop Google Analytics from running. In this case, OptinMonster still counts the impression, but Google Analytics never receives the message.<\/li>\n\n\n\n<li>If a visitor&#8217;s internet is slow or there&#8217;s another script on your page that causes an error, the Google Analytics tracking code might not load properly. Again, we&#8217;ll count the impression, but GA4 won&#8217;t.<\/li>\n\n\n\n<li>Some visitors have browser settings that block all Google Analytics tracking for privacy reasons.<\/li>\n\n\n\n<li>On websites with very high traffic, Google Analytics might use <a href=\"https:\/\/support.google.com\/analytics\/answer\/13331292?hl=en\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">sampling<\/a>. This means it doesn&#8217;t record every single event but instead estimates the total based on a smaller sample. OptinMonster, on the other hand, always counts every impression.<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Which impression\/conversion metric should I trust for reporting?<\/h5>\n\n\n\n<p>You should trust&nbsp;OptinMonster\u2019s native analytics&nbsp;for the most accurate count of how many times your campaigns were actually displayed or converted. Think of our numbers as the true display count. GA4 data is still very valuable for seeing how those campaign interactions fit in with all the other behaviors on your site, like page views and goal completions.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">How does OptinMonster track impressions in GA4?<\/h5>\n\n\n\n<p>When a campaign is displayed to a visitor, OptinMonster sends a custom event to GA4 called&nbsp;<code>optinmonster_impression<\/code>. This event also includes the campaign&#8217;s name and ID, which is why we had you set up those custom dimensions earlier! This allows you to filter and view data for specific campaigns right inside of Google Analytics.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Why might I see impression spikes in OptinMonster but not in GA4?<\/h5>\n\n\n\n<p>This usually comes down to timing and traffic volume. OptinMonster counts every single impression in real-time. During a big traffic spike, GA4 might use sampling (where it only counts a percentage of impressions and estimates the rest) or experience processing delays. So, you&#8217;ll always see the most immediate and complete data inside your OptinMonster dashboard.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Can I track conversions if I&#8217;m using a custom form?<\/h5>\n\n\n\n<p>Yes! You will need to modify your form&#8217;s code to track conversions when the form is submitted.<\/p>\n\n\n\n<p class=\"is-style-arrow-link\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-track-conversions-when-using-a-custom-html-form\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Learn how to track conversions with your custom HTML form<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">How can I bulk-assign a GA4 Property to all existing OptinMonster campaigns?<\/h5>\n\n\n\n<p>You can assign a GA4 Property to all existing campaigns following the <strong><em>Default Google Analytics<\/em><\/strong> section in this guide.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"data\">How can I find my GA4 Property ID?<\/h5>\n\n\n\n<p>When you connect OptinMonster to Google Analytics, you&#8217;ll see the GA4 Property ID displayed in braces after the name and domain of the Property for each item available, like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"800\" height=\"543\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/ga4-property-id.jpg\" alt=\"GA4 Property ID in OptinMonster\" class=\"wp-image-179500\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/ga4-property-id.jpg 800w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/ga4-property-id-300x204.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/05\/ga4-property-id-768x521.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>You can locate the GA4 Property ID in your Google Analytics account <a href=\"https:\/\/support.google.com\/analytics\/answer\/9539598?hl=en\" target=\"_blank\" rel=\"nofollow noopener\">following this guide<\/a>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">What data does OptinMonster send to Google Analytics?<\/h5>\n\n\n\n<p>OptinMonster sends the following data to GA4 Properties:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Custom Event: <code>optinmonster_impression<\/code><\/li>\n\n\n\n<li>Custom Event: <code>optinmonster_conversion<\/code><\/li>\n\n\n\n<li>Custom Event: <code>optinmonster_interaction<\/code><\/li>\n<\/ul>\n\n\n\n<p>For each Custom Event, we pass the following data as custom event parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Campaign Name (<code>om_campaign_name<\/code>)<\/li>\n\n\n\n<li>Campaign ID (<code>om_campaign_id<\/code>)<\/li>\n\n\n\n<li>Campaign Interaction (<code>om_campaign_interaction<\/code>)<\/li>\n<\/ul>\n\n\n\n<p>It\u2019s possible that Google Analytics may also track other data with this that we don\u2019t control. However, the above details are all that OptinMonster sends to Google Analytics.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\">Why can&#8217;t I find the Property I wish to assign?<\/h5>\n\n\n\n<p>In most instances, this happens when you do not have the correct permissions for the Property.<\/p>\n\n\n\n<p>You must be one of the following for a Property to be available:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Google Analytics account owner<\/li>\n\n\n\n<li>OR be a user with Editor or Administrator access. <\/li>\n<\/ul>\n\n\n\n<p class=\"is-style-arrow-link\"><a href=\"https:\/\/support.google.com\/analytics\/answer\/9305587\" target=\"_blank\" rel=\"nofollow noopener\">Learn more about Google Analytics user role assignments<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">My Google Analytics data doesn&#8217;t match OptinMonster&#8217;s in-house analytics data.<\/h5>\n\n\n\n<p>This is normal and not an indication of any errors.<\/p>\n\n\n\n<p>Please be aware that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OptinMonster&#8217;s in-house analytics are exact metrics, we do not filter or sample any data so the numbers you see are the literal number of impressions and conversions for each campaign in your OptinMonster account.<\/li>\n\n\n\n<li>However, it is very common for Google Analytics to sample data and not provide you with the literal number of impressions and conversions. <\/li>\n<\/ul>\n\n\n\n<p class=\"is-style-arrow-link\"><a href=\"https:\/\/support.google.com\/analytics\/answer\/2637192?hl=en\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Learn more about data sampling from Google Analytics<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"site-visits\">My website visits don&#8217;t match campaign impressions.<\/h5>\n\n\n\n<p>There are several reasons a campaign&#8217;s impression data does not match your overall pageview count in Google Analytics, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Order of campaign loading<\/strong>: if you have multiple campaigns of the same type they will load on the page in the order they&#8217;re embedded in the DOM. If for some reason the visitor never proceeds through the first campaign that appears of that type they will not end up viewing any additional campaigns of that type until they do.<br>For example, assuming you have three lightbox campaigns embedded throughout your entire site:<br>&#8211; <strong>Scenario 1<\/strong>: The homepage is set to load all of the campaigns. Campaign 1 appears to the visitor but they exit the page before loading campaign 2 and campaign 3.<br>&#8211; <strong>Scenario 2<\/strong>: campaign 1&#8217;s page targeting excludes the campaign from loading on the homepage, as a result campaign 2 loads on the homepage first and there&#8217;s no impression counted for campaign 1 on this pageview.<\/li>\n\n\n\n<li><strong>Cookie Settings<\/strong>: OptinMonster allows you to set both <strong>Individual Cookies<\/strong>&nbsp;and <strong>Global Cookies<\/strong>&nbsp;to help control how often your campaigns appear to visitors.<br>&#8211; <strong>Individual Cookies<\/strong>:&nbsp;Once a visitor has successfully subscribed, or closed the campaign with the close icon, a cookie will be set for the number of days you&#8217;ve specified. Once that time has lapsed the campaign will appear to them again.<br>&#8211; <strong>Global Cookies<\/strong>:&nbsp;What this does is prevent any popup campaigns from appearing to a visitor only once they&#8217;ve successfully subscribed through one of your campaigns. This allows you to more finely tune the appearance of the campaign to your visitors. If you&#8217;ve set an individual cookie for any campaign and the visitor closes or submits the campaign they won&#8217;t continue to see that campaign even if they continue clicking through your site and generating pageview in Google Analytics. If you&#8217;ve set a global cookie for the domain and the visitor closes or submits an campaign they will not see any other campaigns on the site until the cookie duration has passed or they clear their browser&#8217;s cookies. See our <a title=\"How Campaign Cookies and the Global Cookie Work in OptinMonster\" href=\"https:\/\/optinmonster.com\/docs\/how-optin-cookies-and-the-global-cookie-work-in-optinmonster\/\" target=\"_blank\" rel=\"noopener noreferrer\">cookie documentation<\/a> for more details.<\/li>\n\n\n\n<li><strong>Desktop vs. Mobile<\/strong>: Is your campaign&nbsp;<a href=\"https:\/\/optinmonster.com\/docs\/how-to-show-campaigns-on-desktop-and-mobile-devices\/\" target=\"_blank\" rel=\"noopener noreferrer\">configured to load on only specific devices<\/a>? You&#8217;ll want to be sure you&#8217;re filtering your overall Google Analytics page-views by the device used and compare to mobile vs. non-mobile campaigns running on your site.<\/li>\n\n\n\n<li><strong>Configuration<\/strong>: Depending on the settings you&#8217;ve defined for each individual campaign it&#8217;s possible for Google Analytics to count a pageview (the webpage finishes loading) and for the visitor to navigate away from or exit your site before the campaign is shown to them. As a result, GA will reflect a pageview but your campaign will not count an impression since it did not appear to the visitor.<\/li>\n<\/ul>\n\n\n\n<p>As a result, it&#8217;s rarely possible to run a direct comparison between the impression count of an individual campaign and the overall (unfiltered) pageview count of your site in Google Analytics.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OptinMonster makes it easy to integrate your campaigns with Google Analytics for detailed reporting. View, filter and run detailed reports on campaign impressions and conversions using Google Analytics. In this article, you&#8217;ll learn how to connect Google Analytics with OptinMonster. Before you start, you\u2019ll need to have an active Google Analytics account. Create your Google&nbsp;&hellip;<\/p>\n","protected":false},"author":4657,"comment_status":"open","ping_status":"closed","template":"","documentation\/categories":[31818],"documentation\/tags":[31396,31452,31417,31399,31487,31425,31411,31401,31454,31455],"class_list":["post-87435","optinmonster_docs","type-optinmonster_docs","status-publish","hentry","categories-performance"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/types\/optinmonster_docs"}],"author":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/users\/4657"}],"replies":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/comments?post=87435"}],"version-history":[{"count":36,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87435\/revisions"}],"predecessor-version":[{"id":209296,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87435\/revisions\/209296"}],"wp:attachment":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/media?parent=87435"}],"wp:term":[{"taxonomy":"categories","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/categories?post=87435"},{"taxonomy":"internal_tags","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/tags?post=87435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}