react-gtm icon indicating copy to clipboard operation
react-gtm copied to clipboard

custom server side domain name for the Google Tag Manager

Open Kahore opened this issue 4 years ago • 8 comments

We can change server side domain name for the Google Tag Manager to circumvent adblockers. So the new tracking server is located at some custom domain.

Background to above: when adblockers or browsers see googletagmanager.com (or other domains or code refering to tracking, they will block it). Having custom domain means that no blockers will match on this url and it will approvedpproved.

Kahore avatar Apr 27 '21 09:04 Kahore

+1

olso avatar Jul 03 '21 15:07 olso

Also transport_url option would be great to add because of the new google server side proxy feature. Nevertheless +1 here.

Ivkaa avatar Jul 11 '21 16:07 Ivkaa

@alinemorelli any timeline to merge this change. Its been while since google had added option for server side GTM.

baneetdebutify avatar Aug 30 '21 06:08 baneetdebutify

@alinemorelli could you merge this? It would help a lot

iamgbayer avatar Sep 10 '21 20:09 iamgbayer

@alinemorelli I also faced the problem with the server-based tagging and need this functionality. How can I help you to merge this PR?

vasiliykr avatar Mar 09 '22 11:03 vasiliykr

I needed to get a solution working quickly, so I created a fork that allows you to customize the url: https://github.com/darjama/react-gtm-custom-domain https://www.npmjs.com/package/react-gtm-module-custom-domain

darjama avatar Jun 24 '22 17:06 darjama

Yeah I need this too now, thanks @darjama for your fork!

Twansparant avatar Nov 07 '23 13:11 Twansparant

+1

RomanHumeniuk avatar Feb 12 '24 14:02 RomanHumeniuk