• Home
  • Get help
  • Ask a question
Last post 3 hours 37 min ago
Posts last week 82
Average response time last week 34 min
All time posts 68071
All time tickets 10515
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1543 – Tracking URLs

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 15 December 2015 17:09 UTC
tphilis
 Hi,

When point a link to the homepage that includes tracking parameters (e.g. http://www.xxxx.net/?ref=google) the page content is correct, however the page title and meta description change to the Joomla default content, rather than what I have entered in homepage meta in sh404sef. How do I remedy this problem?

Also, is it possible to add rel=canonical tag to the homepage? Google will index the homepage with various query strings which creates duplicate content.
Wednesday, 16 December 2015 21:44 UTC
wb_weeblr
Hi

Well, sh404SEF already automatically insert a canonical on the home page. The problem here is knowing this is the homepage!
You seem to consider that "?rel=something" is not part of page URL, but it is. So what you're talking about, from both Google and sh404SEF is NOT your homepage - because the home page is defined as http://yoursite.com/, not a different URL (with rel=xxx).

We do strip out common tracking variables:
	/**
	 * List of tracking vars that should be removed from url when calculating canonical url or similar
	 * Note: 'hitcount' is introduced internally by Joomla! 3 vote plugin!!
	 * @var array
	 */
	private $_trackingVars = array('utm_source', 'utm_medium', 'utm_term', 'utm_content', 'utm_id', 'utm_campaign', 'gclid', 'fb_xd_bust',
		'fb_xd_fragment', 'hitcount');

That list is not currently extensible, short of modifying the file /administrator/components/com_sh404sef/configuration/configuration.php, around line 24, by adding the 'rel' item to the list.
However, such hacking would require being redone after each update of sh404SEF.

Rgds
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.