wordpress – Set up a Google Analytics filter for blog posts when URLs are mixed with other content

I have a WordPress site with a blog section, but also a lot of other content, which is not directly related to the blog. Now, I want to use Google Analytics and see only the traffic on blogs, that is, the users who click on blog posts.

I know that there are ways to filter this, if the blog posts are in a subfolder, like example.com/blog/my-blog-postbut on my site, the link structure does not have it. It's like this: example.com/my-blog-post

What would be a good way to filter this traffic in Google Analytics? This should also work for all future published articles. The Google Tag Tag Manager is connected. Maybe this could be a viable option?

seo – Why do my analyzes report that index.php appears in URLs despite the user-friendly URL rewrite rules?

On a website, I use mod_rewrite and PHP to create clean URLs.

my .htaccess (summary) will look like the one below:

RewriteEngine On

#oude pagina's
RewriteRule     ^nl/links/(.*)/index.php$    /nl/links/$1/ (L,R=301)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((a-zA-Z){2}/(a-zA-Z0-9/-_)+)/$ /index.php?navid=$1&%{QUERY_STRING} (L)

When using a browser, the above seems to work well.

/nl/links/eropuit/vakantie/rondreizen/ shows the right content, and /nl/links/eropuit/vakantie/rondreizen/index.php redirects to /nl/links/eropuit/vakantie/rondreizen/

But when I look at the most visited pages of Google Adsense (Analytics), one index.php is for each URL:

enter the description of the image here

Now I wonder why index.php is found / detected and if I should worry about it.

How to include redirect URLs in the XML sitemap file

enter the description of the image hereI'm trying to generate an XML sitemap for an ecommerce website from xml-sitemaps.com
All URLs are being parsed, but footer URLs containing redirects are not added to the sitemap.xml file. How can I include these URLs in the site map?

enter the description of the image here

How can Google Search display URLs under titles?

I have the same problem as this one and Jules Wang. I use Win 10.

When I signed in to my Google Account, my search results recently began to look like picture 1 below, with the URL above the page title. However, when I'm not logged in, the URL is displayed under the title (old layout), as shown in the second photo below. How can I restore the old layout?

enter the description of the image here

Site country on verified URLs

Hello!
I think it will be handy to have the country column in the list of verified URLs. If the GSA can identify the country (depending on the domain tld and others), it will be helpful for guys who are not working with xxx, xxx, xxx URLs to avoid some tlds / hosts. I know this can be done when publishing, but I think this can be helpful if you want to target certain sites / languages ​​again.
Not sure whether it's easy or not, but the data is already collected at the time of publication (in the last check).
What do you think?

https – How can I block some URLs on my website

Thank you for contributing an answer to Stack Overflow!

  • Please make sure to respond to the question. Provide details and share your research!

But to avoid

  • Ask for help, clarification, or answer other answers.
  • Make statements based on the opinion; save them with references or personal experience.

To learn more, read our tips for writing good answers.

Web site crawlers – Will extending our URLs change the way Googlebot crawls our site?

The length of the URL does not have much of an impact on how Googlebot explores.

Changing your URLs will have the greatest effect. Googlebot will come back and scan your old URLs forever. You will need to implement redirects to new URLs and manage these redirects indefinitely. If you change all your URLs, this can dramatically increase the number of URLs that Googlebot must parse. This does not usually mean that Googlebot explores fewer URLs of your pages. Redirection requests are so small and fast that they usually do not reduce your analysis budget.

urls – incorrect page displayed

I am creating a website for someone to replace their old site. I've put the URL of the old site in the site address in my general settings and I can not get it back to the site I was building.

The page for which I need help: http://35.230.137.15/

magento2 – Automatically change meta descriptions and urls

The URL of the page changes automatically, every week, can I know if a method can stop that?

In addition, the site has two language directories, the meta-description and title are automatically changed, they change automatically and display only the title and description in English. Could I know a solution?

Thank you

How should I structure my URLs for SEO and Localization?

There are many acceptable ways to structure your site for SEO and internationalization. Each has advantages and disadvantages.

Top Level Domains

Purchase the same domain name in several top-level country domains, such as example.com, example.es and example.de.

Advantages

  • Fully supported by Google. You can add sites to Google Webmaster Tools where options let you tell Google how they are targeted.
  • Often preferred by users who tend to like the content published on the TLD for their country
  • The domain name itself can be located. Many international users can react poorly to English words or to an English-sounding domain name. This can be especially important for languages ​​that do not use the Latin alphabet.
  • Supports country location. You can have separate sites like example.co.uk and example.com.au targeting audiences from different countries. The content of the sites can be duplicated with slight differences in spelling while maintaining a good ranking. In fact, several sites well located in the same language can rank better than a single site in that language.
  • Hosting can be located by pointing DNS to a targeted country's web server.

disadvantages

  • Expensive and taking a lot of time to buy multiple domains. Especially if you have to deal with squatters.
  • Cookies can not be shared across multiple locales, which means that users must log in separately to each site.
  • No good option to locate only by language, because several languages ​​have multiple countries and no country can be the language code. Even in cases where the TLD matches the language code as es, search engines may assume that the site is reserved for Spanish users and not for all Spanish speakers.

Subdomains

Buy a single domain and use subdomains such as en.example.com, and es.example.com

Advantages

  • Fully supported by Google.
  • Support for localization by country or by language.
  • The hosting can be located by pointing DNS to a web server located near the users.
  • Easy and inexpensive to implement compared to buying multiple domains.
  • Cookies can be shared across all locales, allowing single sign-on for a more seamless user experience.

disadvantages

  • No ability to locate the domain name itself
  • May seem less local for users compared to a top-level domain.

Subdirectories

Buy a single domain and use subdirectories such as example.com/en/, and example.com/es/

Advantages and disadvantages

  • Same as subdomains, except that there is a DNS entry that prevents hosting your site in multiple countries for different locales.

Techniques that are DO NOT advisable

  • File names: Use different file names such as index_en.html and index_de.html. This technique is not fully supported by Google. For example, there is no way to set targeting in webmaster tools.
  • URL parameters: Using URL parameters such as lang=en. It is not recommended for the same reason that different file names are not recommended.
  • Accept the language header: Automatically change language according to the Accept-Language on your mind.
    • Many users do not have this header set correctly. This is especially true for users traveling abroad who may be using a friend 's computer or Internet cafe. This is also often the case for international users who install a web browser in English and have enough English to move but prefer content in a different language.
    • Google has just announced that Googlebot will send the Accept-Language header and crawl from different geographic locations. However, Google still recommends that you have separate URLs for content in different languages.
    • You can use the Accept-Language header to suggest users to prefer a different version of the site by displaying a message when the visited site does not match the Accept-Language on your mind.
  • Geographic geographical addresses: Automatic switching of the language according to the geographical location of the IP address.

Markup on the page

When you support multiple languages, you must clearly identify the language metadata.

Use the lang attribute in the html label:


Use other links to the same page in other languages, as suggested by Google:



 

Alternatively, this information can be placed in sitemap files.

Tell your site about Google

You must add each language (or locale) for your site to Google Webmaster Tools. This can be done for top-level domains, for subdomains, or for subdirectories.

If your site is targeted by country, you must use the Webmaster tools to define the targeting by site. Go to "Settings" -> "Settings" -> "Geographical Target" and choose to target the right country from the drop-down list.