{"id":2138,"date":"2021-09-28T11:48:15","date_gmt":"2021-09-28T03:48:15","guid":{"rendered":"https:\/\/eastdigi.com\/?p=2138"},"modified":"2021-11-12T18:57:37","modified_gmt":"2021-11-12T10:57:37","slug":"wordpress-google-gtm","status":"publish","type":"post","link":"https:\/\/eastdigi.com\/wordpress-google-gtm\/","title":{"rendered":"5 \u5206\u949f\u5b89\u88c5 GTM \u5728\u4f60\u7684 WordPress \u7f51\u7ad9\u4e0a\uff0c\u5229\u7528 GA \u5f00\u59cb\u8ffd\u8e2a\u7f51\u7ad9\u6570\u636e(\u8f6c\u8f7d)"},"content":{"rendered":"
\u4f60\u60f3\u4e3a\u4f60\u7684 WordPress \u7f51\u7ad9\u57cb\u5165 GTM \u5417\uff1f\u4f60\u662f\u5b8c\u5168\u4e0d\u61c2\u7a0b\u5f0f\u7801\u7684\u884c\u9500\u4eba\uff0c\u8eab\u8fb9\u6ca1\u6709\u5de5\u7a0b\u5e08\u53ef\u4ee5\u5e2e\u4f60\u57cb\u5417\uff1f<\/p>\n
\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u662f\u5e2e\u52a9\u5b8c\u5168\u4e0d\u61c2\u7a0b\u5f0f\u7801\u7684\u65b0\u624b\uff0c\u900f\u8fc7\u4e00\u6b3e\u514d\u8d39\u7684\u00a0Google Tag Manager for WordPress<\/strong>\u00a0\u63d2\u4ef6\uff0c\u6765\u5e2e\u4f60\u7684\u7f51\u7ad9\u6b63\u786e\u57cb\u5165 Google \u63d0\u4f9b\u7684\u7a0b\u5f0f\u7801\u7ba1\u7406\u5de5\u5177 Google Tag Manager ( GTM )\u3002<\/p>\n \u5728\u5b89\u88c5\u5b8c GTM \u4e4b\u540e\uff0c\u6211\u4e5f\u4f1a\u5e26\u4f60\u5b9e\u9645\u64cd\u4f5c\u4e00\u6b21\uff0c\u5982\u4f55\u57cb\u5165\u6240\u6709\u7f51\u7ad9\u5fc5\u5907\u7684\u5206\u6790\u5de5\u5177 Google Analytics ( GA )\uff0c\u5e2e\u52a9\u4f60\u63a5\u5c06\u6240\u6709\u8fdb\u5165\u7f51\u7ad9\u7684\u6d41\u91cf\u6570\u636e\u4e00\u7f51\u6253\u5c3d\uff01<\/p>\n Google Tag Manager ( GTM )<\/strong>\u00a0\u662f\u4e00\u6b3e\u7531 Google \u63a8\u51fa\u7684\u514d\u8d39\u7f51\u7ad9\u7a0b\u5f0f\u7801\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u4e3b\u8981\u662f\u8bbe\u8ba1\u7ed9\u4e0d\u61c2\u7a0b\u5f0f\u7801\u7684\u7f51\u7ad9\u7ad9\u957f\u4f7f\u7528\uff0c\u8ba9\u4ed6\u4eec\u80fd\u591f\u5728\u4e0d\u63a5\u89e6\u4efb\u4f55\u7a0b\u5f0f\u7801\u7684\u60c5\u51b5\u4e0b\uff0c\u5bf9\u81ea\u5df1\u7684\u7f51\u7ad9\u7a0b\u5f0f\u7801\u8fdb\u884c\u65b0\u589e\u529f\u80fd\u3002<\/p>\n \u4e3e\u4f8b\u6765\u8bf4\uff0c\u5982\u679c\u4f60\u60f3\u8981\u5728\u7f51\u7ad9\u4e2d\u555f\u7528\u00a0Google Analytics ( GA )<\/strong>\u00a0\u7684\u7f51\u7ad9\u5206\u6790\u62a5\u8868\uff0c\u90a3\u4e48\u4f60\u5c31\u5fc5\u987b\u5728\u7f51\u7ad9\u4e2d\u57cb\u5165\u4e00\u6bb5\u7a0b\u5f0f\u7801\uff0c\u8fd9\u65f6\u5019\u4f60\u53ea\u8981\u900f\u8fc7 GTM\uff0c\u5c31\u53ef\u4ee5\u5728\u4e0a\u9762\u7b80\u5355\u7684\u70b9\u70b9\u9f20\u6807\uff0c\u5c06\u7a0b\u5f0f\u7801\u57cb\u653e\u597d\uff0c\u5b8c\u5168\u4e0d\u9700\u8981\u61c2\u7a0b\u5f0f\u8bed\u8a00\uff0c\u975e\u5e38\u65b9\u4fbf\uff01<\/p>\n \u800c\u5982\u679c\u4f60\u60f3\u8981\u6295\u653e Facebook \u5e7f\u544a\u3001Goolge Ads \u5e7f\u544a\u7b49\uff0c\u90a3\u4f60\u5c31\u4e0d\u53ef\u4e0d\u7528 GTM \u8fdb\u884c\u8fd9\u4e9b\u5e7f\u544a\u7684\u6210\u6548\u8ffd\u8e2a\u4e0e\u5206\u6790\uff0cGTM \u53ef\u4ee5\u8bf4\u662f\u884c\u9500\u4eba\u5fc5\u4f1a\u7684 No.1 \u6280\u80fd\u3002<\/p>\n \u9664\u6b64\u4e4b\u5916\uff0cGTM \u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5de5\u5177\uff0c\u5c31\u8ddf Gmail, Google Drive \u4e00\u6837\uff0c\u53ea\u8981\u4f60\u6709\u4e00\u4e2a Google \u5e10\u53f7\u5c31\u80fd\u4f7f\u7528\uff0c\u6240\u4ee5\u57fa\u672c\u4e0a\u4e0d\u5177\u6709\u4efb\u4f55\u4f7f\u7528\u95e8\u69db\uff0c\u8bf7\u5b89\u5fc3\u4f7f\u7528\u3002<\/p>\n \u603b\u4e4b\uff0c\u4f7f\u7528 GTM \u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u7684\u7ba1\u7406\u4e0e\u7ef4\u62a4\u7f51\u7ad9\u7684\u7a0b\u5f0f\u7801\uff0c\u7701\u53bb\u5de5\u7a0b\u4e0a\u7684\u8bb8\u591a\u9ebb\u70e6\u3002<\/p><\/blockquote>\n \u524d\u5f80 WordPress \u540e\u53f0\uff0c\u5b89\u88c5\u5e76\u555f\u7528\u00a0Google Tag Manager for WordPress<\/strong>\u00a0\u8fd9\u6b3e\u63d2\u4ef6\u3002<\/p>\n \u555f\u7528\u5b8c\u4e4b\u540e\uff0c\u5728 WordPress \u540e\u53f0\u5de6\u8fb9\u5de5\u5177\u5217\u4e2d\u7684\u201c\u8bbe\u7f6e<\/strong>\u201d\u4e2d\u70b9\u9009\u201cGoogle Tag Manager<\/strong>\u201d\u3002<\/p>\n \u63a5\u7740\u5c31\u4f1a\u8fdb\u5165\u5230\u63d2\u4ef6\u8bbe\u7f6e\u7684\u4e3b\u753b\u9762\uff0c\u8fd9\u65f6\u5019\u5b83\u4f1a\u8981\u6c42\u4f60\u586b\u5199\u4e00\u4e2a\u201cGoogle \u4ee3\u7801\u7ba1\u7406\u5de5\u5177\u5bb9\u5668 ID<\/strong>\u201d\uff0c\u5982\u679c\u4f60\u5df2\u7ecf\u6709\u7528\u8fc7 GTM \u7684\u8bdd\uff0c\u5c31\u76f4\u63a5\u586b\u5199\u4f60\u7684 GTM \u5bb9\u5668 ID\uff0c\u5e76\u7ee7\u7eed\u5f80\u4e0b\u8fdb\u884c\u3002<\/p>\n \u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u8bbe\u7f6e\u8fc7 GTM \u7684\u8bdd\uff0c\u8fd9\u8fb9\u6211\u7b80\u5355\u7684\u5e26\u4f60\u8bbe\u7f6e\u4e00\u4e0b\uff1a<\/p>\n \u5728\u767b\u5165 Google \u5e10\u53f7\u7684\u60c5\u51b5\u4e0b\uff0c\u524d\u5f80\u00a0Google Tag Manager \u9996\u9875<\/a>\uff0c\u4fbf\u53ef\u4ee5\u5f00\u555f\u8fd9\u4e2a\u753b\u9762\u3002<\/p>\n \u70b9\u9009\u56fe\u4e2d\u7684\u7ea2\u6846\u5904\uff0c\u5efa\u7acb\u4e00\u4e2a\u65b0\u7684\u5e10\u6237\u3002<\/p>\n \u5728\u5e10\u6237\u8bbe\u7f6e\u7684\u90e8\u5206\uff0c\u8bf7\u4f9d\u5e8f\u8fdb\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n \u63a5\u7740\u5c31\u52fe\u9009\u540c\u610f\u5408\u7ea6\uff0c\u518d\u6309\u4e0b\u53f3\u4e0a\u89d2\u201c\u662f<\/strong>\u201d\u3002<\/p>\n \u4f1a\u8df3\u51fa\u4e00\u4e32\u5bc6\u5bc6\u9ebb\u9ebb\u7684\u7a0b\u5f0f\u7801\uff0c\u8fd9\u5c31\u662f GTM \u7684\u57fa\u5e95\u7a0b\u5f0f\u7801\uff0c\u4f46\u7531\u4e8e\u6211\u4eec\u662f\u7528 WordPress \u7684\u63d2\u4ef6\u5b89\u88c5\uff0c\u56e0\u6b64\u7528\u4e0d\u5230\uff0c\u76f4\u63a5\u6309\u201c\u786e\u5b9a<\/strong>\u201d\u5373\u53ef\u3002\u3002<\/p>\n \u63a5\u7740\u5728\u53f3\u4e0a\u89d2\u627e\u5230\u4e00\u6bb5 \u5982\u679c\u4f60\u662f\u6bd4\u8f83\u6015\u5199\u7a0b\u5f0f\u7801\u7684\u4eba\uff0c\u6216\u662f\u4e0d\u61c2\u5f97\u600e\u4e48\u4f7f\u7528\u5b50\u4e3b\u9898<\/strong>\uff0c\u5728\u4e0a\u65b9\u586b\u5199\u00a0 \u4f46\u56e0\u4e3a\u8fd9\u4e2a\u4f5c\u6cd5\uff0c\u4f5c\u8005\u6709\u7279\u522b\u6ce8\u660e Google \u4e0d\u5efa\u8bae\u8fd9\u4e48\u505a<\/strong>\uff0c\u4e0d\u5efa\u8bae\u7684\u539f\u56e0\u53ef\u80fd\u662f\u56e0\u4e3a\u8fd9\u4e2a\u4f5c\u6cd5\u662f\u5c06\u7a0b\u5f0f\u7801\u653e\u5728\u9875\u9762\u5c3e\u7aef\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u653e\u5728\u524d\u9762\u7684\u7a0b\u5f0f\u7801\u6ca1\u6709 load \u5230\u3002<\/p>\n \u56e0\u6b64\uff0c\u6211\u5728\u4e0b\u65b9\u53c8\u63d0\u4f9b\u4e86\u4f5c\u8005\u5efa\u8bae\u7684\u00a0 \u56de\u5230 WordPress \u540e\u53f0\uff0c\u521a\u521a\u5f00\u555f GTM \u63d2\u4ef6\u7684\u5730\u65b9\uff0c\u5e76\u4f9d\u5e8f\u8f93\u5165\uff1a<\/p>\n \u5b8c\u6210\u4e4b\u540e\uff0c\u56de\u5230\u540e\u53f0\u5de6\u8fb9\u5de5\u5177\u5217\u4e2d\u7684\u201c\u5916\u89c2<\/strong>\u201d\uff0c\u5e76\u70b9\u9009\u201c\u4f48\u666f\u4e3b\u9898\u7f16\u8f91\u5668<\/strong>\u201d\u3002<\/p>\n \u63a5\u7740\u5c06\u4e0b\u9762\u8fd9\u4e32\u7a0b\u5f0f\u7801\u590d\u88fd\uff0c\u7136\u540e\u76f4\u63a5\u8d34\u4e0a\u56de\u521a\u521a\u5f00\u555f\u7684\u00a0 \u8d34\u4e0a\u5b8c\u4e4b\u540e\uff0c\u62c9\u5230\u6700\u4e0b\u9762\u70b9\u9009\u201c\u66f4\u65b0\u6863\u6848<\/strong>\u201d\u3002<\/p>\n \u8fd9\u4e2a\u6b65\u9aa4\u5982\u679c\u4e0d\u884c\u7684\u8bdd\uff0c\u53ef\u80fd\u662f\u6709\u4e9b\u4e3b\u9898\u7684\u5199\u6cd5\u4e0d\u652f\u63f4\uff0c\u90a3\u5c31\u76f4\u63a5\u56de\u63d2\u4ef6\u8bbe\u7f6e\u9009\u201c\u9875\u9762\u9875\u5c3e\u201d\u5373\u53ef\u3002( \u867d\u7136\u4f5c\u8005\u8bf4 Google \u4e0d\u5efa\u8bae\u8fd9\u6837\u505a\uff0c\u4f46\u6211\u4e2a\u4eba\u662f\u89c9\u5f97\u5e94\u8be5\u6ca1\u5565\u5dee\u3002 )<\/p><\/blockquote>\n \u63a5\u7740\u56de\u5230 GTM \u4e4b\u4e2d\uff0c\u6211\u4eec\u8981\u6765\u68c0\u67e5\u4e00\u4e0b\u521a\u521a\u7684\u8bbe\u7f6e\u6709\u6ca1\u6709\u751f\u6548\uff0c\u56e0\u6b64\u4f9d\u5e8f\u8fdb\u884c\uff1a<\/p>\n \u63a5\u7740\u6253\u5f00\u4f60\u7684 WordPress \u7f51\u7ad9\uff0c\u5237\u65b0\u4e00\u4e0b\u4f60\u7684\u7f51\u9875\u6d4f\u89c8\u5668\uff0c\u5982\u679c\u8fd9\u65f6\u5019\u4e0b\u9762\u6709\u8df3\u51fa\u8fd9\u4e2a\u753b\u6846\uff0c\u5c31\u4ee3\u8868\u4f60\u7684 GTM \u5df2\u7ecf\u6210\u529f\u751f\u6548\u4e86\u3002<\/p>\n \u63a5\u7740\u5c31\u8ba9\u6211\u4eec\u6765\u5b9e\u9645\u8bd5\u8bd5\u770b\uff0c\u5982\u4f55\u900f\u8fc7 GTM \u6765\u5b89\u88c5\u00a0Google Analytics ( GA )<\/strong>\uff0c\u8fd9\u5957\u6240\u6709 WordPress \u7ad9\u957f\u5fc5\u88c5\u7684\u5206\u6790\u5de5\u5177\u5427\uff01<\/p>\n GA \u662f\u7531 Google \u5f00\u53d1\u7684\u4e00\u5957\u7f51\u7ad9\u6d41\u91cf\u5206\u6790\u5de5\u5177\uff0c\u5b83\u4e0d\u4ec5\u662f\u5b8c\u5168\u514d\u8d39\u7684\uff0c\u800c\u4e14\u529f\u80fd\u6df1\u5165\u6d45\u51fa\uff0c\u975e\u5e38\u5f3a\u5927\uff0c\u53ef\u4ee5\u8bf4\u662f\u6240\u6709\u7f51\u7ad9\u90fd\u5fc5\u88c5\u7684\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n \u57fa\u672c\u4e0a\uff0c\u4f60\u60f3\u77e5\u9053\u7684\u4efb\u4f55\u5173\u4e8e\u7f51\u7ad9\u4e0a\u53d1\u751f\u7684\u884c\u4e3a\u4e0e\u6570\u636e\uff0c\u900f\u8fc7 GA \u90fd\u80fd\u627e\u5230\u89e3\u7b54\uff0c\u6700\u7b80\u5355\u4e5f\u6700\u91cd\u8981\u7684 GA \u6570\u636e\u5206\u522b\u662f\u201c\u4f7f\u7528\u8005<\/strong>\u201d\u3001\u201c\u5de5\u4f5c\u9636\u6bb5<\/strong>\u201d\u3001\u201c\u6d4f\u89c8\u91cf<\/strong>\u201d\uff0c\u900f\u8fc7\u89c2\u5bdf GA \u8fd9\u4e09\u4e2a\u7b80\u5355\u7684\u6570\u636e\uff0c\u6211\u4eec\u4fbf\u80fd\u5bf9\u7f51\u7ad9\u7684\u4f7f\u7528\u8005\u6709\u521d\u6b65\u7684\u5206\u6790\u3002<\/p>\n \u88c5 GA \u5bf9\u4e8e\u7f51\u7ad9\u662f\u767e\u5229\u800c\u65e0\u4e00\u5bb3\u7684\uff0c\u5efa\u8bae\u6240\u6709\u7f51\u7ad9\u4e00\u5b9a\u8981\u88c5\uff0c\u592a\u665a\u88c5\u7684\u8bdd\uff0c\u4e4b\u540e\u4f60\u8981\u770b\u524d\u9762\u7684\u8d44\u6599\u5c31\u6ca1\u529e\u6cd5\u4e86\u3002<\/p><\/blockquote>\n \u5148\u767b\u5165\u4f60\u7684 Google \u5e10\u53f7\uff0c\u518d\u524d\u5f80\u00a0GA \u9996\u9875<\/a>\uff0c\u70b9\u9009\u201c\u5f00\u59cb\u6d4b\u91cf<\/strong>\u201d\u3002<\/p>\n \u56e0\u4e3a\u6211\u4eec\u662f WordPress \u7f51\u7ad9\uff0c\u6240\u4ee5\u9009\u62e9\u201c\u7f51\u7ad9<\/strong>\u201d\u7684\u9009\u9879\uff0c\u5e76\u70b9\u9009\u4e0b\u4e00\u6b65\u3002<\/p>\n \u63a5\u7740\u4f60\u7684 GA \u5c31\u4f1a\u6210\u529f\u5efa\u7acb\u4e86\uff0c\u4f9d\u5e8f\u8fdb\u884c\uff1a<\/p>\n \u56de\u5230 GTM \u4e4b\u4e2d\uff0c\u4f9d\u5e8f\u8fdb\u884c\uff1a<\/p>\n \u63a5\u4e0b\u6765\u662f\u4e00\u4e32\u6bd4\u8f83\u7e41\u590d\u7684\u8bbe\u7f6e\uff0c\u4f9d\u5e8f\u8fdb\u884c\uff1a<\/p>\n \u8fd9\u8fb9\u662f\u5b9a\u4e49\u4e00\u4e2a GA \u7684\u53d8\u6570\uff0c\u6211\u4eec\u8981\u5c06\u521a\u521a\u5efa\u7acb\u8d77\u7684 GA \u4ee3\u7801 ID \u8d34\u5728\u8fd9\u91cc\u3002<\/p>\n \u5b8c\u6210\u4e4b\u540e\uff0c\u68c0\u67e5\u4e00\u4e0b\u8bbe\u7f6e\u662f\u5426\u90fd\u5b8c\u6210\u4e86\uff0c\u5e76\u8fdb\u884c\u3002<\/p>\n \u63a5\u7740\u5728 GTM \u53f3\u4e0a\u89d2\u5904\u6309\u201c\u63d0\u4ea4<\/strong>\u201d\uff0c\u7136\u540e\u4e00\u8def\u6309\u7ee7\u7eed\u5230\u5e95\u5c31\u597d\u4e86\u3002<\/p>\n \u6b64\u65f6\u6253\u5f00\u4f60\u7684\u7f51\u7ad9\u9996\u9875<\/strong>\uff0c\u5e76\u518d\u56de\u5230 GA \u9996\u9875\u7684\u62a5\u8868\u4e2d\u68c0\u89c6\uff0c\u5982\u679c\u6709\u770b\u5230\u8fd9\u8fb9\u7684\u6570\u5b57\u663e\u793a\u00a0 \u5982\u679c\u4f60\u7684\u7f51\u7ad9\u662f\u4f7f\u7528 Woocommerce \u4f5c\u4e3a\u7535\u5546\u5b98\u7f51\u7684\u8bdd\uff0c\u8fd8\u53ef\u4ee5\u518d\u53e6\u5916\u5f00\u555f\u00a0GA \u52a0\u5f3a\u578b\u7535\u5b50\u5546\u52a1\u62a5\u8868<\/strong> \u505a\u66f4\u8fdb\u4e00\u6b65\u7684\u8ffd\u8e2a\uff0c\u6bd4\u5982\u8bf4\u83b7\u5f97\u9500\u552e\u91d1\u989d\u3001\u8f6c\u6362\u7387\u3001\u8d2d\u7269\u8f66\u653e\u5f03\u7387\u7b49\u7535\u5546\u4e13\u5c5e\u6570\u636e\uff0c\u6709\u5174\u8da3\u7684\u8bdd\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n \u7528 GTM \u53bb\u5b89\u88c5 GA \u7b97\u662f\u4e00\u4e2a\u6700\u57fa\u672c\u7684\u642d\u914d\u5e94\u7528\uff0c\u5176\u5b9e GTM \u7684\u4e16\u754c\u662f\u975e\u5e38\u535a\u5927\u7cbe\u6df1\uff0cGTM \u53ef\u4ee5\u5e2e\u4f60\u5728\u7f51\u7ad9\u4e0a\u505a\u5230\u5f88\u591a\u5f88\u591a\u4e8b\u60c5\uff0c\u57fa\u672c\u4e0a\u4efb\u4f55\u4f60\u60f3\u77e5\u9053\u7684\u7f51\u7ad9\u4fe1\u606f\uff0c\u90fd\u53ef\u4ee5\u900f\u8fc7 GTM \u7684\u8fdb\u9636\u529f\u80fd\u201c\u8d44\u6599\u5c42 ( Data Layer )<\/strong>\u201d\u6765\u8fbe\u6210\u3002<\/p>\n \u9664\u4e86\u4e00\u5f00\u59cb\u63d0\u53ca\u7684 Facebook \u5e7f\u544a\u3001Google Ads \u4e4b\u5916\uff0c\u4e5f\u53ef\u4ee5\u5b89\u88c5 Email \u884c\u9500\u5de5\u5177\u3001Hotjar \u89c6\u89c9\u5316\u7f51\u7ad9\u76d1\u542c\u5de5\u5177\u2026\u7b49\u7b49\uff0c\u8ba9\u4f60\u4e0d\u9700\u8981\u518d\u53e6\u5916\u88c5\u4e00\u5806 WordPress \u7684\u63d2\u4ef6\uff0c\u5c31\u80fd\u555f\u7528\u8fd9\u4e9b\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u975e\u5e38\u65b9\u4fbf\uff01<\/p>\n \u603b\u4e4b\uff0c\u5982\u679c\u4f60\u662f\u4e0d\u61c2\u7a0b\u5f0f\u7801\u7684 WordPress \u7ad9\u957f\uff0c\u90a3\u4e48\u4f60\u4e00\u5b9a\u8981\u5b66\u4f1a\u5982\u4f55\u4f7f\u7528 GTM\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u6ca1\u6709\u5de5\u7a0b\u5e08\u7684\u60c5\u51b5\u4e0b\uff0c\u4e3a\u7f51\u7ad9\u5b89\u88c5\u8bb8\u591a\u65b0\u7684\u529f\u80fd\u3002<\/p>\n \u8f6c\u8f7d\u81ea\uff1a https:\/\/eastdigi.com\/wordpress-gtm-tutorial\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":" \u4f60\u60f3\u4e3a\u4f60\u7684 WordPress \u7f51\u7ad9\u57cb\u5165 GTM \u5417\uff1f\u4f60\u662f\u5b8c\u5168\u4e0d\u61c2\u7a0b\u5f0f\u7801\u7684\u884c\u9500\u4eba\uff0c\u8eab\u8fb9\u6ca1\u6709\u5de5\u7a0b\u5e08\u53ef\u4ee5\u5e2e\u4f60\u57cb\u5417\uff1f … Continue reading 5 \u5206\u949f\u5b89\u88c5 GTM \u5728\u4f60\u7684 WordPress \u7f51\u7ad9\u4e0a\uff0c\u5229\u7528 GA \u5f00\u59cb\u8ffd\u8e2a\u7f51\u7ad9\u6570\u636e(\u8f6c\u8f7d)<\/span> GTM \u662f\u4ec0\u4e48\uff1f<\/span><\/h2>\n
\u5982\u4f55\u5728 WordPress \u4e0a\u5b89\u88c5 GTM\uff1f<\/span><\/h2>\n
\u5b89\u88c5 GTM \u63d2\u4ef6<\/span><\/h3>\n
\u53d6\u5f97 GTM \u5bb9\u5668 ID<\/span><\/h3>\n
\n
GTM-xxxxxx<\/code>\u7684\u7f16\u53f7\uff0c\u8fd9\u5c31\u662f\u4f60\u7684 GTM \u4ee3\u7801\u5bb9\u5668 ID\uff0c\u5c06\u5176\u590d\u88fd\u4e0b\u6765\u3002<\/p>\n
\u5728 WordPress \u4e2d\u57cb\u5165 GTM<\/span><\/h3>\n
GTM \u4ee3\u7801<\/code>\u4e4b\u540e\uff0c\u76f4\u63a5\u9009\u7b2c\u4e00\u4e2a\u9009\u9879
\u9875\u9762\u9875\u5c3e<\/code>\uff0c\u5373\u53ef\u4ee5\u8f7b\u677e\u63d2\u5165 GTM \u5b8c\u6210\uff01<\/p>\n
\u81ea\u8ba2<\/code>\u00a0\u4f5c\u6cd5\uff0c\u5982\u679c\u5f88\u5728\u610f\u8fd9\u70b9\u7684\u4eba\u53ef\u4ee5\u7528\u6211\u7684\u65b9\u6cd5\u8bd5\u770b\u770b\u3002<\/p>\n
\n
\n
Child<\/code>\u00a0\u7684\u5b57\u6837\u3002( \u6ce8\uff1a\u4e0d\u4f7f\u7528\u5b50\u4e3b\u9898\u7684\u8bdd\uff0c\u4e3b\u9898\u66f4\u65b0\u540e\u5c31\u4f1a\u6d88\u5931<\/strong>\uff0c\u8981\u7279\u522b\u6ce8\u610f\uff01\u5982\u679c\u4f60\u6ca1\u6709\u5b50\u4e3b\u9898\uff0c\u8bf7\u53bb\u7814\u7a76\u600e\u4e48\u4f7f\u7528\u5b50\u4e3b\u9898\uff0c\u6216\u662f\u4f7f\u7528\u6211\u524d\u9762\u63d0\u5230\u7684\u5b89\u88c5 GTM \u7684\u65b9\u6cd5\u3002 )<\/li>\n
functions.php<\/code>\u00a0\u7684\u6863\u6848\u3002<\/li>\n<\/ol>\n
functions.php<\/code>\u00a0\u6863\u6848\u7a7a\u767d\u5904\u3002<\/p>\n
add_action('wp_body_open','add_gtm_code');\r\n\r\nfunction add_gtm_code(){\r\n if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) {\r\n\t\tgtm4wp_the_gtm_tag(); \r\n\t};\r\n}<\/code><\/pre>\n
\u68c0\u67e5 GTM \u662f\u5426\u751f\u6548<\/span><\/h3>\n
\n
\u8865\u5145\uff1a\u5982\u4f55\u9000\u51fa GTM\uff1f<\/h4>\n
\n
\u4f7f\u7528 GTM \u57cb\u653e GA<\/span><\/h2>\n
\u5efa\u7acb GA \u5e10\u53f7<\/span><\/h3>\n
\n
\n
\u53d6\u5f97 GA \u8ffd\u8e2a\u7801<\/span><\/h3>\n
\n
\u5728 GTM \u4e2d\u65b0\u589e GA \u4ee3\u7801<\/span><\/h3>\n
\n
\n
\n
Google Analytics Setting<\/code>\u3002<\/li>\n
\n
Google Analytics Base<\/code>\u3002<\/li>\n
1<\/code>\u00a0\u7684\u8bdd\uff0c\u5c31\u4ee3\u8868 GA \u6210\u529f\u8490\u96c6\u5230\u4f60\u7684\u6570\u636e\u4e86\uff0c\u5b89\u88c5\u5b8c\u6210\uff01<\/p>\n
\u7ed3\u8bed<\/span><\/h2>\n