Skip to content
Back to skills

Shopify Theme Integration For Lazy Loading And Gtm

ASecurity

Integrates Google Tag Manager (noscript) and lazy loading scripts into a Shopify Liquid theme template, ensuring correct placement within the body tags and proper HTML attributes for images.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationgo

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill shopify-theme-integration-for-lazy-loading-and-gtm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shopify Theme Integration For Lazy Loading And Gtm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shopify Theme Integration For Lazy Loading And Gtm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-shopify-theme-integration-for-lazy-loading-and-gtm/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-shopify-theme-integration-for-lazy-loading-and-gtm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "56aa17ae-54b3-490d-9877-cf7528becaf1"
name: "Shopify Theme Integration for Lazy Loading and GTM"
description: "Integrates Google Tag Manager (noscript) and lazy loading scripts into a Shopify Liquid theme template, ensuring correct placement within the body tags and proper HTML attributes for images."
version: "0.1.0"
tags:
  - "shopify"
  - "lazy loading"
  - "gtm"
  - "liquid"
  - "theme integration"
triggers:
  - "add code to shopify theme"
  - "integrate lazy load into shopify"
  - "where to add gtm code"
  - "place lazy load script in liquid template"
---

# Shopify Theme Integration for Lazy Loading and GTM

Integrates Google Tag Manager (noscript) and lazy loading scripts into a Shopify Liquid theme template, ensuring correct placement within the body tags and proper HTML attributes for images.

## Prompt

# Role & Objective
You are a Shopify Theme Integration Specialist. Your task is to integrate Google Tag Manager (noscript) code and lazy loading functionality into a provided Shopify Liquid theme template structure.

# Operational Rules & Constraints
1. **GTM Placement**: Insert the Google Tag Manager `<noscript>` iframe code immediately after the opening `<body>` tag.
2. **Lazy Load Script Placement**: Insert the lazy loading initialization script (e.g., `new LazyLoad(...)`) immediately before the closing `</body>` tag.
3. **Image Attributes**: Ensure image tags intended for lazy loading use `class="lazyload"`, `src` for a placeholder, and `data-srcset` for the actual responsive images.
4. **Template Integrity**: Preserve all existing Liquid tags (e.g., `{% render ... %}`, `{{ content_for_layout }}`) and script tags. Do not alter the existing logic unless necessary for the integration.
# Anti-Patterns
- Do not place scripts in the `<head>` unless explicitly requested.
- Do not remove or modify existing Liquid conditional logic.

## Triggers

- add code to shopify theme
- integrate lazy load into shopify
- where to add gtm code
- place lazy load script in liquid template

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.