Title: Scripts + Pixels DataLayer Manager
Author: Scripts + Pixels Studio
Published: <strong>مارچ 19, 2026</strong>
Last modified: جولای 3, 2026

---

جستجوی افزونه‌ها

![](https://ps.w.org/scripts-and-pixels-datalayer-manager/assets/banner-772x250.
png?rev=3499470)

![](https://ps.w.org/scripts-and-pixels-datalayer-manager/assets/icon-256x256.png?
rev=3499470)

# Scripts + Pixels DataLayer Manager

 توسط [Scripts + Pixels Studio](https://profiles.wordpress.org/darinnj/)

[دانلود](https://downloads.wordpress.org/plugin/scripts-and-pixels-datalayer-manager.1.0.2.zip)

 * [جزئیات](https://fa-af.wordpress.org/plugins/scripts-and-pixels-datalayer-manager/#description)
 * [نقد و بررسی‌ها](https://fa-af.wordpress.org/plugins/scripts-and-pixels-datalayer-manager/#reviews)
 *  [نصب](https://fa-af.wordpress.org/plugins/scripts-and-pixels-datalayer-manager/#installation)
 * [توسعه](https://fa-af.wordpress.org/plugins/scripts-and-pixels-datalayer-manager/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/scripts-and-pixels-datalayer-manager/)

## توضیحات

Scripts + Pixels DataLayer Manager automatically creates and manages a dataLayer
object for your WordPress site. This object contains structured data about your 
pages, posts, products, and user interactions that can be used by analytics tools
like Google Tag Manager (GTM) and Google Analytics 4 (GA4).

**No coding required!** The plugin automatically detects WordPress and WooCommerce
data and injects it into the dataLayer on every page.

#### Key Features

 * **Automatic Detection** – Automatically detects page type, post data, categories,
   tags, and more
 * **WooCommerce Support** – Detects product data, pricing, cart information, and
   checkout details
 * **Zero Configuration** – Works out of the box with no setup required
 * **Clean Code** – Follows WordPress coding standards and best practices
 * **Developer Friendly** – Well-documented code and extensible hooks

#### How It Works

 1. Install and activate the plugin
 2. Visit any page on your website
 3. Open browser Developer Tools (F12)
 4. Type `dataLayer` in the console
 5. See all automatically detected variables!

#### WordPress Variables

The plugin automatically detects and injects variables like:

 * `pageType` – Type of page (post, page, category, tag, archive, search, 404, etc.)
 * `postId` – Post/Page ID
 * `postTitle` – Post/Page title
 * `postAuthor` – Author name
 * `postCategory` – Post categories
 * `postTags` – Post tags
 * `isLoggedIn` – Whether user is logged in
 * `siteName` – Site name
 * `siteUrl` – Site URL
 * And more…

#### WooCommerce Variables

When WooCommerce is active, additional variables are automatically detected:

 * `productId` – Product ID
 * `productName` – Product name
 * `productPrice` – Product price
 * `productQuantity` – Product quantity
 * `cartTotal` – Cart total
 * `checkoutStep` – Checkout step
 * And more…

#### Free vs Premium

**Free Version Includes:**
 * Automatic detection of WordPress and WooCommerce variables*
Works on all page types (posts, pages, products, archives, etc.) * Zero configuration
required

**Premium Version Adds:**
 * Custom variables per page/post/product * Visual editor
in WordPress admin * Preview auto-detected variables before publishing * Priority
support and updates

## عکس‌های صفحه

[⌊Overview screen showing auto-detection status⌉⌊Overview screen showing auto-detection
status⌉[

Overview screen showing auto-detection status

[⌊Auto-detected variables documentation⌉⌊Auto-detected variables documentation⌉[

Auto-detected variables documentation

## نصب

 1. Upload the plugin files to the `/wp-content/plugins/scripts-and-pixels-datalayer-
    manager` directory, or install the plugin through the WordPress plugins screen 
    directly
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Visit any page on your website and check the browser console for `dataLayer` variables

## سوالات متداول

### Does this work with Google Tag Manager?

Yes! The plugin creates a `dataLayer` object that is compatible with Google Tag 
Manager and Google Analytics 4.

### Do I need to configure anything?

No configuration is required. The plugin automatically detects and injects variables
on all pages.

### Does this work with WooCommerce?

Yes! When WooCommerce is active, the plugin automatically detects product, cart,
and checkout data.

### Can I add custom variables?

Custom variables per page are available in the premium version. The free version
includes automatic detection of WordPress and WooCommerce variables.

### Where can I see the dataLayer variables?

Open your browser’s Developer Tools (F12), go to the Console tab, and type `dataLayer`.
You’ll see all the automatically detected variables.

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“Scripts + Pixels DataLayer Manager” نرم افزار متن باز است. افراد زیر در این افزونه
مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Scripts + Pixels Studio ](https://profiles.wordpress.org/darinnj/)

[ترجمه “Scripts + Pixels DataLayer Manager” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/scripts-and-pixels-datalayer-manager)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/scripts-and-pixels-datalayer-manager/),
را بررسی کنید [مخزن SVN](https://plugins.svn.wordpress.org/scripts-and-pixels-datalayer-manager/),
یا مشترک شوید [گزارش توسعه](https://plugins.trac.wordpress.org/log/scripts-and-pixels-datalayer-manager/)
توسط [RSS](https://plugins.trac.wordpress.org/log/scripts-and-pixels-datalayer-manager/?limit=100&mode=stop_on_copy&format=rss).

## گزارش تغییرات

#### 1.0.2

 * Add plugin screenshots for the WordPress.org directory listing.

#### 1.0.1

 * Readme updates for the WordPress.org plugin directory.

#### 1.0.0

 * Initial release
 * Automatic detection of WordPress variables
 * WooCommerce support
 * Admin interface for viewing status and documentation
 * Meta box for viewing auto-detected variables

## اطلاعات

 *  Version **1.0.2**
 *  Last updated **1 ماه پیش**
 *  Active installations **کمتر از 10**
 *  WordPress version ** 5.0 یا بالاتر **
 *  Tested up to **6.9.5**
 *  PHP version ** 7.4 یا بالاتر **
 *  Language
 * [English (US)](https://wordpress.org/plugins/scripts-and-pixels-datalayer-manager/)
 * Tags
 * [analytics](https://fa-af.wordpress.org/plugins/tags/analytics/)[datalayer](https://fa-af.wordpress.org/plugins/tags/datalayer/)
   [google tag manager](https://fa-af.wordpress.org/plugins/tags/google-tag-manager/)
   [tracking](https://fa-af.wordpress.org/plugins/tags/tracking/)[woocommerce](https://fa-af.wordpress.org/plugins/tags/woocommerce/)
 *  [نمایش پیشرفته](https://fa-af.wordpress.org/plugins/scripts-and-pixels-datalayer-manager/advanced/)

## امتیازها

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/scripts-and-pixels-datalayer-manager/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/scripts-and-pixels-datalayer-manager/reviews/)

## مشارکت کنندگان

 *   [ Scripts + Pixels Studio ](https://profiles.wordpress.org/darinnj/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/scripts-and-pixels-datalayer-manager/)