Skip to content

Commit

Permalink
Merge pull request #3 from GuilleFB/gh-pages
Browse files Browse the repository at this point in the history
added google analytics
  • Loading branch information
GuilleFB authored Jan 27, 2025
2 parents c1012ab + 26b61b1 commit cf1a197
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
14 changes: 14 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
"dependencies": {
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.0.18",
"@types/react-gtm-module": "^2.0.4",
"autoprefixer": "10.4.20",
"classnames": "^2.3.2",
"next": "^15.1.6",
"postcss-nesting": "^13.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-google-recaptcha": "^3.1.0",
"react-gtm-module": "^2.0.11",
"sharp": "^0.33.5",
"ts-pattern": "^5.0.4"
},
Expand Down
9 changes: 8 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import '../globalStyles.scss'; // Importa solo tu archivo SCSS
import type { AppProps } from 'next/app';
import { memo, JSX } from 'react';
import { memo, JSX, useEffect} from 'react';
import TagManager from 'react-gtm-module';

const MyApp = memo(({ Component, pageProps }: AppProps): JSX.Element => {
useEffect(() => {
const tagManagerArgs = {
gtmId: 'GTM-PGDCRGDQ'
};
TagManager.initialize(tagManagerArgs);
}, []);
return <Component {...pageProps} />;
});

Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,11 @@
dependencies:
"@types/react" "*"

"@types/react-gtm-module@^2.0.4":
version "2.0.4"
resolved "https://registry.npmjs.org/@types/react-gtm-module/-/react-gtm-module-2.0.4.tgz"
integrity sha512-5wPMWsUE5AI6O0B0K1/zbs0rFHBKu+7NWXQwDXhqvA12ooLD6W1AYiWZqR4UiOd7ixZDV1H5Ys301zEsqyIfNg==

"@types/react@*", "@types/react@^19.0.8":
version "19.0.8"
resolved "https://registry.npmjs.org/@types/react/-/react-19.0.8.tgz"
Expand Down Expand Up @@ -4125,6 +4130,11 @@ react-google-recaptcha@^3.1.0:
prop-types "^15.5.0"
react-async-script "^1.2.0"

react-gtm-module@^2.0.11:
version "2.0.11"
resolved "https://registry.npmjs.org/react-gtm-module/-/react-gtm-module-2.0.11.tgz"
integrity sha512-8gyj4TTxeP7eEyc2QKawEuQoAZdjKvMY4pgWfycGmqGByhs17fR+zEBs0JUDq4US/l+vbTl+6zvUIx27iDo/Vw==

react-is@^16.13.1, react-is@^16.7.0:
version "16.13.1"
resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"
Expand Down

0 comments on commit cf1a197

Please sign in to comment.