elgorditosalsero / react-gtm-hook

Easily manage the Google Tag Manager via Hook
https://elgorditosalsero-react-gtm-hook.netlify.app/
MIT License
220 stars 28 forks source link

Support custom gtm.js file name #75

Closed pkulcsarnr closed 1 year ago

pkulcsarnr commented 1 year ago

One of the main reason to move to server side GTM is to avoid being blocked by browsers and adblocks. For this reason it is possible to change the custom domain and the name of the file as well. For example tracking.mydomain.com/t.js. For now it is not possible to set the name of the file in this package.

pkulcsarnr commented 1 year ago

Implemented the possible solution in this PR: https://github.com/elgorditosalsero/react-gtm-hook/pull/76

pkulcsarnr commented 1 year ago

@elgorditosalsero Can you please check the implementation?

elgorditosalsero commented 1 year ago

Hey @pkulcsarnr, #76 approved and merged 😄