Problem/Motivation

May be useful to add the option to select GTM server side mode.
In the configuration form should be the filed to store custom url.

Thank you

Comments

trickfun created an issue. See original summary.

batigolix’s picture

Status: Active » Postponed (maintainer needs more info)

Would be great if you could elaborate a bit more on this.

trickfun’s picture

Hi batigolix,

Problem/Motivation

Google Tag Manager now offers the ability to host your own server-side instances. This helps with some third-party vs first-party cookie concerns.

In its current state, the module only supports GTM hosted at www.googletagmanager.com.

Proposed resolution

Add a gtm_hostname property in the configuration form and initialize the default value to www.googletagmanager.com.
gtm_hostname override default value into the code.

see https://www.drupal.org/project/google_tag/issues/3241123

thank you

batigolix’s picture

Status: Postponed (maintainer needs more info) » Needs work
batigolix’s picture

Issue tags: +finalist-sprint

  • roaldnel committed 3704ff8c on 1.0.x
    Issue #3356975 by roaldnel: GTM server side option
    
roaldnel’s picture

Version: 1.0.x-dev » 1.0.15
Status: Needs work » Fixed

I have added a new custom field to the configuration form so users can now set custom URLs for the google tag manager server. The code was released in version 1.0.15.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.