• Hello Thomas,
    I am introducing ssGTM to my website and I’ve used a custom domain with my endpoint address to proxy the web container. Unfortunately after adding my endpoint domain in the gtm4wp setting I can’t see any change in the website’s source code.

    P.S. I didn’t use https:// prefix just the subdomain in my website’s domain.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • internetzkidz

    (@internetzkidz)

    Has this been resolved yet? I am currently seeing the same issue. I configured the Plugin to load the GTM Container from a custom (sub) domain but it keeps loading from https://www.googletagmanager.com.
    I can provide screenshots if it helps.

    internetzkidz

    (@internetzkidz)

    I think I have found the culprit. The regex checking the custom domain in the frontend.php (line 1093) does not allow hyphens in the domain string (only dots). Since my domain features as hyphen in thebigc-agency.de the https://www.googletagmanager.com is not replaced for my domain.

    $_gtm_domain_name = 'www.googletagmanager.com';
    			if (
    				( '' !== $gtm4wp_options[ GTM4WP_OPTION_GTMDOMAIN ] ) &&
    				( preg_match( '/^[a-z0-9\.:]+$/', strtolower( $gtm4wp_options[ GTM4WP_OPTION_GTMDOMAIN ] ) ) )
    			) {
    				$_gtm_domain_name = $gtm4wp_options[ GTM4WP_OPTION_GTMDOMAIN ];
    			}
    

    I think the regex /^[a-z0-9\.:\-:]+$/ would fix the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Server-side conf doesn’t change container domain name for the custom domain’ is closed to new replies.