Skip to content

Commit

Permalink
feature/EPMGCIP-146/add-gtm-tracker
Browse files Browse the repository at this point in the history
feature/EPMGCIP-146/add-gtm-tracker
  • Loading branch information
Siarhei Balonikau committed Jul 18, 2024
1 parent e29121e commit 1c181e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
VITE_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN: ${{secrets.VITE_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN}}
VITE_CONTENTFUL_CONTENT_PREVIEW_ACCESS_TOKEN: ${{secrets.VITE_CONTENTFUL_CONTENT_PREVIEW_ACCESS_TOKEN}}
VITE_CONTENTFUL_ENVIRONMENT: ${{secrets.VITE_CONTENTFUL_ENVIRONMENT}}
VITE_CONTENTFUL_GTAG_ID: ${{secrets.VITE_CONTENTFUL_GTAG_ID}}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
VITE_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN: ${{secrets.VITE_CONTENTFUL_CONTENT_DELIVERY_ACCESS_TOKEN}}
VITE_CONTENTFUL_CONTENT_PREVIEW_ACCESS_TOKEN: ${{secrets.VITE_CONTENTFUL_CONTENT_PREVIEW_ACCESS_TOKEN}}
VITE_CONTENTFUL_ENVIRONMENT: ${{secrets.VITE_CONTENTFUL_ENVIRONMENT}}
VITE_CONTENTFUL_GTAG_ID: ${{secrets.VITE_CONTENTFUL_GTAG_ID}}
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-M3Z2M6V3');</script>
<!-- End Google Tag Manager -->
})(window,document,'script','dataLayer','%VITE_CONTENTFUL_GTAG_ID%');</script>
<!-- End Google Tag Manager sss -->
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 1c181e8

Please sign in to comment.