{"id":100191,"date":"2025-02-20T21:33:16","date_gmt":"2025-02-20T21:33:16","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/send-event-hits-before-pageview-hits-in-google-analytics\/"},"modified":"2025-02-20T21:33:16","modified_gmt":"2025-02-20T21:33:16","slug":"send-event-hits-before-pageview-hits-in-google-analytics","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=100191","title":{"rendered":"Send Event Hits Before Pageview Hits In Google Analytics"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>One of the myths surrounding <a href=\"https:\/\/analytics.google.com\/\">Google Analytics<\/a> is that the first hit of a <strong>session<\/strong> <a href=\"https:\/\/support.google.com\/analytics\/answer\/6277326#EVENTS_BEFORE_PAGEVIEWS\">should always be a <strong>pageview<\/strong><\/a>. It makes sense &#8211; sessions are initialized with a landing <strong>page<\/strong>, and thus need a <strong>page<\/strong> view to have one.<\/p>\n<div style=\"aspect-ratio: 2240 \/ 1210;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/send-event-before-pageview-google-analytics.jpg\" title=\"Event before pageview in google analytics\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1210\" width=\"2240\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/send-event-before-pageview-google-analytics.jpg#ZgotmplZ\" alt=\"Event before pageview in google analytics\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>However, in this article I want to show you empirically how this myth is just that &#8211; a myth.<\/p>\n<p>There is <strong>little discernible impact<\/strong> if the first hit of a session is an event, and GA is more than capable of stitching the first event together with the subsequent pageview into a <strong>session<\/strong> entity.<\/p>\n<p>The three repercussions I could find were:<\/p>\n<ol>\n<li>\n<p><strong>Entrances<\/strong> and <strong>Sessions<\/strong> not matching up with the <strong>Page<\/strong> dimension. See <a href=\"https:\/\/support.google.com\/analytics\/answer\/2956047\">here<\/a> for some details, too.<\/p>\n<\/li>\n<li>\n<p><strong>Behavior Flow<\/strong> report attributes the event page as the \u201cLanding Page\u201d and the page sent with the pageview as the \u201cStarting Page\u201d.<\/p>\n<\/li>\n<li>\n<p><strong>Goal Completion Location<\/strong> for an event goal set for the event in question shows <code>(entrance)<\/code> if the event was the first hit of the session.<\/p>\n<\/li>\n<\/ol>\n<div style=\"aspect-ratio: 2052 \/ 520;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/goal-completion-entrance.jpg\" title=\"Goal completion (entrance)\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"520\" width=\"2052\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/goal-completion-entrance.jpg#ZgotmplZ\" alt=\"Goal completion (entrance)\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>I\u2019ll explore these later on in the article.<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<h2 id=\"test-setup\">Test setup<\/h2>\n<p>Here\u2019s how I tested this. I created <strong>four<\/strong> test cases. Each pair of event-pageview hits was contained in its own session (using the <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/field-reference#sessionControl\"><code>sessionControl<\/code><\/a> parameter).<\/p>\n<p>All events were sent from page <code>\/<\/code>, where as the pageview hits always had a different page parameter. This was mainly to see the impact of the event\u2019s <code>page<\/code> parameter on the Goal Completion Location (there was none).<\/p>\n<p>I also created an <strong>Event goal<\/strong> which matched all the events sent with this test.<\/p>\n<p>Here are the test cases:<\/p>\n<ol>\n<li>\n<p><strong><a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/field-reference#nonInteraction\">Non-interactive<\/a> event<\/strong> as the 1st hit, <strong>pageview<\/strong> on <code>\/test-event-1<\/code> as the 2nd hit.<\/p>\n<\/li>\n<li>\n<p><strong>Interactive event<\/strong> as the 1st hit, <strong>pageview<\/strong> on <code>\/test-event-3<\/code> as the 2nd hit.<\/p>\n<\/li>\n<li>\n<p><strong>Pageview<\/strong> on <code>\/test-event-5<\/code> as the 1st hit, <strong>non-interactive event<\/strong> as the 2nd hit.<\/p>\n<\/li>\n<li>\n<p><strong>Pageview<\/strong> on <code>\/test-event-7<\/code> as the 1st hit, <strong>interactive event<\/strong> as the 2nd hit.<\/p>\n<\/li>\n<\/ol>\n<p>Here\u2019s what a sample command looked like. This is for the <strong>first<\/strong> test case:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">ga(<span style=\"color:#a50\">'create'<\/span>, <span style=\"color:#a50\">'UA-XXXXXX'<\/span>, {name: <span style=\"color:#a50\">'test'<\/span>});\nga(<span style=\"color:#a50\">'test.send'<\/span>, <span style=\"color:#a50\">'event'<\/span>, <span style=\"color:#a50\">'eventFirstHit'<\/span>, <span style=\"color:#a50\">'nonInteractive'<\/span>, <span style=\"color:#a50\">'noPath'<\/span>, {nonInteraction: <span style=\"color:#00a\">true<\/span>, sessionControl: <span style=\"color:#a50\">'start'<\/span>, campaignSource: <span style=\"color:#a50\">'test_event_1'<\/span>, campaignMedium: <span style=\"color:#a50\">'test_event_1'<\/span>});\nga(<span style=\"color:#a50\">'test.send'<\/span>, <span style=\"color:#a50\">'pageview'<\/span>, {page: <span style=\"color:#a50\">'\/test-event-1'<\/span>});\n<\/code><\/pre>\n<\/div>\n<p>The first line creates the tracker.<\/p>\n<p>The second line dispatches the event. You can ignore the <code>noPath<\/code> label and the <code>campaignSource\/Medium<\/code> parameters &#8211; they were just used to control the test analysis in GA.<\/p>\n<p>This is what the <strong>fourth<\/strong> test case code looked like:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">ga(<span style=\"color:#a50\">'create'<\/span>, <span style=\"color:#a50\">'UA-XXXXXX'<\/span>, {name: <span style=\"color:#a50\">'test'<\/span>});\nga(<span style=\"color:#a50\">'test.send'<\/span>, <span style=\"color:#a50\">'pageview'<\/span>, {sessionControl: <span style=\"color:#a50\">'start'<\/span>, page: <span style=\"color:#a50\">'\/test-event-7'<\/span>, campaignSource: <span style=\"color:#a50\">'test_event_7'<\/span>, campaignMedium: <span style=\"color:#a50\">'test_event_7'<\/span>});\nga(<span style=\"color:#a50\">'test.send'<\/span>, <span style=\"color:#a50\">'event'<\/span>, <span style=\"color:#a50\">'eventNotFirstHit'<\/span>, <span style=\"color:#a50\">'Interactive'<\/span>, <span style=\"color:#a50\">'noPath'<\/span>);\n<\/code><\/pre>\n<\/div>\n<h2 id=\"results\">Results<\/h2>\n<p>Here are the results of the test.<\/p>\n<p>The first thing to note is that <strong>not one of the test cases produced a session with Landing Page <code>(not set)<\/code><\/strong>. That\u2019s a red herring I\u2019ll discuss this briefly in the <a href=\"#landing-page-not-set\">next chapter<\/a>.<\/p>\n<h3 id=\"test-case-1\">Test case 1<\/h3>\n<table>\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1st hit<\/td>\n<td>Non-interactive event on <code>\/<\/code><\/td>\n<\/tr>\n<tr>\n<td>2nd hit<\/td>\n<td>Pageview on <code>\/test-event-1<\/code><\/td>\n<\/tr>\n<tr>\n<td>Landing Page<\/td>\n<td><code>\/test-event-1<\/code><\/td>\n<\/tr>\n<tr>\n<td>Goal Completion Location<\/td>\n<td><code>(entrance)<\/code><\/td>\n<\/tr>\n<tr>\n<td>Sessions metric<\/td>\n<td><code>\/test-event-1<\/code>: 0, <code>\/<\/code>: 1<\/td>\n<\/tr>\n<tr>\n<td>Entrances metric<\/td>\n<td><code>\/test-event-1<\/code>: 1, <code>\/<\/code>: 0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"aspect-ratio: 1036 \/ 370;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-1.jpg\" title=\"Test event 1\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"370\" width=\"1036\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-1.jpg#ZgotmplZ\" alt=\"Test event 1\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"test-case-2\">Test case 2<\/h3>\n<table>\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1st hit<\/td>\n<td>Interactive event on <code>\/<\/code><\/td>\n<\/tr>\n<tr>\n<td>2nd hit<\/td>\n<td>Pageview on <code>\/test-event-3<\/code><\/td>\n<\/tr>\n<tr>\n<td>Landing Page<\/td>\n<td><code>\/test-event-3<\/code><\/td>\n<\/tr>\n<tr>\n<td>Goal Completion Location<\/td>\n<td><code>(entrance)<\/code><\/td>\n<\/tr>\n<tr>\n<td>Sessions metric<\/td>\n<td><code>\/test-event-3<\/code>: 0, <code>\/<\/code>: 1<\/td>\n<\/tr>\n<tr>\n<td>Entrances metric<\/td>\n<td><code>\/test-event-3<\/code>: 1, <code>\/<\/code>: 0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"aspect-ratio: 984 \/ 406;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-3.jpg\" title=\"Test event 3\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"406\" width=\"984\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-3.jpg#ZgotmplZ\" alt=\"Test event 3\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"test-case-3\">Test case 3<\/h3>\n<table>\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1st hit<\/td>\n<td>Pageview on <code>\/test-event-5<\/code><\/td>\n<\/tr>\n<tr>\n<td>2nd hit<\/td>\n<td>Non-interactive event on <code>\/<\/code><\/td>\n<\/tr>\n<tr>\n<td>Landing Page<\/td>\n<td><code>\/test-event-5<\/code><\/td>\n<\/tr>\n<tr>\n<td>Goal Completion Location<\/td>\n<td><code>\/test-event-5<\/code><\/td>\n<\/tr>\n<tr>\n<td>Sessions metric<\/td>\n<td><code>\/test-event-5<\/code>: 1<\/td>\n<\/tr>\n<tr>\n<td>Entrances metric<\/td>\n<td><code>\/test-event-5<\/code>: 1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"aspect-ratio: 1080 \/ 396;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-5.jpg\" title=\"Test event 5\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"396\" width=\"1080\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-5.jpg#ZgotmplZ\" alt=\"Test event 5\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"test-case-4\">Test case 4<\/h3>\n<table>\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1st hit<\/td>\n<td>Pageview on <code>\/test-event-7<\/code><\/td>\n<\/tr>\n<tr>\n<td>2nd hit<\/td>\n<td>Interactive event on <code>\/<\/code><\/td>\n<\/tr>\n<tr>\n<td>Landing Page<\/td>\n<td><code>\/test-event-7<\/code><\/td>\n<\/tr>\n<tr>\n<td>Goal Completion Location<\/td>\n<td><code>\/test-event-7<\/code><\/td>\n<\/tr>\n<tr>\n<td>Sessions metric<\/td>\n<td><code>\/test-event-7<\/code>: 1<\/td>\n<\/tr>\n<tr>\n<td>Entrances metric<\/td>\n<td><code>\/test-event-7<\/code>: 1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"aspect-ratio: 1096 \/ 400;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-7.jpg\" title=\"Test event 7\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"400\" width=\"1096\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/test-event-7.jpg#ZgotmplZ\" alt=\"Test event 7\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"results-overview\">Results overview<\/h3>\n<p>As you can see, even if the event was sent as the <strong>first hit of a session<\/strong>, it didn\u2019t cause the cosmos to implode. Google Analytics is able to build the session nevertheless, treating the event as the <strong>first hit<\/strong> of the session, and adding subsequent hits (other events, pageview) to the session normally.<\/p>\n<p>The main impacts of sending an event as the first hit of a session are:<\/p>\n<ol>\n<li>\n<p>The <strong>Landing Page<\/strong> is associated with the <strong>first pageview<\/strong> of the session. The page sent with the event hit cannot be the Landing Page.<\/p>\n<\/li>\n<li>\n<p>When querying against the <strong>Page<\/strong> dimension, the <strong>Entrance<\/strong> is always incremented for the page sent with the <strong>pageview<\/strong>, but the <strong>Sessions<\/strong> metric is incremented for the first hit &#8211; non-interactive or interactive.<\/p>\n<\/li>\n<li>\n<p><strong>Goal Completion Location<\/strong> will always be the URI of the most recent <strong>page view<\/strong> sent before the event goal was completed. If the event is the first hit of the session, there is no preceding pageview, so the goal completion happens at <code>(entrance)<\/code>.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"landing-page-not-set\">Landing page (not set)<\/h2>\n<p>One red herring surrounding events and pageviews is that sending an event as the first hit of a session results in the <strong>Landing Page<\/strong> dimension showing <code>(not set)<\/code>. This is something that Google Tag Assistant <a href=\"https:\/\/support.google.com\/analytics\/answer\/6277326#EVENTS_BEFORE_PAGEVIEWS\">warns about<\/a>.<\/p>\n<div style=\"aspect-ratio: 1196 \/ 594;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/landing-page-not-set.jpg\" title=\"Landing Page (not set)\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"594\" width=\"1196\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/landing-page-not-set.jpg#ZgotmplZ\" alt=\"Landing Page (not set)\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Landing Page will be <code>(not set)<\/code> <strong>only if the session didn\u2019t have ANY page views<\/strong>. Since the Landing Page is always the URI of the first pageview sent in the session, a session with no pageviews will have no Landing Page.<\/p>\n<p>Sending an event as the first hit of a session <strong>does not automatically imply that the session will have no pageviews<\/strong>. Claiming otherwise is a <em>non sequitur<\/em>.<\/p>\n<p>Note that if you have <strong>any<\/strong> events firing on your page, you will always risk having sessions with <strong>only events<\/strong>. All it takes is for the user to take a break of 30 minutes after the pageview was dispatched, and then scroll down the page, firing a <strong>scroll event<\/strong> you\u2019ve configured.<\/p>\n<p>This will start its own session (since the previous one expired after the <a href=\"https:\/\/support.google.com\/analytics\/answer\/2795871?hl=en\">30 minute timeout<\/a> was reached). If this scroll event isn\u2019t followed by a pageview within the session timeout period, the event will be contained in its own session with landing page <code>(not set)<\/code>.<\/p>\n<p>But, if the event is followed by a pageview before the session timeout expires, the landing page will be the path of the pageview. Remember that.<\/p>\n<h2 id=\"session-with-only-non-interactive-events\">Session with only non-interactive events<\/h2>\n<p>Similarly, a session with <strong>only non-interactive events<\/strong> will have a Landing Page of <code>(not set)<\/code>.<\/p>\n<p>However, unlike sessions with just interactive events (or a mix of interactive and non-interactive), sessions with just non-interactive events will <strong>not<\/strong> increment the <strong>Sessions<\/strong> metric, as that requires an interactive hit. They <strong>do<\/strong> increment the <strong>Users<\/strong> metric, which is why you\u2019ll sometimes see more Users than Sessions.<\/p>\n<div style=\"aspect-ratio: 1416 \/ 634;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/03\/sessions-only-noninteractive.jpg\" title=\"Sessions with just non-interactive events\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"634\" width=\"1416\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/03\/sessions-only-noninteractive.jpg#ZgotmplZ\" alt=\"Sessions with just non-interactive events\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>But still, this is unrelated to having events fire before the pageview when a session starts.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>As my tests above show, it\u2019s <strong>OK to have an event precede the pageview hit<\/strong> when a session starts. You don\u2019t have to rush to <a href=\"https:\/\/www.simoahava.com\/analytics\/understanding-tag-sequencing-in-google-tag-manager\/\">tag sequencing<\/a> in <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a> to fix this \u201cproblem\u201d &#8211; the implications are not severe at all.<\/p>\n<p>So why is this still being warned about? Well, apart from misunderstanding how sessions work, there is a seed of truth in being cautious if you have events that can fire before the pageview on any given page. It\u2019s potentially hazardous if <strong>you set campaign parameters with the pageview hit that are missing from the event hit<\/strong>.<\/p>\n<p>Since the <strong>pageview<\/strong> is the nexus of Google Analytics\u2019 session, it follows that most care is put into making sure the pageview hit has all the necessary session, campaign, and cookie modifications. This lopsided focus can be problematic in Google Tag Manager, where each hit has its own unique <a href=\"https:\/\/www.simoahava.com\/analytics\/100-google-tag-manager-learnings\/#39-gtm-creates-a-new-tracker-with-every-tag-instance\">tracker object<\/a>, and thus the hits don\u2019t <strong>inherit<\/strong> anything from a common tracker, as with <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/\">analytics.js<\/a> and <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/gtagjs\/\">gtag.js<\/a>.<\/p>\n<p>In other words, you might modify your pageview hit to include campaign-defining fields such as <code>campaignSource<\/code> and <code>campaignMedium<\/code>, or you might modify its Document Location field to have <strong>UTM parameters<\/strong> manually appended to the URL string. Or, you might even rewrite the <code>clientId<\/code> field in the pageview hit alone.<\/p>\n<p>The key thing here is <strong>consistency<\/strong>. Any modifications to campaign- or session-parameters in individual hits or tags should be applied to all hits or tags that can fire on the same page.<\/p>\n<p>Since an event hit is <strong>capable of creating and populating a session on its own<\/strong>, it\u2019s vital to have that event hit mirror the campaign settings of the pageview hit, and vice versa.<\/p>\n<p>If you do that, you\u2019ll avoid having rogue sessions starting simply because an event hit had totally different campaign settings from the pageview hit. In Google Tag Manager, the best way to mitigate this is to use the <a href=\"https:\/\/www.simoahava.com\/analytics\/google-analytics-settings-variable-in-gtm\/\">Google Analytics Settings variable<\/a>.<\/p>\n<p>Do you think I missed something crucial in this test? Please let me know in the comments.<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>One of the myths surrounding Google Analytics is that the first hit of a session should always be a pageview. It makes sense &#8211; sessions are initialized with a landing page, and thus need a page view to have one. However, in this article I want to show you empirically how this myth is just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":100192,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[12765,9252,1531,15047,46666,11285],"dealstore":[],"offerexpiration":[],"class_list":["post-100191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-analytics","tag-event","tag-google","tag-hits","tag-pageview","tag-send"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Send Event Hits Before Pageview Hits In Google Analytics - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=100191\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send Event Hits Before Pageview Hits In Google Analytics - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"One of the myths surrounding Google Analytics is that the first hit of a session should always be a pageview. It makes sense &#8211; sessions are initialized with a landing page, and thus need a page view to have one. However, in this article I want to show you empirically how this myth is just [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=100191\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-20T21:33:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2240\" \/>\n\t<meta property=\"og:image:height\" content=\"1210\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=100191#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=100191\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Send Event Hits Before Pageview Hits In Google Analytics\",\"datePublished\":\"2025-02-20T21:33:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=100191\"},\"wordCount\":1349,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=100191#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg\",\"keywords\":[\"Analytics\",\"event\",\"Google\",\"Hits\",\"Pageview\",\"send\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=100191#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=100191\",\"url\":\"https:\/\/fivemor.com\/?p=100191\",\"name\":\"Send Event Hits Before Pageview Hits In Google Analytics - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=100191#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=100191#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg\",\"datePublished\":\"2025-02-20T21:33:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=100191#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=100191\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=100191#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg\",\"width\":2240,\"height\":1210},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=100191#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send Event Hits Before Pageview Hits In Google Analytics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Send Event Hits Before Pageview Hits In Google Analytics - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=100191","og_locale":"en_US","og_type":"article","og_title":"Send Event Hits Before Pageview Hits In Google Analytics - Som2ny Network","og_description":"One of the myths surrounding Google Analytics is that the first hit of a session should always be a pageview. It makes sense &#8211; sessions are initialized with a landing page, and thus need a page view to have one. However, in this article I want to show you empirically how this myth is just [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=100191","og_site_name":"Som2ny Network","article_published_time":"2025-02-20T21:33:16+00:00","og_image":[{"width":2240,"height":1210,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=100191#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=100191"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Send Event Hits Before Pageview Hits In Google Analytics","datePublished":"2025-02-20T21:33:16+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=100191"},"wordCount":1349,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=100191#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg","keywords":["Analytics","event","Google","Hits","Pageview","send"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=100191#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=100191","url":"https:\/\/fivemor.com\/?p=100191","name":"Send Event Hits Before Pageview Hits In Google Analytics - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=100191#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=100191#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg","datePublished":"2025-02-20T21:33:16+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=100191#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=100191"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=100191#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/send-event-before-pageview-google-analytics.jpg","width":2240,"height":1210},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=100191#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Send Event Hits Before Pageview Hits In Google Analytics"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/100191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100191"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/100191\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/100192"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100191"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=100191"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=100191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}