Skip to content

Commit

Permalink
Merge pull request #84 from wszczawinski/feat/google-tag-manager
Browse files Browse the repository at this point in the history
wszczawinski authored Jul 13, 2024
2 parents 545f82c + 9fd7593 commit 23ce7c9
Showing 7 changed files with 46 additions and 2 deletions.
20 changes: 20 additions & 0 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
@@ -123,5 +123,25 @@ module.exports = {
},
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: 'GTM-THWTQDT',

// Include GTM in development.
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,

// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
// Defaults to null
defaultDataLayer: { platform: 'gatsby' },

// Name of the event that is triggered
// on every Gatsby route change.
// Defaults to false
enableWebVitalsTracking: true,
},
},
],
};
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
},
"dependencies": {
"gatsby": "5.13.3",
"gatsby-plugin-google-tagmanager": "^5.13.1",
"gatsby-plugin-image": "3.13.1",
"gatsby-plugin-react-helmet": "6.13.1",
"gatsby-plugin-sass": "6.13.1",
2 changes: 1 addition & 1 deletion src/components/Layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ export const Footer = () => {
Regulamin
</a>{' '}
|{' '}
<a href={withPrefix('polityka-prywatnosci.pdf')} target="_blank" rel="noreferrer noopener">
<a href={withPrefix('polityka-prywatności-serwisu-www.pibp.pl.pdf')} target="_blank" rel="noreferrer noopener">
Polityka prywatności
</a>
</p>
2 changes: 1 addition & 1 deletion src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ export const Layout = ({ children, heroTextContent, heroBackgroundImage, heroCla
>
<BiCookie /> Przeglądając naszą stronę internetową bez zmian w swojej przeglądarce, wyrażasz zgodę na wykorzystywanie przez nas plików cookies.
Dzięki temu serwis internetowy pibp.pl może być maksymalnie bezpieczny i wygodny. Dowiec się więcej z naszej{' '}
<a href={withPrefix('polityka-prywatnosci.pdf')} className="privacy-policy" target="_blank" rel="noreferrer">
<a href={withPrefix('polityka-prywatności-serwisu-www.pibp.pl.pdf')} className="privacy-policy" target="_blank" rel="noreferrer">
Polityki prywatności
</a>
.
Binary file removed static/polityka-prywatnosci.pdf
Binary file not shown.
Binary file not shown.

0 comments on commit 23ce7c9

Please sign in to comment.