Thursday, 12 July 2018
  9 Replies
  1.1K Visits
0
Votes
Undo
Hi everyone,

I noticed that in Google Analytics for this site, the event detail pages seem to show up in various URL formats. As such, my client is having a difficult time locating analytics data for specific events in certain instances. Below are a few formats I've seen some of the events listed in Google Analytics:

/events/[event_id]/[event_title]
/components/jevents/[event_id]/[event_title]?Itemid=[item_id]
/components/jevents/eventsbyweek/[year]/[month]/[day]?Itemid=[item_id]
/components/jevents/monthcalendar/[year]/[month]/[day]?Itemid=[item_id]

Since some of these URL formats seem to be based on whether someone got to the event detail page from the month view, week view, etc., I opened up several events after navigating to them from each of the different views on the site's main events page. Regardless of how I got there, though, the URL for the event details pages always displayed in the format "/events/[event_id]/[event_title]" in my browser.

Is there a way to get all event detail pages to show up in the same format in Google Analytics?

Thanks,
Ben
Support Info
Production - High
Wednesday, 25 July 2018 11:08
·
#204444
Accepted Answer
0
Votes
Undo
Hello,

1. This is expected. We would need to use guess work to try and find the right url. this isn't viable. the website should be setup correctly and therefore the URL's you are saying with /component/ in will never be generated.

Fundamentally the issue is the URLS have been generated by an incorrectly setup site, if the site has the target menu item set to the correct JEvents menu item then no guesswork is needed and the user ends up exactly where that user should end up.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 12 July 2018 20:22
·
#204082
0
Votes
Undo
Hi Ben,

This is because you haven't set target menu items for the modules you have installed. i.e. Jevents latest events module, so we have to take a direct route. Make sure to set the same menu item on the target menu item :-)

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Friday, 13 July 2018 20:39
·
#204124
0
Votes
Undo
Hi Tony,

Thank you for the tip. I have ensured that the following have been set:

JEvents Config:

Event Detail View > Menu Item for ALL event detail links
Ical Import/Export > Target Menu Item

Modules:

JEvents - Categories and event count > Target Menu Item
JEvents - Filter Module > Target Menu Item
JEvents - Latest Events Module > Target Menu Item

However, event detail pages don't seem to redirect to the SEF URL. For example...

https://www.gurneeparkdistrict.com/component/jevents/eventdetail/10569/o-plaine-park-pickleball-court-ribbon-cutting?Itemid=133

... should redirect to...

https://www.gurneeparkdistrict.com/events/10569/o-plaine-park-pickleball-court-ribbon-cutting

... but it doesn't. I tested this in a couple browsers after clearing my cache in both browsers. JEvents caching is disabled.

Another issue I'm noticing now is that I have a couple modules that display on the main month/week pages: a paragraph of text above the JEvents content with the heading "Events" next to a green rectangle, and some more text below the JEvents content with the heading "Drop in schedules" next to a green rectangle. These modules still appear on event detail pages, which they shouldn't. To counter this, I created a menu item of the type "JEvents - Core > Event Detail" and configured event detail pages to route through this menu item. This solved the problem and caused the modules not to display, but it created two new problems:

1. The browser page title displays as the menu item title for all events rather than the event title.
2. If I click on the link that represents this menu item in the site's breadcrumb navigation, I'm taken to the specific event that I configured in the event detail menu item since the menu item forces you to select a specific event.

For the time being, I've disabled the event detail menu item and unset some of the target menu item config options in an attempt to prevent the text/custom modules from displaying on event detail pages.

So... how can I:

1. Ensure that non-SEF URLs for event detail pages properly redirect to their SEF versions?
2. Get the two modules not to display on event detail pages without sacrificing the browser page title and breadcrumb navigation?

Thanks,
Ben
Monday, 16 July 2018 09:30
·
#204167
0
Votes
Undo
We don't auto redirect to the link i.e. from:
https://www.gurneeparkdistrict.com/component/jevents/eventdetail/10569/o-plaine-park-pickleball-court-ribbon-cutting?Itemid=133

Where is :
https://www.gurneeparkdistrict.com/component/jevents/eventdetail/10569/o-plaine-park-pickleball-court-ribbon-cutting?Itemid=133

