I suggest…

statistics: Implement tracking within Coyo on every page

Until migration to Coyo 4 we used piwik and that was ok. With the new single page application and the new URL setup it gets more and more complicated to get speaking numbers out of it.
I would like to suggest to implement a basic tracking to Coyo:
As a page or community owner I can see how many people have visited my page, which content is the most appealing. One could even think of implementing the counter directly on the article, wiki, etc. so everyone can see it.
Statistics are a really important KPI to steer a social intranet. How will I now if my content is appealing in a pull-communication-surrounding, if I cannot track the clicks.

16 votes
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Sarah shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
Declined  ·  AdminSven Hoffmann (Product Manager, COYO) responded  · 

We probably won’t build an analytics tools within COYO. We should rather focus on integrating existing (and great) tools which are already out there. But I have to admit that we need to do a better job for that, as well.

I’d like to close this issue in favor of different other suggestions here in the forum:

- Show number of views for content, specifically articles: https://community.coyoapp.com/forums/306010/suggestions/35131588

- Improve URL to make tracking for external tools easier:
https://community.coyoapp.com/forums/306010/suggestions/32454134

Hope you are ok with this decision. If you had something else in mind with this idea I am happy to discuss this with you.

3 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...
  • Haydn commented  ·   ·  Flag as inappropriate

    I like the idea of real-time stats avialable directly in pages and communities. Though I personally would prefer this restricted to just admin of those places (and of course overall site admin).

  • Huibert Gill commented  ·   ·  Flag as inappropriate

    Hi,

    we use Matomo (the new piwik) fo rtracking in coyo4, using the following script:
    maybe this will help:

    <!-- Matomo -->
    <script type="text/javascript">
    var _paq = _paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
    var u="//$YOUR_PIWIK_URL/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '1']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
    })();

    <!-- End Matomo Code -->

    var currentUrl = location.href;
    window.document.addEventListener('stateChangeSuccess', function (e) {
    currentUrl = e.data.url;

    console.log("Search hits: " + hitCount);
    _paq.push(['setReferrerUrl', currentUrl]);
    currentUrl = '' + window.location.hash.substr(1);
    _paq.push(['setCustomUrl', currentUrl]);
    _paq.push(['setDocumentTitle', document.title]);
    _paq.push(['trackSiteSearch',searchTerm,'intern',hitCount]);
    },2000);
    } else {
    _paq.push(['setReferrerUrl', currentUrl]);
    currentUrl = '' + window.location.hash.substr(1);
    _paq.push(['setCustomUrl', currentUrl]);
    _paq.push(['setDocumentTitle', document.title]);

    // remove all previously assigned custom variables, requires Matomo 3.0.2
    _paq.push(['deleteCustomVariables', 'page']);
    _paq.push(['setGenerationTimeMs', 0]);
    _paq.push(['trackPageView']);

    // make Matomo aware of newly added content
    var content = document.getElementById('content');
    _paq.push(['MediaAnalytics::scanForMedia', content]);
    _paq.push(['FormAnalytics::scanForForms', content]);
    _paq.push(['trackContentImpressionsWithinNode', content]);
    _paq.push(['enableLinkTracking']);
    }
    }, false);
    </script>

Feedback and Knowledge Base