Weird Page Views in Google Analytics - google-analytics

Google Analytics, I noticed that there is some weird URL path under my domain that doesn't even exist;for example:
my domain is ABC.com
under page view I see: ABC.com/products/L-apos.
I have the path of "products", but there is no such thing called "L-apos" which is very weird.
When I did some checking I found that what mot people face is totally different URLs like porno links for instance; However, in my case, the domain is correct but the path doesn't exist.

The html entity for a single quote is:
'
Which is pretty close to your L-apos. Is it possible you have an errant ' at the end of an href to the /products/ page?

Related

Custom 404 Basic Page in Drupal 7 Has Blank Title Tag

I have created a basic page in drupal 7 to use as my 404. I configured under Configuration -> System -> Site Information to use this page and when an unknown URL is entered, it does indeed display this page while maintaining the unknown URL. For SEO purposes, I really want Page Not Found in the html title tags but it is missing. If you go directly to the basic page, the title tags are correct. Is there a setting somewhere that I am missing?
I used the metatag module's configuration for the 404 page to achieve the desired title tags
When you create a any page, you will get node id of the respective page.
In your case, you need to copy page.tpl.php file and rename new file with your node id like for example : page--node--1.tpl.php
Now, put below code in your newly created template file and clear the cache.
if($title) {
print $title;
}

Jetpack plugin link not working

I am trying to add a clients linkedin account. The working path is:
https://www.linkedin.com/pub/'username'
the path jetpack is trying to send me to is.
https://www.linkedin.com/in/'username'
Any suggestions?
Thanks.
I ended up using jQuery to replace the href attribute on the broken linkedin tag. Works now.
just add .. in the url
ie https://www.linkedin.com/in/../pub/username
the .. will take the user up a diectory to get back to the root url, then append /pub/'username', thus the url entered as:
https://www.linkedin.com/in/../pub/username
will be translated into:
https://www.linkedin.com/pub/username

Hide/rename a word in URL

This is the url of my page http://cbiance.com/wordpress/. Is there a way to hide 'wordpress' in the url or change it to something?
Thanks
The "/wordpress/" is the dir of the page. You can either
Rename the dir and change all the referring documents fo correct it (This includes any other page that links to it and Configuration files like your apache.conf for example.
You could also move the page to the location of url that you would like and redirect from the current page, allowing old links to remain valid.
Use configuration of your apache.conf (or whatever your using) to chang your root dir to this location turning the current URL into "
http://cbiance.com/
The third is the preffered method.

Metalsmith static site generator: How to make the URL of the page: one/two/three?

How to make the URL of the page: one/two/three? This work must be done via a url variable in the template. I use metalsmith-permalinks plugin. I have it hooked up and the pattern is specified as :url.
Later in the template write the url: hello/world. But the web address of this page is converted into a hello-world.
How to make the page address, type hello/world ?
Option :url will replace all characters / on -. Probably the only way in this situation at the moment - create the directory hello/world, and add Metalsmith template file. I had a similar problem and solved it this way.

How do I set the Canonical URLs in Concrete 5 to appear tidier?

I'm just starting to use C5 as a CMS, and I'm having issues with sorting out the page addresses.
If I add a page to the site, it will be visible at:
www.example.com/index.php/page
However, I find the url extremely messy, and would ideally like it to be
www.example.com/page
I'm not familiar with C5, would anyone be able to give me any pointers to change this?
Okay, After reading documentation, this can be done by enabling "Pretty URLs"
This can be achieved by:
Dashboard -> System and Settings -> SEO and Statistics -> Pretty URLs
You then get a dialogue which has a tickbox, select it and click SAVE.
C5 should be able to rewrite the .htaccess file.
If it is unable to do so, it will give you an error, and you can copy and paste the text generated in the next screen, to add to the file manually.
I see that you enabled pretty URLs on the dashboard:
http://www.yoursite.com/index.php/dashboard/system/seo/urls/
Nice work, one last step—add the following to site.php in your root/config/:
define('URL_REWRITING_ALL', true);
That'll make every URL, such as a link to a dashboard page, pretty:
http://www.yoursite.com/dashboard/system/seo/urls/
Whilst this will add friendly URL's it will not add create canonical urls, if the same page appears with various urls they will create duplicated content links.
To add a canonical link you can add the following to your header.
//Set the base url for the home page
$canonical = BASE_URL.DIR_REL;
if ($c->getCollectionId() != 1){
//Get the current URL for the page
$canonical=$nh->getCollectionURL($c);
}
//Output a canonical meta tag
printf('<link rel="canonical" href="%s" />', $canonical);echo "\n";
you can go to dashboard > Bulk SEO Updater > and change the URL here

Resources