本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2863

gtm-present

できること

このスキルは、Google Tag Manager の設定方法と、それがページをどれだけ遅くしているかを確認します。分析や広告に GTM を使うサイト運営者や開発者向けです。

使う場面

  • ✓Google Tag Manager を追加した後で、ページが遅く感じるとき。
  • ✓コンテナに古いタグや使われていないタグが多いとき。
  • ✓一部のトラッキングの処理を、訪問者のブラウザから移したいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/gtm-present/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/gtm-present/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Google Tag Manager がサイトを遅くしていないか、確認してもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、GTM のスクリプトの読み込み方法を確認し、実行されるタグとトリガーの数を数えます。使われていないタグを削除し、非同期で読み込み、サーバー側のタグ付けを検討することを提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Optimize Google Tag Manager implementation

An unoptimized GTM setup can lead to significant main-thread blocking and increased page weight, slowing down the overall user experience.

Quick Reference

  • Place the GTM script in the <head> but audit its impact
  • Minimize the number of tags and triggers to reduce execution
  • Use Server-Side GTM to offload processing from the client

Check

Verify that GTM is implemented correctly and evaluate its impact on page performance using Lighthouse.

Fix

Clean up unused tags, use asynchronous loading, and consider moving to a server-side implementation.

Explain

Explain how GTM affects performance and how to balance tracking needs with speed.

Code Review

Review the routes, assets, and loading behavior that affect Optimize Google Tag Manager implementation. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/gtm-present

よくある質問

サーバー側の GTM とは何ですか?

一部のタグの処理をサーバーに移し、訪問者のブラウザで実行される作業を減らす仕組みです。

影響はどのように測りますか?

GTM がメインスレッドとページの重さにどう影響するかを確認するため、Lighthouse を使うことを提案しています。

GTM は削除すべきですか?

このスキルは削除を提案していません。トラッキングの必要性と速度のバランスを取るべきだとしています。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize Google Tag Manager implementation. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2863
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル