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

Mp/desindexation google #111

Merged
merged 4 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/deploy-demo.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
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"/>
MorganP-projects marked this conversation as resolved.
Show resolved Hide resolved
<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.
Loading