threefoldfoundation / home

The ThreeFold Foundation is a driving engine for a Planet Positive Internet.
Apache License 2.0
6 stars 0 forks source link

ALL - Analytics Across the Board #111

Closed VonSub closed 3 years ago

VonSub commented 3 years ago

We need to have some things fixed across the board in regards to website tracking.

ehab-hassan commented 3 years ago

No idea why tracking code removed from production I put i back again at farming development ,still some problem with production update waiting to be fixed so we can test ,also updated tracking for foundation development

Note :we didn't put Matomo script at header in gridsome we put it in gridsome.config just changing the ID https://npm.io/package/gridsome-plugin-matomo

Vilnite commented 3 years ago

we will have one domain: threefold.io and each website and wiki comes after /

websites: threefold.io (umbrella website) threefold.io/farming threefold.io/twin threefold.io/cloud threefold.io/marketplace threefold.io/tech threefold.io/aci

for wikis: threefold.io/info/threefold threefold.io/info/cloud threefold.io/info/twin threefold.io/info/sdk threefold.io/info/legal threefold.io/info/tech

for analytics this means we now will need to trace only one website - threefold.io right? @VonSub

VonSub commented 3 years ago

yes, this would mean we need only one tracking code.

VonSub commented 3 years ago

When would that URL/DNS approach be ready @Vilnite ?

VonSub commented 3 years ago

updated the issue. will have to wait for when we have all the url stuff sorted out.

Vilnite commented 3 years ago

Now with websites up and running.. we for sure need to get analytics running as well. Please @ehab-hassan and @VonSub prioritise this and figure out how we can get it up and running :) Thank you.

Sacha96 commented 3 years ago

Indeed totally. @VonSub maybe you could bring me up to speed so I can push accordingly this week. badly need this also to accompany amazix review and be sure we gather the data we need to further improve our web presence.

VonSub commented 3 years ago

we will have one domain: threefold.io and each website and wiki comes after /

websites:

<!-- Matomo -->
<script type="text/javascript">
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//analytics.threefold.io/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', '5']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->
VonSub commented 3 years ago

for wikis:

ehab-hassan commented 3 years ago

done for all websites for wikis I need help from @Hamdy how to add that in wikis

VonSub commented 3 years ago

@ehab-hassan when can this be done?

ehab-hassan commented 3 years ago

@Hamdy when can be this done for wikis? all websites added

Hamdy commented 3 years ago

@VonSub @Vilnite done, however these are missing

info_tag
info_mitaa
info_bettertoken
info_grid_operations
info_uhuru
info_marketplace
info_publishtools
Hamdy commented 3 years ago

for wikis it needs styling. please contact me to add Op-out dialog to the index page of wikis the index.html file inside wiki repos is not used, we use a template in publishtools this is how it looks

image

ehab-hassan commented 3 years ago

now all Analytics script at issue updated( website and wikis) except the on @Hamdy Hamdy said there is no script code for this info_tag info_mitaa info_bettertoken info_grid_operations info_uhuru info_marketplace info_publishtools for Op-out at farming we have problem with script and we agree with @VonSub he we'll come up with something else

Vilnite commented 3 years ago

All these wiki's we don't track atm. Those are related projects that are inactive atm anyhow. We only focus on getting TF direct web presence tracked.

For Faming opt-out I've created a new issue @VonSub : https://github.com/threefoldfoundation/www_threefold_farming/issues/92

Also @VonSub please check if analytics are up and running. We need a weekly report or smth on promotion/internal_org group.