Generated? IT shouldn't be generated, it would be generated like that if a Target Menu Item has not been set.


2. If you use the Advanced Module Manager plugin you can then set the URLS for the module to appear on :-).

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 18 July 2018 17:53
·
#204332
0
Votes
Undo
Hi Tony,

Thank you for the tip about Advanced Module Manager. I gave this plugin a try, but unfortunately it caused major conflicts with the JSN PageBuilder plugin I'm already using on the site. Therefore, I have custom programmed the site's template to look at the URL and hide the modules if an event detail page is being loaded (I'm determining this using a regex that checks the URL for the format "/events/[event-id]/" or "/events/eventdetail/[event-id]/" ). So the module visibility issue is resolved.

As far as the URLs and how they are written, you're telling me that JEvents will not redirect a raw URL such as https://www.gurneeparkdistrict.com/component/jevents/eventdetail/10569/o-plaine-park-pickleball-court-ribbon-cutting?Itemid=133 even if I have the SEF URL setting enabled? Because any links that are generated in the JEvents modules and pages on the site are correctly displaying the SEF versions of the URLs (I have set target menu items all to point to the main calendar page except for the setting "JEvents Config > Event Detail View > Menu Item for ALL event detail links" due to the issues this creates with browser page title and breadcrumb navigation that I mentioned previously). It seems that JEvents just doesn't bother to check if there is a SEF version of a URL available when a raw URL such as the one above is used. Is this correct?
Monday, 23 July 2018 09:51
·
#204395
0
Votes
Undo
Hello,

1. Correct, we have no idea of where or what menu item we should be using. You can try the JEvents Missing Events plugin but this likely won't redirect direct links.

The only way the above link is generated in a JEvents Module is if the module has not had the Target Menu Item set within the module.

We could probably check if an event detail link exists but if you have say 4 Jevents top level menu items saying Category, List, Year, Month. WE have zero clue of which one we should choose. This is why the target menu item needs setting in all modules and plugins within JEvents. This then means the right URL is used an provides a good SEO Structure rather than guess work.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Monday, 23 July 2018 15:26
·
#204414
0
Votes
Undo
Hi Tony,

I'm sorry if I wasn't clear in my communication. I have set the Target Menu Item to the same menu item for all modules and plugins that have such a setting, and yes, the links on the website correctly use the SEF URLs. The issue is that if you paste one of the non-SEF URLs in your browser, the event detail page loads without redirecting to the SEF version.

I'm not sure if my client mistakenly inserted some links of their own on certain pages using the non-SEF versions, but either way it seems that a redirect should occur. The only JEvents menu items I have on the site are one menu item each of the following types:

Locations » JEvents Locations
JEvents - Core » Manage JEvents » Manage JEvents
JEvents - Core » List by week » List by week

The third is the one I have set as the Target Menu Item in all modules and plugins (I haven't specified the first two in any modules or plugins), so wouldn't it make sense in such a scenario to have a redirect occur based on the alias of the third menu item? After all, this is the one that all modules and plugins are using. I understand what you're saying in terms of a site could have a List by week and a List by month menu item that could be used as the base of the SEF URL, but on a site that only has one such menu item (such as this), shouldn't JEvents determine that it is the only logical menu item to use? Or should there perhaps be a JEvents config option for defining which menu item acts as the base for SEF event detail URLs in order to take the guesswork out of JEvents? I just think that one way or another JEvents should be performing such redirects.

Thanks,
Ben
Wednesday, 25 July 2018 11:08
·
#204444
Accepted Answer
0
Votes
Undo
Hello,

1. This is expected. We would need to use guess work to try and find the right url. this isn't viable. the website should be setup correctly and therefore the URL's you are saying with /component/ in will never be generated.

Fundamentally the issue is the URLS have been generated by an incorrectly setup site, if the site has the target menu item set to the correct JEvents menu item then no guesswork is needed and the user ends up exactly where that user should end up.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 25 July 2018 14:10
·
#204453
0
Votes
Undo
Well, all target menu items are set now, so I guess I will just report back if my client continues to see non-SEF URLs in Google Analytics. Thanks Tony.
Friday, 27 July 2018 07:59
·
#204499
0
Votes
Undo
Hello,

You can also crawl the website to see where/if the URLs with component exist.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.