Title: GDPR Visitor Consent
Author: noraconley
Published: <strong>19 ژوئن 2018</strong>
Last modified: 15 ژانویه 2022

---

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

![](https://ps.w.org/gdpr-visitor-consent/assets/banner-772x250.png?rev=1895446)

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://ps.w.org/gdpr-visitor-consent/assets/icon-256x256.png?rev=1895446)

# GDPR Visitor Consent

 توسط [noraconley](https://profiles.wordpress.org/noraconley/)

[دانلود](https://downloads.wordpress.org/plugin/gdpr-visitor-consent.1.1.4.zip)

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

 [پشتیبانی](https://wordpress.org/support/plugin/gdpr-visitor-consent/)

## توضیحات

Allow users to have control of what scripts are loaded.

Scripts are grouped together (Required, Marketing, Analytics, etc). You can also
lock a group, so that a user cannot disable a script within that group (think WordPress
or Stripe cookies).

We strongly encourage you to perform an audit of you site to find out what scripts
may be tracking users. Scripts that track users could include such things as: analytics
scripts, CRM scripts, tracking pixels, and more.

Use the shortcode `[gdpr_visitor_consent]` to create a user preferences page. Using
this shortcode, a user can change their GDPR preferences at a later date.

### Developer API

You can add your script in a dropdown in the admin screen using the filter `gdprvc_third_party_script(
$scripts );`

**Example (PHP):**

    ```
    function add_third_party_script( $scripts ) {

        $scripts[] = array(
            'slug'  => 'third-party-script',
            'label' => 'Script Label',
        );

        return $scripts;

    }
    add_filter( 'gdprvc_third_party_scripts', 'add_third_party_script', 10, 1 );
    ```

_You can then use the JavaScript API in the browser to control your scripts on the
front-end_

**Example (JavaScript):**

    ```
    window.gdprvc_is_accepted( 'slug' );

    // returns true/false
    ```

You can also use our helper function to parse your script containing `<script>` 
and `<img>` tags. This will automatically place your JavaScript in a conditional
and remove `src` attributes until a user has consented.

**Example (PHP):**

    ```
    add_action( 'wp_head', 'your_wp_head' );

    function your_wp_head() {
        // Check for GDPR Visitor Consent Plugin
        if ( function_exists( 'gdprvc_parse_script' ) ) {
            echo gdprvc_parse_script( 'your script as a string', 'slug' );
            return;
        }
        // Echo normally if plugin is not active
        echo 'your script as a string';
    }
    ```

### Browser Compatibility

**Chrome**
 ✓ Admin Editing ✓ Front-end functionality ✓ Front-end styles

**Firefox**
 ✓ Admin Editing ✓ Front-end functionality ✓ Front-end styles

**Safari**
 ✓ Admin Editing ✓ Front-end functionality ✓ Front-end styles

**Edge**
 ✓ Admin Editing ✓ Front-end functionality ✓ Front-end styles

**IE11**
 ✘ Admin Editing ✓ Front-end functionality ✓ Front-end styles

**IE10**
 ✘ Admin Editing ✓ Front-end functionality ✘ Front-end styles

**IE9**
 ✘ Admin Editing ✓ Front-end functionality ✘ Front-end styles

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

[⌊The front-end screen a user sees to configure their preferences.⌉⌊The front-end
screen a user sees to configure their preferences.⌉[

The front-end screen a user sees to configure their preferences.

[⌊The user preferences as a shortcode, embedded into a page.⌉⌊The user preferences
as a shortcode, embedded into a page.⌉[

The user preferences as a shortcode, embedded into a page.

[⌊The admin script editing interface.⌉⌊The admin script editing interface.⌉[

The admin script editing interface.

[⌊The admin script editing interface.⌉⌊The admin script editing interface.⌉[

The admin script editing interface.

## نصب

 1. Upload `gdpr-visitor-consent.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Navigate to ‘GDPR Visitor Consent’ in the sidebar and configure your scripts
 4. Switch the banner to active in ‘Other Settings’ and Save!

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

### Does this plugin control scripts from other plugins?

GDPR Visitor Consent provides an API for third-party developers to integrate their
scripts into this plugin.

### What happens if I add a new script after I have already published my scripts?

Simply check “Force users to re-consent” before saving your scripts. This will force
users who have already saved their preferences to opt-in to your new scripts. Re-
consenting still loads a user’s previous preferences.

### Will this work with page caching?

As of version 1.1.0, yes! GDPR Visitor Consent is JavaScript-based and uses the 
localStorage API.

### What html tags are supported?

You may insert `<script>` tags and `<img>` tags. Sometimes, `<img>` tags are surrounded
by `<noscript>`. This works, too.

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

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

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

“GDPR Visitor Consent” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

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

 *   [ noraconley ](https://profiles.wordpress.org/noraconley/)
 *   [ Brandon Dove ](https://profiles.wordpress.org/brandondove/)
 *   [ Jeffrey Zinn ](https://profiles.wordpress.org/jeffreyzinn/)

[ترجمه “GDPR Visitor Consent” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/gdpr-visitor-consent)

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

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

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

#### 1.0.0

 * Initial Launch

#### 1.1.0

 * Significant updates to the core functionality of the plugin. This plugin now 
   uses localStorage instead of a cookie, in order to work when page caching is 
   enabled.
 * Breaking changes to the Developer API

#### 1.1.1

 * Adds in a missing file causing fatal error for some users.

#### 1.1.2

 * Fixes an error in the display of shortcodes.

#### 1.1.3

 * Prevents errors if there are no scripts added to a group

#### 1.1.4

 * Streamlines JavaScript polyfills

## اطلاعات

 *  نگارش **1.1.4**
 *  آخرین به‌روزرسانی **5 سال پیش**
 *  نصب‌های فعال **10+**
 *  نگارش وردپرس ** 3.9 یا بالاتر **
 *  آزمایش‌شده تا **5.8.18**
 *  نگارش PHP ** 5.6 یا بالاتر **
 *  زبان
 * [English (US)](https://wordpress.org/plugins/gdpr-visitor-consent/)
 * برچسب
 * [GDPR](https://fa.wordpress.org/plugins/tags/gdpr/)[privacy](https://fa.wordpress.org/plugins/tags/privacy/)
   [scripts](https://fa.wordpress.org/plugins/tags/scripts/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/gdpr-visitor-consent/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[بررسی شما](https://wordpress.org/support/plugin/gdpr-visitor-consent/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/gdpr-visitor-consent/reviews/)

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

 *   [ noraconley ](https://profiles.wordpress.org/noraconley/)
 *   [ Brandon Dove ](https://profiles.wordpress.org/brandondove/)
 *   [ Jeffrey Zinn ](https://profiles.wordpress.org/jeffreyzinn/)

## پشتیبانی

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

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/gdpr-visitor-consent/)