Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i print count of PageViews on single page? #5

Open
dimasites opened this issue Mar 4, 2023 · 1 comment
Open

Can i print count of PageViews on single page? #5

dimasites opened this issue Mar 4, 2023 · 1 comment

Comments

@dimasites
Copy link

Hi @sepiariver and tahks for cool extra!

Please suggest me best-practice:

  1. Can i print count of PageViews on single page?
  2. And also maybe i can include count of views in pdoResources snippet over &loadmodels etc. ?
@sepiariver
Copy link
Owner

  1. Yep just use mpResources

From the readme about different "operation modes" for that Snippet:

SINGLE: 'resource' set, no 'tpl'. Returns a single number, which is the number of page views for a given Resource
  1. You can call the logging snippet inside a TPL chunk passed to one of those listing snippets, but I wouldn't recommend it, as it could skew your data quite a lot and also it will be tough on your database server. But you "can" do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants