What Is Direct Traffic in Google Analytics?
Direct traffic in Google Analytics 4 (GA4) refers to website visits where the traffic source is unknown or not properly tracked. It occurs when a user arrives at your site without clicking a link from another site.
For example, typing your URL directly into a browser, clicking a bookmark, or another source GA4 couldn't identify.
Google Analytics direct traffic is in contrast to other traffic sources. Like referral traffic. Where the user arrives by clicking a link from another website. Or organic search traffic. Where they find your site via search engine results.
![Traffic acquisition report on GA4 with 'Direct' and data related to its sessions, engagement and events highlighted.](https://static.semrush.com/blog/uploads/media/4e/ff/4eff16c53fba73351006ebc2ad9c50af/81a34f9e7fb87f4546b3b54f930a021f/mxIKNyTsK9muWFvbEAMcS2o_EGP4JO_QKkTMmJyG7JUthqqooACKYRaqoSLGMQsXY7JKloyceKX3PPOmP1ykQr7ztmpezGF6sSNf_hd4YIhEraAV9QQR8nhNPoqSwzYCL1X-Np_hlbYrBHGQ1aAyAww.png)
Why Does It Matter Where Direct Traffic Comes From?
While you may not always know the exact traffic source, Google Analytics direct traffic isn't a complete mystery.
- Identifying the referral sources behind direct traffic allows you to properly credit your marketing efforts. And understand where to invest resources.
- Understanding how users arrive on your site can help you optimize key entry points to provide a seamless experience. Like your homepage, navigation, and URL structure.
- Investigating direct traffic sources may reveal technical issues preventing proper referral attribution
Is Direct Traffic Good or Bad?
Direct traffic can be positive and problematic.
It shows visitors know your brand. And seek out your site directly.
But unusually high direct traffic can also indicate technical issues causing misattributed referral sources. Such as non-secure HTTP backlinks, improperly configured redirects, or cross-domain tracking problems.
All of which can inflate direct traffic numbers.
So, it’s not always bad. But a sudden spike or consistently high percentage of direct traffic is worth investigating further. To ensure your data tells the full story.
GA4 can help you determine whether the spike is due to actual direct visits. Or attribution issues.
Where to Find Google Analytics Direct Traffic
Google Analytics
Finding Google Analytics direct traffic data is pretty straightforward.
Start by navigating to the “Reports” snapshot on the left-hand menu in your account.
!['Reports' on the left-hand menu of Google Analytics clicked.](https://static.semrush.com/blog/uploads/media/a8/c5/a8c5c37007570a007f6996cf68d744af/ed3dda9cab0075ce9d9378f56fe5b986/WanPc1RRmV_IYKg1CqgWsg3rE6ja8dHavGhAelKz_nKiOx7cVK7XalnTWCwdoV1q2hiG1nGlptatN6t7JJqyLdvkzh-gVMjQvBHRRvowRWoFQxi0NHM3wjVVoMrsSnNRAktcM6OgAoSe3iTU8c3vWC8.png)
Under the “Acquisition” section, click on “Traffic acquisition.” This will take you to an overview of your site's traffic sources.
![Acquisition dropdown opened and 'Traffic acquisition' selected from it on the left-hand menu of Google Analytics.](https://static.semrush.com/blog/uploads/media/f3/95/f3951020f885241abefe749ff6d0ed49/fffabe3464b447c71b88a6972cc51ea7/dV0S4_7mEXunRhN9VKCFEz3re3jCIgrsJjDAL6k13YtK8p08LTTCo2x8HbRrZ8qiRIPUg_mrwx9-rGtwFL3nT1LL3BugffAkX-43wtDPms7NmJWkiI0yxLRn4TMegBv9Ub2JCQIsvFwQSY9wpIEMbO8.png)
The Traffic Acquisition report provides three different views of your data: a bar chart, a line graph, and a raw numbers table. Each offers a unique perspective on your direct traffic trends.
![Traffic acquisition report on GA4 showing the different sources of traffic along with sessions, engagement, and events data.](https://static.semrush.com/blog/uploads/media/c1/d2/c1d2369d6171d33b50271da02e850b4c/57a346f92fcf88e2c9b55da0d9d4e609/A3uhx4o6C6QjGJHOvdHj-tj4GVlyhW_b-sx7j3VodCnQmnpdgPdUgVtmQx5yugY-QY-rUbn8RJgc8iq8q-LOhgrsM62e6B9zN-JvI2Z_D4iTxXEOpnlI5PmwSEJQTV3ZUlHoKZwZCbtFVeY2QxgIo3s.png)
The bar chart visually compares your traffic sources. It allows you to spot which channels, including direct, are driving the most visits to your site.
Hover over the “direct” bar to see the exact number of sessions for the selected date range.
![Breakdown of the number of website users from different channels including direct, social, search, referral etc.](https://static.semrush.com/blog/uploads/media/47/f1/47f1e5a247d11fb306c219b8a3a22056/795490296a00a378644b8f37d7a674d2/OrzECwBhXdMA5iQexbdSqQWQkeMoXPFA2QBZvhLwYn2QghZy48mdiWINi3QC5ydZvS2vKPIcYUvzxtonq76SQdECa9WCM-greRbDV7sFqMmgfBqeqdJdRYN6TJN5iI5s5ArBGWLsU-whfDVI3Y-iT2w.png)
The line graph, on the other hand, shows how your direct traffic changes over time.
![Line graph showing changes in direct traffic between February 23rd and March 21st of 2024.](https://static.semrush.com/blog/uploads/media/55/1e/551e82a97e32661f9908539e2c9ae7f6/c0d7a0e9034d682c016e3a841a3cd574/cNwwzkiy_PuNnxPxSagAaui0fejnkcfZU8ZsLGOWqWCXj1Qn9CGQVNpJfCvQFL6DICTLhd2XALZ8fbOzWieLOXsInTEU-ghsxlTTsWz18F8nct3Dcdm8Ewiazv33WQ5jTngl-QaH6EnU5n_cpieMxxI.png)
Look for any significant peaks or valleys. These could indicate changes in user behavior. Or the impact of your marketing efforts.
Adjust the date range to zoom in on specific periods.
Finally, the raw numbers table provides the most detailed breakdown. Here, you can see the exact number of direct sessions. Along with other key metrics.
Like engagement rate, average engagement time, and conversions.
![Direct traffic and its metrics related to sessions, engagement and events highlighted on the Traffic Acquisition report.](https://static.semrush.com/blog/uploads/media/45/cb/45cb0cf64ab9303ef20c5e750fe7f501/2be527a2ccc3020618b563ed9c3204da/_gdp_qJqTbL14Co-Js0drRDV7mRMIWR6v29jFOYfDBs3OqtaFQdRwKTlAE92ribiv8O20m3WU8YtmqA6YPH37l9KDa2hnF05VEhJcFN29YpNU-xj5vhuGKVmrkFh1FkFXyHlOpBgUUxnpel9OPACi3U.png)
This granular data helps you assess the quality of your direct traffic. Not just the quantity.
For example, a high conversion rate from Google Analytics direct traffic suggests visitors are high-intent. Meaning they are familiar with your brand. And have a strong intent to engage. They may plan to make a purchase. Or complete a transaction from a previous visit.
By regularly checking this report, you can monitor trends in your direct traffic. And spot any unusual spikes. Or drops that warrant further investigation.
Semrush
While Google Analytics is the go-to tool for tracking your site's direct traffic, you can integrate your account with Semrush for deeper insights. And access your website data from one central dashboard in the Semrush platform.
For example, link our Organic Traffic Insights tool to your GA account to get organic search traffic data.
Direct traffic numbers in GA4 can make understanding user intent and origin challenging.
Organic Traffic Insights integrates data from GA4, Google Search Console (GSC), and Semrush. By combining this data, you can:
- Identify organic traffic masquerading as direct. Semrush's keyword ranking data helps you identify keywords people search for before directly accessing your site. This helps you find organic traffic that GA4 may have misclassified as direct.
- Analyze user behavior for direct traffic. GA4 provides user behavior data for direct traffic visitors. Compare this to your data on organic visitor behavior. If direct visitors behave similarly to users coming from organic searches (e.g., high engagement on relevant pages), it may suggest they actually found your site organically.
To integrate your GA4 account, open the “Organic Traffic Insights” report. Click the “Set Up” button.
![Organic traffic insights highlighted in the left menu bar with 'Set up' next to a specific domain clicked.](https://static.semrush.com/blog/uploads/media/b7/7c/b77ca11bfc084558ae92eb7b7c4c9269/b4910c481a9ed11f4ce7dcf02ff89e41/bsDm5KfgEsNWo8gUBUP3rEIxX7XUTLGLVRj24regf7G_O-7ksU0XPVsOdqib6hReI770nKPQvDCDdrVf2DLz6O5TvNYI8IZVFRzE8aFVf_21XgjngtJfizY9jHINyz_BTvfvduiQIBEozGoh_hONh5g.jpeg)
Then, click “Connect Google” account.
![Organic traffic insights settings prompting you to connect your Google account to discover your top performing pages.](https://static.semrush.com/blog/uploads/media/9b/41/9b41b03867900aff60fd224377ae884f/a921f2be51a1ac7009461d3b5ef5b2b9/geccmucivDCEv838U_Vud2s01N2xn632fRoavDR5LAHOoYIQXbAIeMHpjQReRj8ZrULKJu6huBcPg2LPRt0R-rhwt-GdcVeLCww0E8N5y4yFRNWhvVCzFOzLx03McDuP52GCdjfAZVyYy8571qaYmTc.jpeg)
To get started, log in to your Google account. Make sure it's the account associated with the Google Analytics and Search Console properties you want to link to Organic Traffic Insights.
![Option to choose from a list of of Google accounts to connect with Organic traffic insights with the first account selected.](https://static.semrush.com/blog/uploads/media/84/ea/84ea70591d8dafeed3fddfdabd381de4/53b4fc22de149ac52c2f96880b87768d/IalJBIN2CfPPbov3p7QVtATBKLC7SAIfZ3ZKRF76B3wZAjTpiU6SE3KuM0f0rYVoE11BHzQ4fRNF4cdeHhzLETr7BdHYQ3E_zVRLhAe6j6Q9L825_SFeXWpJfhB5_fB-uMxDGNsz6-qpDTRZr_UV4Js.jpeg)
You’ll see a window asking to allow access to your Google Account’s Analytics and Search Console data. Select “Allow.”
![Organic traffic insights data permission screen requesting access to view your GA and GSC data with the 'Allow' button clicked.](https://static.semrush.com/blog/uploads/media/ba/fa/bafa2599f3a635fedbe6447fb62abaad/453e9e2f0f87100aa383828f68ff2fd0/OXTj7loUnTNaNhwIMo4cqAFB-2AXRJcd8IWHCbMGD7YP4I_FJyoQUqTye8rHYqnTd2fldyEt-c2SvR15imUcgGuBq5aj4rSoCKmyr7fbOL9dyKrigipMLHr1JhcZs7ovLxV0ZTKRCzRB_usaeWcGLpk.jpeg)
Once you get access, select which properties you want to link.
![Settings page to choose Google Analytics and Google Search Console properties to connect with Organic traffic insights.](https://static.semrush.com/blog/uploads/media/6e/ce/6ece635656d85261ca6c41bcc8caf3fe/5fb918e9ce187c29ae5aeb3a9743d51f/UGuW2hPiXo-vjWJBdeY2hJ11FRe1OnGBQ0hJkXB8-by20MdCBLlZG8VTW64tZvVGq43cUjQC1o_WQRybPSb50ghRgzc63qNHErkjcktUSTI5orUMg5flH5pUe-KvpjA69DWDWyuiC_4OvfNnsVzmS2M.jpeg)
After you connect successfully, your Organic Traffic Insights campaign will include all your website's analytics and data.
![Organic traffic insights report showing an overview of overall traffic performance along with granular data for each landing page.](https://static.semrush.com/blog/uploads/media/b7/b7/b7b73f6e7134a864363895d427251ba7/4dd76762ecb211ccfe7eb86ed4419b63/jreK9kq-1jkFFgvcs0ynhTixSaRWgoefxugP4HQhU8E6cbC0gz-OBoD_4994XMF5-RyRVkFlQg7I0Yda_HjSGvb0v_S6y1mcyeJJUrbk_rDG9vdrFI54nMrUGmsRVmPR1YVdm_Q91G-HXrHuUqLINmA.jpeg)
Semrush's AI Narratives for GA4 takes website traffic analysis a step further.
It automatically imports your GA4 data. And generates intelligent insights to boost your marketing efforts.
Direct traffic in GA4 often lacks clear origin information. AI Narratives analyzes data points within GA4 to find hidden patterns. And potential sources within direct traffic.
For instance, it can flag unusual spikes or dips in direct traffic. This might indicate organic traffic was miscategorized due to missing UTM parameters (more on this later). Or it might show users coming from a new source funneling into "direct."
Narratives might suggest a potential organic influence within the direct traffic data. It might then suggest you find and update key URLs to include UTM links.
These insights allow you to zero in on issues affecting your direct traffic numbers. And adjust your site or campaigns as needed.
![AI Narratives for GA4 weekly report showing metrics for users, engagement rate, sessions, average session time etc.](https://static.semrush.com/blog/uploads/media/8c/f9/8cf958403499adc7d7e30a3ab7b8db67/86256584e8bd5d070b1607441f0a40e9/BNsBZgYTXyP36cWYAKyzB7sVrSrc66eowvmj0I3YHiiPP0V-fJ4C7D5BShrXTb_S9NMj6BJh9ui4FuM4dEtwCyADZvklxo3Yyp5sT-1fOl5vcbsF8U_RMZqhonU2EP-B-CNE4ShQAn2HSsgC448cS0k.jpeg)
Schedule daily, weekly, or monthly reports straight to your inbox.
What Causes Direct Traffic in Google Analytics?
Understanding what qualifies as direct traffic in Google Analytics is just the first step. To make sense of your data and optimize your marketing efforts, you need to dig deeper. By looking at the positive and negative causes behind direct visits.
Positive Causes of Direct Traffic
Not all direct traffic is bad. Certain types of direct visits can be a strong indicator of your brand's reach. And your users' engagement.
The following are positive reasons people may come directly to your site:
Manual URL Entry and Bookmarks
Sometimes users manually type your website’s URL into their browser. Or they click a previously saved bookmark.
Why is this a good thing?
It means you've built strong brand awareness and loyalty among your audience.
Say someone browses Apple’s website regularly to check out its latest products. They’ve bookmarked the tab on Chrome. And click it when they want a look at the most recent releases.
![Bookmarks bar on Chrome showing a search for 'apple' and 'apple.com' clicked.](https://static.semrush.com/blog/uploads/media/37/3f/373f496833cfed6a9dcb05f3c865c9c5/9b24b3cb85f058a9969a7ccb6d428bd0/hl603qu2oMnTjdrKUK6iJ_DEoSETdSOpwjxe8Ug0yN26sCFGZUBePphLSHT2eNQ1RjD5Wysq_o5fHD7_dze0zmWMIFrbjJH8wE3raLFfosUMbN0wBrCdsPPqOE3IWZHX21w9RsLQctz43HzKcyvKMEI.jpeg)
GA will attribute their search as direct traffic.
This type of Google Analytics direct traffic shows the user is already aware of Apple. And is interested enough to go straight to the source.
Manual entry and bookmarking indicate you've successfully built awareness with your audience. They think of your brand first when seeking out information or products in your niche. The lifetime value of those visitors can be huge.
Offline Marketing and Word of Mouth
Your offline marketing efforts also positively contribute to direct traffic by leading to manual URL entries.
Offline marketing may include:
- Print ads in magazines or newspapers
- Business cards or flyers handed out at events
- Promotional products with your URL or a QR code printed on them
- Word-of-mouth referrals from satisfied customers
This is also a positive form of direct traffic because offline exposure builds brand awareness. And credibility. When people hear about you through trusted channels they're more likely to remember your URL and visit directly.
Negative Causes of Direct Traffic
On the flip side, some direct traffic can be a sign of technical issues. Or tracking gaps that obscure your true traffic sources. This can skew your data. And make it harder to understand your users' journeys. And your marketing effort’s impact.
Common negative causes of direct traffic include:
Untagged Links in Email Campaigns
If your email links have tracking parameters issues, GA4 will often count those clicks as direct traffic instead.
Say you include a link to your latest blog post in your email newsletter. Like Sprout Social does here:
![Email newsletter from Sprout Social promoting their latest blog posts with a short summary and link to the full article.](https://static.semrush.com/blog/uploads/media/f9/30/f930f851bbd40f7694cc9c5e86a533cb/7d879af071f231a5a582b7ac890b9f98/ebZKe9xZOPg-Z4O27gJdqisvlIXFbHSmvaxflu4u33LTaXtm7wNVim1EfbBZGE8J5JqXJbgBgCyvHcJtl7Z_t4rm-hQjlD5GXykZaTzqKs7XVm4N7N5dMqf0fDpQWCvNRkYHcfNw5vF5kSK29_Op4dw.jpeg)
But suppose you forget to tag it with the proper UTM campaign tracking parameters. A UTM code is a snippet of text you add to the end of a link URL. It allows you to track the performance and metrics of that specific link.
This added text helps you track and measure the performance of your email, social networks, and other digital marketing campaigns.
Here’s what it looks like:
![Example of a URL with UTM parameters, showing it to be an organic Twitter post, for traffic attribution.](https://static.semrush.com/blog/uploads/media/6c/94/6c9457e9d28914a9982a1720fba9e45f/004153c1fdb7a88cc9aa69e03a95b03b/url-with-utm-parameters.jpg)
Without this added snippet of text, Google Analytics sees traffic from the link as a direct visit to your blog post URL.
The problem? You're not getting credit for the email marketing traffic you worked hard to earn.
To avoid this issue, always include relevant UTM tags on every link in your emails.
For example, a properly tagged link in an email campaign might look like this:
https://www.example.com/blog-post?utm_source=newsletter&utm_medium=email&utm_campaign=summer_sale
Consistently using UTM tags helps GA4 correctly categorize your email traffic. This gives you a much clearer picture of how well your email campaigns drive site engagement and conversions.
The key is to plan a consistent naming convention and tag every email link. With proper UTM tracking in place, you'll have accurate data to optimize and prove the value of your email marketing efforts.
Traffic from Non-Web Documents and Files
Links from non-web documents often show up as direct traffic in Google Analytics. Including PDFs, Word files, or even desktop apps,
For instance, we include a button with a link in our Social Media Trends report:
![Button with a link to Semrush Social on the Social Media Trends PDF report.](https://static.semrush.com/blog/uploads/media/8b/f5/8bf555429fdbdeda77826cbab8c18fba/f2940fea0085e1b4788454c5661d000a/iyI3T2rhcSnp_roGr1uLYaUFggwzYq_0CQ0bpLOeYNLJtjePqjNyqElFrW9DOnf8K_cHYaaSe6UWG1FTRGFDPEV5K6E-19aiUnvs-BGyP1nd_zND3ve6HaiWfmGSR4Iwurs0POhPNEIpDmFkFmkcjaw.jpeg)
Clicking the link takes the reader to a landing page on the Semrush site. But links from these sources sometimes don't pass on referral information.
Why?
Say you just released a research report with a link to your homepage. When someone clicks that link, GA4 sees it as direct traffic since there's no referring website data.
While this traffic is valuable (they're engaging with your content), it's not technically “direct.” Ideally, you'd know the true source.
Without tracking parameters, non-web document referrals muddy your data. And make it harder to understand user behavior and the impact of your content assets.
Reduce confusion by including UTM parameters on tagged links where possible. This will let Google glean some referral data. Even if the source isn’t trackable.
Referral Link Blocking and Privacy Settings
When a website blocks referral information or a user has strict privacy settings enabled, Google Analytics may incorrectly attribute the traffic as direct.
Why does this happen?
Some sites choose to hide referral paths for various reasons. Like maintaining privacy. Or preventing data leakage to third-party analytics tools.
Similarly, if a user has opted into “Do Not Track” or enabled other privacy-focused browser settings, the referral data may be stripped away.
The result? Sessions that GA should credit to a specific referral source end up in the direct traffic bucket.
For example, suppose a visitor clicks a link to your site from a forum with referral blocking enabled. Even though that user came from the forum, GA4 will log the session as direct traffic. Because the referral information is missing.
While you can't control other sites' referral blocking or individual user privacy settings, it's important to be aware of this potential skew in your data.
Understanding the factors that can inflate Google Analytics direct traffic allows you to analyze your acquisition reports more accurately. And avoid misinterpreting the numbers.
HTTP to HTTPS Migration
Migrating your site from HTTP (non-secure page) to HTTPS (secure page) is great for security, But if done incorrectly, it can wreak havoc on your referral data. And inflate direct traffic.
Here's the problem.
You may have backlinks pointing to your site using the old HTTP URL. But if you don't set up proper redirects, any traffic from those links will show up as direct in Google Analytics.
Why? Because the referral information gets lost in the switch from a secure HTTPS site to a non-secureHTTP site.
For example, let's say you get a backlink from an HTTPS site. A user clicks that link, but it points to the HTTP version of your page. When they land on your site, Google Analytics sees it as a new session without any referral information.
Use the Site Audit tool to find out if your HTTPS pages are linking to HTTP pages.
Set up an audit project first.
![Site audit search with 'example.com' entered and 'Start Audit' clicked.](https://static.semrush.com/blog/uploads/media/45/c5/45c522db5b28391c42e319b9a9c41962/c2184056849c60e169cd88d796355b6b/3IXi5WDA14EmSIGxBzm2A-W7KElcphrhMsi-dJ0dPOZ3YX6US8aj16U8f7WtaUD7EEUYKhzjanNkwuCr34MCayBi2snKXUTzqSyEO4AAuP8wLvbaNUP0buyNqrIG683FoDhSV79UAjlV8QQlXAaz6wU.jpeg)
This step involves several configurations. Accept the default settings or customize options. Including what subdomains you want Site Audit to crawl, the crawl source, and how many pages to include.
Click the “Start Site Audit” button once you're all set.
![Site audit settings page to select crawl scope, source and number of pages to check.](https://static.semrush.com/blog/uploads/media/96/f2/96f29502459c61c70f4be466f05961f6/01f52b249863f654802359d1c47bd889/kWPFK08hUy0Vncxm5Oeu3Z1uu27BBRZ5U3n0xjryPBV92zIc3V7VrAm0PyPVq_mvug-KLRL6HFwVVpni9KOuMIHZmr_LBR7smp5uMHqypS58z8YHBY_dQqzkrdMkuzk8LhoKMZR-yhmySp4g0wVd8Mo.jpeg)
You'll receive an email once the audit is complete. The audit dashboard looks like this:
![Site audit overview showing site health, errors, warnings and notices, and thematic report scores.](https://static.semrush.com/blog/uploads/media/7d/af/7daff0c8d8fc74961c45b3ea1f04a6f1/bc95aff85d96c8e6e7f6bd5b17e8afb5/gdcRIo83QQMkyAnvEz3KFBvt84ndspmb-z7GNEzRaBFfp99uYBU-T0VkCgTYohF8TVbGouZMkDiSnFDERcv69Q3HgnURZrc9Q34sF4h3kfLsoKvV3jJtTma3f6sy47n9HXylXgHtYCAjsOk1G8DBVDw.jpeg)
Head over to the “Issues” tab:
!['Issues' tab on Site audit highlighted with errors like broken links, duplicate content issues etc. also shown.](https://static.semrush.com/blog/uploads/media/a4/3f/a43fda91d3e8642042f9a030202095b0/d199e63e6de73b7061d5cf0fd3755ac7/wi9I8iRGmP0yfBAhBqa-jF0M7m5aQLS7GxpgJZD1Ez9u1mOpJvZOmVfH0L2rpREqCBzk_MjYajwgfAsnlZSZG6y50yI-50llQ-v-3kpgUJCeAkqgX4p8WvmDEYE2whmJh3SzsulFwz9JrMK34TWBS_M.jpeg)
Here, you’ll find a full list of all the issues. Including any migration issues you need to address.
HTTP redirect issues on Site Audit look like this:
!['No redirect or canonical to HTTPS homepage from HTTP version' highlighted on Site audit issues page.](https://static.semrush.com/blog/uploads/media/10/14/1014131f4c072c949f9113d279f8989c/46d2c86ed0111a918e7c456b595d42c2/GBIRbfoMXv1l7fGpvJHzA0cTbe1AcaRByJQ2q1y792Q4rnMCZKivlrgsMLCSJWq-4mpoBtJgJihyTfSzZR6NYRmrWzkeq3CvBIlU6RkpKjupm9jlDVTRT6agn6AhER6tzgNAEh814FszVAnVv_5SWE4.jpeg)
An easy way to correct this problem is to set up 301 redirects from all your old HTTP URLs to their HTTPS counterparts. This ensures a smooth transition. And preserves your referral data.
Mobile Apps and Desktop Software
Many apps and software programs, like messagingapps, email clients, and social mediaapps, don't pass on referral information when a user clicks a link.
This may be due to privacy settings. Or technical limitations. Google Analytics interprets the session as a direct visit. Since it doesn't have data on the originating source.
The same can happen with links in desktop apps. Like Outlook or Skype.
To mitigate this issue, consider implementing special tracking for links shared via apps. And software. Tools like Branch.io can help you correctly attribute mobile traffic. And gain deeper insights into user behavior across platforms.
Misconfigurations and Broken Tracking Code
Misconfigurations in your Google Analytics setup and broken or missing tracking codes can cause inflated direct traffic numbers.
This often occurs when you forget to implement the tracking code on all pages. If a user navigates from a tagged page to an untagged one, GA4 logs a new session without referral information. And counts it as direct.
For example, say your blog has the code, but your homepage doesn't. When a user clicks from a post to the homepage, Google Analytics classifies that second pageview as “direct.” Even though it came from within your site.
Incorrect or missing Measurement ID (formerly tracking ID) in the code can also lead to high direct traffic. Here’s what the Measurement ID looks like:
!['Measurement ID' under Stream details on Google Analytics.](https://static.semrush.com/blog/uploads/media/74/4b/744bde207ec3720d22b2398f7543de10/d7af31f422cfb8093dbe1f3f636a8003/yPpDb8MVxHhsGo5ggN2n7ZuHd853QwFnvK3c4Y4QmxoxVWXzjv7zmw2QMd5iLNx4udwB62fXP13tUnKww5R-v1ngQdafQGf76VbHXVL35oqfQknNDpLmy-eYlHlr8qDiNh4gj9UsOlMNWYPJjMnHHRA.png)
This unique identifier attributes data to your property. Like a website, blog, or mobile app. If it’s wrong or missing, Google Analytics doesn’t associate this traffic correctly.
To avoid this, ensure your code is consistent and accurate sitewide. Regularly audit to keep data clean.
How to Reduce Direct Traffic
If you're seeing an unusually high percentage of direct traffic in your Google Analytics reports, it's time to take action. It's impossible to eliminate direct traffic completely.
But you can reduce the number of misattributed or unnecessary direct visits. And improve data accuracy by taking the following six steps.
Implement Proper UTM Tagging
UTMs inform Google when traffic comes from specific campaigns.
To keep your UTM data clean and consistent, follow these best practices;
- Establish naming conventions. And document them in a shared spreadsheet.
- Use lowercase letters
- Keep codes descriptive but concise
- Consider using a URL shortener for more readable links
Add tags to attribute website visits to specific marketing campaigns. And clarify their contribution to traffic.
Ensure Correct Google Analytics Setup
Properly setting up Google Analytics minimizes unexplained direct visits.
Start by creating a GA4 property and data stream for your website. Here's how.
Create or log into your Google Analytics account at analytics.google.com. In the Admin section, click “Create” and choose “Account.”
!['Create' button clicked and 'Account' selected on Google Analytics.](https://static.semrush.com/blog/uploads/media/c3/19/c31936b54c87bb33b4cd0d0a3285f974/79070b1a92e62658f589fa5dc5165a91/0jjTFEx8b9D4OlKa9nd9GsZU_KKpQYMuebBbXmWA7mr1GLmBV9SPtPGccabHWgpvNmxFBp_P84KPRynhS5CoOgF8DB-Pm7bysxl7NYZEZWCGRaCePaeydKWzcDY3yQW9ojbCv8PS-09sy4NdyLmCzH8.png)
Provide an account name and choose your data-sharing settings. Then, click “Next.”
![Account creation page on Google Analytics where an account name needs to be entered and data sharing settings selected.](https://static.semrush.com/blog/uploads/media/a4/c0/a4c078b5c2969184cb243c15171a5ffa/15d5ef31f9b9c0bbe26e5e12239c13a6/Bolsw7DbsihQjdz40Mm1GeWYYITqEIWs3GMkLaW40miZ4kOBU8x8gLCwK23mKtwTXc9aKnm9hIhqrvrRc6pN925d7EcMI24_n1svKzJkp_hccvcGODW6g8q20Mq00tlqC3m9GOQ6jV-5lpKvUpP_YZY.png)
Next, create a property for your website. Give it a descriptive name and select your time zone and currency. Click “Next.”
![Property creation page on Google Analytics where you need to enter a name, select a reporting time zone and currency.](https://static.semrush.com/blog/uploads/media/76/6a/766accdcf959bc66a6549fb33cf9d603/6a26f792afb1fbfc12fb36c9a4ce74f1/Pvh9f4f67hO3iV42xpUGkwmbdFsGO2DBFAWSCJFh-HMLmYIHUozt2HUBOLWyOCdTbDEWMStwiQSo433F1-0adGGL1ss0msF50jJqwxGMr4-W2R7DmzUVXeoAN-CbAXU6Px5alxvcAEWUF8v7f6HOCek.png)
Provide basic information about your business. Like industry and size. Click “Next.”
![Business details page on GA4 where you need to select the industry category and business size.](https://static.semrush.com/blog/uploads/media/6d/42/6d42c65085a4c7f88128c02a2595d346/4c60e945c5e9caa2df961e0aeb0d1edb/W_GvT89EQ07hI9q3MEZmp8MyLik_JiFA0AyB1Me08tRuWlOiosmT0maDO-msh00oTEHG7gQQd46I6-2Ck9-HGUqEIgMS8Fx-GYR0zGo9FJvlRl1e1MDpNM4UezquQwBvKlJTX0cWE9ZILXWvHTexmzg.png)
This helps GA4 better understand your data.
Choose the main objectives for your site or app. Click “Create.” GA4 will use this to customize your default reports.
![Business objectives page where you need to choose from 5 options like generate leads, drive sales, raise awareness etc.](https://static.semrush.com/blog/uploads/media/b7/3c/b73cafc26bd4dc45171e7605a58e95dd/f657ca8f162022910d5cb1e57c1a1ac9/GfhV6k_3jVKjOKmC6ZtTWwALchDWcGLzvDgZ86h4GvTsObfAEGyawlECF8Z_yviZCKa6T3S-MLrFAKf3ftwj--VR08s6FV7Kl5R23wqeOEOaEqxxk7suwruLm6SENeDhvrqWeXBzMTHa9pQZEuLjEYM.png)
A “Terms of Service” agreement will pop up. Accept the terms to move to the final step.
![Google Analytics 'Terms of Service' agreement that outlines data collection policies and processing terms.](https://static.semrush.com/blog/uploads/media/d3/29/d3291de1a3ea38a89231fa15b4ac4750/742dfaea9d09362434fd6a67822591ff/WignvvSNYjdVgbqb1p4jzRdQTl8Lbv0V9SGnedBWihkPHR-7ClfbBg6JzV41GqhxlDlHaIz_StLnQKTll-Hg11OrR7PYot_HsFwuDkQsL2WzT4o5X4vXrNs5pInUBtWgeWiwWu7flsFewiaBgWlCICI.png)
Finally, create a data stream for your website by clicking “Web” and entering your site's URL and stream name. Then click “Create stream.”
![Creating a data stream for your website by entering a URL and selecting a stream name.](https://static.semrush.com/blog/uploads/media/1f/e7/1fe763e1ec82f697ec639a47acba9b01/1b286b77236ff4b6093cbebcaf6bf5d6/TjUjOhLCkAIgN_NtamKdNXf-OpXOn0HRVTZ1WUgv5HcwCQl1QVkMh_AFC8KaBmLbwicHss_wCpSAm2QO13XGIYjHVT46p_mf1_V9eWGveoeYrStmcWDYD7FEoUeZg6yPkJYhgr2QiW8nLBx8GIGToaw.png)
Once you create a data stream, you'll receive a unique measurement ID.
![Web stream details on GA4 showing name, URL, stream and measurement IDs along with settings related to events and tags.](https://static.semrush.com/blog/uploads/media/ce/1d/ce1dc2e32a69d7153dd3abb689c3ae6a/3d510013f1e212463149568a3065739e/zGcBMusWQsbAQiczImrympBoi3PbH5lXXWoQu2Wsx2hhwgl0C8CaJgmKdKhXF4K3SvaCuo4JQhYN2_yoHW80Z34gAvLnMv8soZwk-4fBbZokZU5vKDqM7sMSOPLOfOPblSbpSuw7v38jalQdZqeKWtg.png)
Add this identifier to your site's tracking code.
This ensures GA4 accurately tracks and attributes all user interactions on your website. Giving you a complete picture of your traffic sources and on-site behavior.
Monitor Referral Exclusion Lists
Referral exclusion lists are a feature in Google Analytics that allows you to specify which domains GA should count as referral traffic. This is important because not all referrals are truly external traffic sources.
Review these lists to ensure they only have domains you want included.
When you add a domain to your referral exclusion list, GA stops counting sessions from that domain as referral traffic. Instead, it counts the next pageview as the start of a new session.
And without referral data, GA often labels that new session as “direct.”
For example, say a user clicks from your email newsletter to your website. They then move from your website to your ecommerce platform to make a purchase.
If your ecommerce platform is on the referral exclusion list, GA will start a new session when the user arrives there. And will likely count it as direct.
So, what's the solution?
Be judicious about adding domains to this list. Only include domains you own and operate. Like subdomains of your main site. Or your ecommerce platform.
Don't add external sites, even if you partner with them frequently. Doing so will turn their legitimate referral traffic into misleading direct visits.
By using the referral exclusion list strategically, you can keep your data clean and accurate while minimizing unexplained direct traffic.
Maintain a Consistent URL Structure
Properly structured URLs are crucial for user experience and SEO. Clean, descriptive URLs help users understand what to expect on the page. And make it easier for search engines to crawl and categorize your content.
Inconsistent URLs can also cause issues with your direct traffic numbers in Google Analytics.
If your site is accessible via both www and non-www URLs (e.g., www.yoursite.com and yoursite.com), Google Analytics will treat them as separate websites. GA might count traffic moving between them as direct instead of correctly attributing it.
The solution? Create a clean website structure. And ensure your site redirects consistently to either the www or non-www version. This tells GA that it's all one site, preventing it from splitting the traffic.
Use the Site Audit tool to check for any www vs. non-www inconsistencies.
The tool will crawl your site and flag pages that are accessible at both versions of the URL. You can then set up the appropriate redirects and canonical tags to resolve the issue.
For instance, set up redirects through WordPress plugins. To start the process, first download the SEO plugin Yoast from the WordPress store.
Then, navigate to the "Plugin" page on your WordPress dashboard and click "Activate" on the Yoast plugin.
![Plugins page on WordPress dashboard showing a highlight around 'Yoast SEO' with the 'Activate' button clicked.](https://static.semrush.com/blog/uploads/media/7d/81/7d8145ea2230bd4d4d16bbd64d09ae27/06062cc39e7f66033d8b31dd6c5257c5/0qEZegIDKix2cILp2n_i1Xdr3pesSLpWwlXCHNOflZLPF7bhNUz7a3yQnxENmKdonbCXgKnhprOt-sadC098nIgB7d9Uz5M4a6cy6uS4wDdd0OLkuYnqspcikCQRR7_RYKT4PU7bLqsUgp3XGvj8c5A.jpeg)
Next, click on "Redirects" in the Yoast menu located on the left-hand toolbar of your dashboard.
![Yoast SEO menu on the left toolbar of the WordPress dashboard with 'Redirects' clicked.](https://static.semrush.com/blog/uploads/media/ec/91/ec91744e0e28c182e3d9df523bf2c2b6/f44521d82314cc14060ea9237486c1c4/AMy4dzrrM8gaskSYhgxL2_6cJKUNruY5LNnfTSinhB1Jv0NkzoaDPuVO8HXlw-0wLLamczKkpR8Z4e-NFNVYaJauCG-ZY8Kc0EP5QqGoyH-bg_ByU1NaSpGOcqpANNlXLKcLTB7Igco3OIYav10HMcQ.jpeg)
Choose the type of redirect you want to create.
![Dropdown with different redirect types to choose from including 301, 302, 307, 410 etc. on Yoast SEO.](https://static.semrush.com/blog/uploads/media/a0/e6/a0e624d8969a7ce520918bce0d955930/a6f44cd228e4040f29ff21500a932602/uMXtQQB9q6oysd2qvX3uzvuTRMR-zQwWvYrySHoxzYW5bg3WYVngfwbQW5relWfXVU1U4gbjXJlpOQlSJ3mFXprR7j5T0o7T6IGPO5qK5N0UFXjHyEPBVa3I8j9NjrdJPDZPBuEvRH4zo9t_zLNszh4.jpeg)
Enter the slug (the part of the URL that appears after ".com") of the old URL you want to redirect. Then, enter the new URL you want to redirect your visitors to.
![Redirects screen on Yoast SEO with old and new URLs entered and 'Add redirect' button clicked.](https://static.semrush.com/blog/uploads/media/90/70/9070f4a8b86f2aa8f6ecc672d2ee56b6/939377cdd6838b23cca7f40423edfbf2/OeghiHnhPQDAuTyIU-XSo51IA9MRTWxFXs0RZkJWWLx1okhsH8qTMpmrO9TIBMqizCtgrW_WbLOTDyNdV80XEGwwxsgoZxkF8MExBdPDotrjff_Z5rHLIzL3v_qsN6-Xk-gIpsKhvjnu7LmgQ3l8-7M.jpeg)
Click “Add Redirect” and your redirect will be live.
You’ll find a full list of live redirects below the “Add Redirect” button.
![List of live redirects on Yoast SEO showing the redirect type, old URL and new URL.](https://static.semrush.com/blog/uploads/media/c8/84/c884fef3c56ac1f78eddf95ec0ccc485/fce9919424ffa66133a7810398c29c73/bDVhPpurQdHYYGk8Z7gBa8_knUJMd_y_gqV_cfKOVuXkfr3qdbBKZEfjBySn3sMj8eG69XqMXo_i_j_SHWA0Scxzewp9FmUqf4AX9SXjpPTIcN_7WULqdFJ82ni6ss_mgXbt0ixY-Te1fyta55YNzcg.jpeg)
Avoid Using Vanity URLs or Redirects
A vanity URL is a custom, branded URL that is short, memorable, and typically redirects to a longer, more complex URL. For example, “yourbrand.com/offer” might redirect to a longer URL like “yourbrand.com/limited-time-special-offer-summer-2023.”
Vanity URLs can be great for print ads or social media bios. But they can cause issues with tracking in Google Analytics.
When a user clicks a vanity URL that redirects to your site, the original referral data might be lost.
Why? When you use a vanity URL, there's an extra step in the journey. Instead of going directly to your site, the user first goes to the vanity URL. Which then redirects them to your main URL.
The server hosting your vanity URL might not pass the original referrer information along to your main site. As a result, GA may count the visit as direct traffic instead of attributing it to the correct source.
Excessive redirects can also lead to lost referral data. And inflated direct traffic numbers.
For example, say a user clicks a link to your site from a referral source, but then encounters multiple redirects before landing on the final landing page. The link may drop the original referral information along the way.
To avoid these issues, minimize redirects in your site architecture and use the full, direct URL in your marketing campaigns whenever possible. This ensures the links pass referral data to GA correctly.
If you do use a vanity URL, include tracking parameters before the redirect. Then, even if the link loses the referral data, GA can still attribute the visit to the right campaign.
The same goes for necessary redirects—add UTM parameters to the initial URL to preserve tracking data.
Finally, be cautious with link shorteners like bit.ly. While they can make long URLs more manageable, they can also strip away tracking information. If you must use a shortener, choose one that allows you to add UTM parameters.
It's a technical issue but one with significant implications for the accuracy of your analytics data.
Use Canonical Tags for Duplicate Content
Canonical tags are snippets of HTML code that specify the “primary” version of a webpage when you have duplicate or similar content across multiple URLs. Place them in the <head> section of a page's HTML.
Here's what a canonical tag looks like:
<link rel="canonical" href="https://www.yoursite.com/primary-page/" />
Why are these tags so important?
Let's say you have two duplicate pages: /products and /all-products. A user visits /products and then clicks over to /all-products. GA may count that as a new direct session.
By setting a canonical tag on /all-products pointing to /products, you're telling GA that it's really the same page. So, instead of a new direct session, GA will attribute the pageview to the original traffic source.
Use canonical tags whenever you have duplicate or very similar content across multiple URLs.
Common examples include:
- Www vs. non-www versions of pages
- HTTP vs. HTTPS versions
- Pagination (e.g., /products?page=1, /products?page=2)
- URL parameters (e.g., /products?sort=price, /products?sort=name)
Use Site Audit to identify duplicate content issues.
Go to the “Issues” tab and search for “duplicate.” The tool will flag pages with identical content, titles, or descriptions.
![Site audit issues page with 'duplicate' entered in the search bar and duplicate content errors highlighted.](https://static.semrush.com/blog/uploads/media/6d/46/6d46e10716cf9a67dada48b9789e4913/d95159eccb192259c47dca6cc8c80da9/X6aLlt5g6eiRP_4fqu7qi1J6b_g3lrxV-6-jf5IEfmjA1F-8zx6etySPOI_HfgEf6Fvr2BwxK1TAnqYokwlBTsz3QVM76FVfjhcQ-ZavMuYEpwarWmHGm7vOOeKdbr5daW8_zy2H0HnSXQ-C8X338jI.jpeg)
To set a canonical tag, add a <link> element. Like the one illustrated above to the <head> element of the duplicate page. Make sure the included link points to the primary version you want to prioritize.
Here’s what that looks like:
<head>
<title>My Awesome Product (Mobile Version)</title>
<link rel="canonical" href="https://www.example.com/products/awesome-product" />
</head>
In this example, the duplicate page (a mobile-optimized version) has content similar to the canonical URL. Which points to the main product page. Adding the link element tells search engines to prioritize the main product page for indexing and ranking.
Master Direct Traffic for Marketing Success
Google Analytics direct traffic is a crucial piece of measuring the success of your marketing efforts.
By diving deep into the causes of direct traffic, you can correctly attribute the traffic to your site. And ensure your data is clear and useful.
Use Semrush to get deeper insights into your web traffic. And marketing strategy’s performance.