Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1847 from SkynetLabs/move-to-matomo-tag-manager
Browse files Browse the repository at this point in the history
change matomo tag manager address
  • Loading branch information
ro-tex authored Mar 8, 2022
2 parents e27443e + 312d940 commit 20d8458
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 91 deletions.
9 changes: 0 additions & 9 deletions packages/website/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ module.exports = {
skylink: `AQBG8n_sgEM_nlEp3G0w3vLjmdvSZ46ln8ZXHn-eObZNjA`,
},
},
{
resolve: "gatsby-plugin-matomo",
options: {
siteId: 3,
matomoUrl: "https://surveillance.sia.tech",
siteUrl: "https://siasky.net",
localScript: "/piwik.js",
},
},
{
resolve: "gatsby-plugin-sitemap",
options: {
Expand Down
1 change: 0 additions & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"gatsby-background-image": "1.6.0",
"gatsby-plugin-image": "2.9.0",
"gatsby-plugin-manifest": "4.9.0",
"gatsby-plugin-matomo": "0.11.0",
"gatsby-plugin-postcss": "5.9.0",
"gatsby-plugin-react-helmet": "5.9.0",
"gatsby-plugin-robots-txt": "1.7.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/website/src/components/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ import PropTypes from "prop-types";
import { Helmet } from "react-helmet";
import { useStaticQuery, graphql } from "gatsby";

const matomoTagManagerScript = `var _mtm = window._mtm = window._mtm || [];
// todo: this should come from environment variable, matomo should not be initialised if this is not defined
const matomoTagManagerScript = `
var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://surveillance.sia.tech/js/container_Z7P9k6Ok.js'; s.parentNode.insertBefore(g,s);`;
g.async=true; g.src='https://cdn.matomo.cloud/skynetlabs.matomo.cloud/container_4pSej4LD.js'; s.parentNode.insertBefore(g,s);
`;

function SEO({ description, lang, meta, title }) {
const { site } = useStaticQuery(
Expand Down
Loading

0 comments on commit 20d8458

Please sign in to comment.