Skip to content

Commit

Permalink
Ajout des metas dans l'index
Browse files Browse the repository at this point in the history
  • Loading branch information
morgan committed Mar 22, 2024
1 parent c18d9d6 commit 2fb3410
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-recette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ jobs:
envkey_REACT_APP_PIX_CAMPAGNE_URL: ${{ secrets.REACT_APP_PIX_CAMPAGNE_URL }}
envkey_REACT_APP_PIX_URL: "https://app.pix.fr/connexion"
file_name: .env
- name: copy robots.txt
uses: canastro/copy-file-action@master
with:
source: "desindexation/robots.txt"
target: "public/robots.txt"
- name: copy index.html
uses: canastro/copy-file-action@master
with:
source: "desindexation/index.html"
target: "public/index.html"
- name: Build application
run: npm run build
- name: copy .htaccess
Expand Down
23 changes: 3 additions & 20 deletions public/index.html → desindexation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
<meta name="description" content="espace candidat"/>

<!-- Validation de propriété pour désindexation -->
<meta name="google-site-verification" content="eND3WF_iW6YzE4bYPRUYnRxnMR_5cyk54SOAB50HVug" />
<meta name='robots' content='noindex,nofollow' />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down Expand Up @@ -37,24 +39,5 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->

<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.conseiller-numerique.gouv.fr"]);
_paq.push(["setDomains", ["*.conseiller-numerique.gouv.fr"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.data.gouv.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '147']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</body>
</html>
File renamed without changes.

0 comments on commit 2fb3410

Please sign in to comment.