Extension, Fieldtype, Module

Archived
Forum
(read-only)


For official support, visit the official support site »

Entry Analytics

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From mithra62

     

Getting “Top Pages” example to work

General

jphansen
jphansen

I’m trying to get the example on https://www.mithra62.com/docs/detail/entry-analytics-template-tags/entry-analytics-entries to work. It works fine (just changing the channel parameter) when I have a channel in this format:

Channel: x
URI Patterns: /x/{url_title}

However, what do I do if my pattern is:

Channel: x
URI Patterns: /x/y/{url_title}

?

Changing the channel parameter doesn’t work in that case.

Thanks,

Jimmy

jphansen
# 1
jphansen

Also, I’d like to get my “Top Pages” list to include entries from multiple channels. Is this possible? Using channel=“x|y” gave me

Error

channel_invalid

mithra62
# 2
Developer
mithra62

Hi Jimmy,

Have you setup the Channel Path under the settings to match the URI pattern for /x/y/{url_title}? EA pulls that path from there.

As to Top Pages, it only works with 1 channel at a time.

Let me know if you have any other questions.

Thanks,
Eric

jphansen
# 3
jphansen

Hi Eric,

Under the Settings page, I had for example my News channel defined as:

/news/story/{url_title}

All of my “detail” news pages follow that structure.That’s what didn’t work. As a test I just defined my News “URI Patterns” field as:

/news/{url_title}

And now everything’s working! You can see the results at http://www.fcs.uga.edu/analytics. So that’s solved.

Can I submit a feature request to be able to list top pages across multiple channels? I’d love to have a “Trending Pages” sort of list that pulls in content from all over my site.

Best Wishes,

Jimmy

jphansen
# 4
jphansen

Defining my URI Pattern as /news/{url_title} worked for my Top Pages page, but disassociated my entries in the EE CP from being linked to their analytics results. So I returned it to /news/story/{url_title}, which is correct, fixing the EE CP but again not allowing me to have my Top Pages listing, using this example code:

{exp:entry_analytics:entries channel=“news” past_days=“30” url=“none” sort=“visits” limit=“40” trailing_slash=“yes”}