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

GTM URL has changed, please update the default options

Open esorribas opened this issue 4 years ago • 4 comments

The new URL for GTM is: https://www.googletagmanager.com/gtag/js and the previous URL throws a 404 error

esorribas avatar Feb 10 '21 13:02 esorribas

URL mới cho GTM là: https://www.googletagmanager.com/gtag/js và URL trước đó gây ra lỗi 404

thanks

datlechin avatar Feb 14 '21 09:02 datlechin

Perhaps Google changed something, but the old URL still works for me:

% curl -s https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXXX

// Copyright 2012 Google Inc. All rights reserved.
(function(){

var data = {
"resource": {
  "version":"1",

  "macros":[{
      "function":"__u",

The new URL referred to above also works.

garyo avatar Feb 18 '21 18:02 garyo

Anyone have more information on this, yet the m/gtm.js? seems to give 400 , but seems to still work.

Should I change my url to the gtag/js?

gtag

hoektoe avatar Apr 22 '21 08:04 hoektoe

Where are you? Does it work if you just use curl? Are you sure you're using the right GTM ID? I note that if I don't use a GTM ID I get a 400 error:

% curl -I https://www.googletagmanager.com/gtm.js
HTTP/2 400

but if I use a valid ID it works (status 200):

% curl -I https://www.googletagmanager.com/gtm.js?id=GTM-TDWXYZW
HTTP/2 200

garyo avatar Apr 22 '21 15:04 garyo