PHPackages                             hryvinskyi/magento2-head-tag-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hryvinskyi/magento2-head-tag-manager

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

hryvinskyi/magento2-head-tag-manager
====================================

HTML head tag manager for Magento 2 advanced element management capabilities

2.3.5(3mo ago)4487↓50%12MITPHP

Since May 9Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/hryvinskyi/magento2-head-tag-manager)[ Packagist](https://packagist.org/packages/hryvinskyi/magento2-head-tag-manager)[ RSS](/packages/hryvinskyi-magento2-head-tag-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (19)Used By (2)

Adobe Commerce / Magento 2 Head Tag Manager Module
==================================================

[](#adobe-commerce--magento-2-head-tag-manager-module)

[![Latest Stable Version](https://camo.githubusercontent.com/b697816717ff10e383b833f82319036e05c13c53af0b53119510f799411db137/68747470733a2f2f706f7365722e707567782e6f72672f68727976696e736b79692f6d6167656e746f322d686561642d7461672d6d616e616765722f762f737461626c65)](https://packagist.org/packages/hryvinskyi/magento2-head-tag-manager)[![Total Downloads](https://camo.githubusercontent.com/e2a2df4b8bb31a1e2645582d2beab042d5e013db8a015504510f00384abf7176/68747470733a2f2f706f7365722e707567782e6f72672f68727976696e736b79692f6d6167656e746f322d686561642d7461672d6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/hryvinskyi/magento2-head-tag-manager)[![License](https://camo.githubusercontent.com/41faadcad3985607539764c8dabda02486458599706b93f88823f538cfa1e3eb/68747470733a2f2f706f7365722e707567782e6f72672f68727976696e736b79692f6d6167656e746f322d686561642d7461672d6d616e616765722f6c6963656e7365)](https://packagist.org/packages/hryvinskyi/magento2-head-tag-manager)

This module provides a robust solution for managing HTML head elements in Adobe Commerce / Magento 2 applications. This module allows you to dynamically add, modify, and render various HTML head elements like meta tags, stylesheets, scripts, and other elements.

### Features:

[](#features)

- **CSP Compatible**: Full support for Magento Content Security Policy
- **Performance Optimized**: Efficient element management and rendering

### Key Features

[](#key-features)

- Add preconnect and prefetch links
- Add link elements (stylesheets, canonical, etc.)
- Add inline and external scripts with CSP support
- Add inline styles with CSP support

Installation
------------

[](#installation)

### Composer Installation

[](#composer-installation)

```
composer require hryvinskyi/magento2-head-tag-manager
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
```

### Manual Installation

[](#manual-installation)

1. Create directory `app/code/Hryvinskyi/HeadTagManager`
2. Download and extract module contents to this directory
3. Enable the module:
4.

```
bin/magento module:enable Hryvinskyi_HeadTagManager
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:clean
```

Usage
-----

[](#usage)

### Via ViewModel

[](#via-viewmodel)

```

        Hryvinskyi\HeadTagManager\ViewModel\HeadTagManagerViewModel

```

```
