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

Track og:image meta and display images of categories and blog posts #2892

Open
mattab opened this issue Jan 30, 2012 · 0 comments
Open

Track og:image meta and display images of categories and blog posts #2892

mattab opened this issue Jan 30, 2012 · 0 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@mattab
Copy link
Member

mattab commented Jan 30, 2012

The idea described in this ticket is to use the metadata found in the HTML page being tracked, extract the page's image, and then report this image in the API output, and use it in the Piwik reports to make them look better.

= Implementation Proposal =

  • Track for the Image set in the og:image meta tag, each blog post, blog category, ecommerce category page, ecommerce product page

    • Detect <link rel="image_src" href="http://example.jpg" />
    • also <meta content='http://www.your-blog-logo.jpg' property='og:image'/>
  • track the image url as a custom variable with scope 'page', in a given free spot with a name _pkimg or similar

  • When aggregating, enrich the Page Titles and Page URLs reports and add to the report, a column with the Image URL (most used image if possible) - this can be done by editing the SQL to also select the custom variable image URL when selecting the top pages titles and top pages urls.

  • API: Hide the page images URLs from the standard Custom Variables user interface, and from Metadata output (but leave the values in the raw API responses).

  • Display these images in the Actions > Page Titles report, and next to each URL.

    = Data visualization =

(warning: brain dump ahead)
We could also get more creative on the visualization of this data. For example:

  • we could build a Real time visualization of the pages being watched, with the shapes moving in real time and growing based on their traffic.
  • Maybe we could even have a Live! output replacing the rainbow icons with the article images? Or allow to display images in Visitor Log instead of listing pages?
@mattab mattab added this to the Future releases milestone Jul 8, 2014
@mattab mattab removed the P: normal label Aug 3, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

1 participant