Official Facebook Pixel - Version 3.0.8

Version Description

Download this release

Release Info

Developer Facebook
Plugin Icon Official Facebook Pixel
Version 3.0.8
Comparing to
See all releases

Code changes from version 3.0.7 to 3.0.8

Files changed (34) hide show
  1. core/FacebookPluginConfig.php +1 -1
  2. core/FacebookPluginUtils.php +1 -0
  3. core/FacebookWordpressOpenBridge.php +84 -11
  4. facebook-for-wordpress.php +2 -2
  5. languages/official-facebook-pixel-ar_AR.po +1 -1
  6. languages/official-facebook-pixel-cs_CZ.po +1 -1
  7. languages/official-facebook-pixel-da_DK.po +1 -1
  8. languages/official-facebook-pixel-de_DE.po +1 -1
  9. languages/official-facebook-pixel-en_GB.po +1 -1
  10. languages/official-facebook-pixel-es_ES.po +1 -1
  11. languages/official-facebook-pixel-es_LA.po +1 -1
  12. languages/official-facebook-pixel-fi_FI.po +1 -1
  13. languages/official-facebook-pixel-fr_CA.po +1 -1
  14. languages/official-facebook-pixel-fr_FR.po +1 -1
  15. languages/official-facebook-pixel-he_IL.po +1 -1
  16. languages/official-facebook-pixel-it_IT.po +1 -1
  17. languages/official-facebook-pixel-ja_JP.po +1 -1
  18. languages/official-facebook-pixel-ko_KR.po +1 -1
  19. languages/official-facebook-pixel-nb_NO.po +1 -1
  20. languages/official-facebook-pixel-nl_NL.po +1 -1
  21. languages/official-facebook-pixel-pl_PL.po +1 -1
  22. languages/official-facebook-pixel-pt_BR.po +1 -1
  23. languages/official-facebook-pixel-pt_PT.po +1 -1
  24. languages/official-facebook-pixel-ru_RU.po +1 -1
  25. languages/official-facebook-pixel-sv_SE.po +1 -1
  26. languages/official-facebook-pixel-th_TH.po +1 -1
  27. languages/official-facebook-pixel-tr_TR.po +1 -1
  28. languages/official-facebook-pixel-vi_VN.po +1 -1
  29. languages/official-facebook-pixel-zh_CN.po +1 -1
  30. languages/official-facebook-pixel-zh_TW.po +1 -1
  31. readme.txt +19 -18
  32. vendor/autoload.php +1 -1
  33. vendor/composer/autoload_real.php +4 -4
  34. vendor/composer/autoload_static.php +4 -4
core/FacebookPluginConfig.php CHANGED
@@ -20,7 +20,7 @@ namespace FacebookPixelPlugin\Core;
20
  defined('ABSPATH') or die('Direct access not allowed');
21
 
22
  class FacebookPluginConfig {
23
- const PLUGIN_VERSION = '3.0.7';
24
  const SOURCE = 'wordpress';
25
  const TEXT_DOMAIN = 'official-facebook-pixel';
26
  const PLUGIN_NAME = 'Meta for WordPress';
20
  defined('ABSPATH') or die('Direct access not allowed');
21
 
22
  class FacebookPluginConfig {
23
+ const PLUGIN_VERSION = '3.0.8';
24
  const SOURCE = 'wordpress';
25
  const TEXT_DOMAIN = 'official-facebook-pixel';
26
  const PLUGIN_NAME = 'Meta for WordPress';
core/FacebookPluginUtils.php CHANGED
@@ -44,6 +44,7 @@ class FacebookPluginUtils {
44
  'email' => $current_user->user_email,
45
  'first_name' => $current_user->user_firstname,
46
  'last_name' => $current_user->user_lastname,
 
47
  );
48
  }
49
 
44
  'email' => $current_user->user_email,
45
  'first_name' => $current_user->user_firstname,
46
  'last_name' => $current_user->user_lastname,
47
+ 'id' => $current_user->ID,
48
  );
49
  }
50
 
core/FacebookWordpressOpenBridge.php CHANGED
@@ -17,12 +17,15 @@
17
 
18
  namespace FacebookPixelPlugin\Core;
19
 
 
20
  use FacebookPixelPlugin\Core\ServerEventFactory;
21
  use FacebookPixelPlugin\Core\FacebookServerSideEvent;
22
 
23
  defined('ABSPATH') or die('Direct access not allowed');
24
 
25
  class FacebookWordpressOpenBridge {
 
 
26
 
27
  private static $instance = null;
28
  private static $blocked_events = array('Microdata');
@@ -54,21 +57,91 @@ class FacebookWordpressOpenBridge {
54
  FacebookServerSideEvent::getInstance()->track($server_event, true);
55
  }
56
 
57
- public function extractFromDatabag($data){
58
- $event_data = FacebookPluginUtils::getLoggedInUserInfo();
59
 
60
- $custom_data = $data['custom_data'];
61
- foreach ($custom_data as $key => $value) {
62
- if(is_array($value)) continue;
63
- $event_data[$key] = $value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  }
 
 
65
 
66
- $matching_data = $data['fb.advanced_matching'];
67
- foreach ($matching_data as $key => $value) {
68
- if(is_array($value)) continue;
69
- $event_data[$key] = $value;
70
  }
71
- return $event_data;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
17
 
18
  namespace FacebookPixelPlugin\Core;
19
 
20
+ use FacebookPixelPlugin\Core\AAMSettingsFields;
21
  use FacebookPixelPlugin\Core\ServerEventFactory;
22
  use FacebookPixelPlugin\Core\FacebookServerSideEvent;
23
 
24
  defined('ABSPATH') or die('Direct access not allowed');
25
 
26
  class FacebookWordpressOpenBridge {
27
+ const ADVANCED_MATCHING_LABEL = 'fb.advanced_matching';
28
+ const CUSTOM_DATA_LABEL = 'custom_data';
29
 
30
  private static $instance = null;
31
  private static $blocked_events = array('Microdata');
57
  FacebookServerSideEvent::getInstance()->track($server_event, true);
58
  }
59
 
60
+ public function extractFromDatabag($databag){
61
+ $current_user = FacebookPluginUtils::getLoggedInUserInfo();
62
 
63
+ $event_data = array(
64
+ # user data
65
+ 'email' => self::getEmail($current_user, $databag),
66
+ 'first_name' => self::getFirstName($current_user, $databag),
67
+ 'last_name' => self::getLastName($current_user, $databag),
68
+ 'external_id' => self::getExternalID($current_user, $databag),
69
+ 'phone' => self::getAAMField(AAMSettingsFields::PHONE, $databag),
70
+ 'state' => self::getAAMField(AAMSettingsFields::STATE, $databag),
71
+ 'country' => self::getAAMField(AAMSettingsFields::COUNTRY,$databag),
72
+ 'city' => self::getAAMField(AAMSettingsFields::CITY, $databag),
73
+ 'zip' => self::getAAMField(AAMSettingsFields::ZIP_CODE, $databag),
74
+ 'gender' => self::getAAMField(AAMSettingsFields::GENDER, $databag),
75
+ 'date_of_birth' =>
76
+ self::getAAMField(AAMSettingsFields::DATE_OF_BIRTH, $databag),
77
+
78
+ # custom data
79
+ 'currency' => self::getCustomData('currency', $databag),
80
+ 'value' => self::getCustomData('value', $databag),
81
+ 'content_type' => self::getCustomData('content_type', $databag),
82
+ 'content_name' => self::getCustomData('content_name', $databag),
83
+ 'content_ids' => self::getCustomDataArray('content_ids', $databag),
84
+ 'content_category' =>
85
+ self::getCustomData('content_category', $databag),
86
+ );
87
+ return $event_data;
88
+ }
89
+
90
+ private static function getEmail($current_user_data, $pixel_data){
91
+ if($current_user_data['email']){
92
+ return $current_user_data['email'];
93
  }
94
+ return self::getAAMField(AAMSettingsFields::EMAIL, $pixel_data);
95
+ }
96
 
97
+ private static function getFirstName($current_user_data, $pixel_data){
98
+ if($current_user_data['first_name']){
99
+ return $current_user_data['first_name'];
 
100
  }
101
+ return self::getAAMField(AAMSettingsFields::FIRST_NAME, $pixel_data);
102
+ }
103
+
104
+ private static function getLastName($current_user_data, $pixel_data){
105
+ if($current_user_data['last_name']){
106
+ return $current_user_data['last_name'];
107
+ }
108
+ return self::getAAMField(AAMSettingsFields::LAST_NAME, $pixel_data);
109
+ }
110
+
111
+ private static function getExternalID($current_user_data, $pixel_data){
112
+ if($current_user_data['id']){
113
+ return (string) $current_user_data['id'];
114
+ }
115
+ return self::getAAMField(AAMSettingsFields::EXTERNAL_ID, $pixel_data);
116
  }
117
 
118
+ private static function getAAMField($key, $pixel_data){
119
+ if(!array_key_exists(self::ADVANCED_MATCHING_LABEL, $pixel_data)){
120
+ return '';
121
+ }
122
+ if(array_key_exists($key, $pixel_data[self::ADVANCED_MATCHING_LABEL])){
123
+ return $pixel_data[self::ADVANCED_MATCHING_LABEL][$key];
124
+ }
125
+ return '';
126
+ }
127
+
128
+ private static function getCustomData($key, $pixel_data){
129
+ if(!array_key_exists(self::CUSTOM_DATA_LABEL, $pixel_data)){
130
+ return '';
131
+ }
132
+ if(array_key_exists($key, $pixel_data[self::CUSTOM_DATA_LABEL])){
133
+ return $pixel_data[self::CUSTOM_DATA_LABEL][$key];
134
+ }
135
+ return '';
136
+ }
137
+
138
+ private static function getCustomDataArray($key, $pixel_data){
139
+ if(!array_key_exists(self::CUSTOM_DATA_LABEL, $pixel_data)){
140
+ return '';
141
+ }
142
+ if(array_key_exists($key, $pixel_data[self::CUSTOM_DATA_LABEL])){
143
+ return $pixel_data[self::CUSTOM_DATA_LABEL][$key];
144
+ }
145
+ return [];
146
+ }
147
  }
facebook-for-wordpress.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /**
3
- * Plugin Name: Facebook for WordPress
4
  * Plugin URI: https://www.facebook.com/business/help/881403525362441
5
  * Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
6
  * Author: Facebook
7
  * Author URI: https://www.facebook.com/
8
- * Version: 3.0.7
9
  * Text Domain: official-facebook-pixel
10
  */
11
 
1
  <?php
2
  /**
3
+ * Plugin Name: Meta pixel for WordPress
4
  * Plugin URI: https://www.facebook.com/business/help/881403525362441
5
  * Description: <strong><em>***ATTENTION: After upgrade the plugin may be deactivated due to a known issue, to workaround please refresh this page and activate plugin.***</em></strong> The Facebook pixel is an analytics tool that helps you measure the effectiveness of your advertising. You can use the Facebook pixel to understand the actions people are taking on your website and reach audiences you care about.
6
  * Author: Facebook
7
  * Author URI: https://www.facebook.com/
8
+ * Version: 3.0.8
9
  * Text Domain: official-facebook-pixel
10
  */
11
 
languages/official-facebook-pixel-ar_AR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-cs_CZ.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-da_DK.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-de_DE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-en_GB.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-es_ES.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-es_LA.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fi_FI.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fr_CA.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-fr_FR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-he_IL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-it_IT.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ja_JP.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ko_KR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-nb_NO.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-nl_NL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pl_PL.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pt_BR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-pt_PT.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-ru_RU.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-sv_SE.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-th_TH.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
7
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
8
  "PO-Revision-Date: 2018-11-28 17:37-0800\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-pixel\n"
7
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
8
  "PO-Revision-Date: 2018-11-28 17:37-0800\n"
languages/official-facebook-pixel-tr_TR.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-vi_VN.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-zh_CN.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
languages/official-facebook-pixel-zh_TW.po CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Facebook for WordPress 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
2
  # This file is distributed under the same license as the Facebook Pixel package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Facebook for WordPress 3.0.8\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/official-facebook-"
7
  "pixel\n"
8
  "POT-Creation-Date: 2018-11-29 01:26:28+00:00\n"
readme.txt CHANGED
@@ -1,29 +1,21 @@
1
- === Facebook for WordPress ===
2
  Contributors: facebook
3
- Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, Conversions API, facebook retargeting, facebook standard events
4
  Requires at least: 4.4
5
- Tested up to: 5.7
6
  Requires PHP: 5.6
7
- Stable tag: 3.0.6
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Grow your business with Facebook for WordPress!
12
 
13
  == Description ==
14
- This plugin will install a Facebook Pixel for your page so you can capture the actions people take when they interact with your page, such as Lead, ViewContent, AddToCart, InitiateCheckout and Purchase events. It also includes support for the Conversions API, which lets you send events directly from your page's server so you can capture a more of these events when they happen. This can help you better understand your customer's journey from the moment they show interest in your business to the moment they complete a conversion. You can use this information to create ad campaigns that are relevant to your audience. [Learn More](https://www.facebook.com/business/learn/facebook-ads-pixel)
15
-
16
- This plugin includes built-in support for these other WordPress plugins:
17
- * Caldera Forms
18
- * Contact Form 7
19
- * Easy Digital Downloads
20
- * Formidable Forms
21
- * Gravity Forms
22
- * MailChimp for WordPress
23
- * Ninja Forms
24
- * WP eCommerce
25
- * WPForms
26
- * WooCommerce
27
 
28
  == Installation ==
29
  __To install from your WordPress site__ <br />
@@ -62,6 +54,15 @@ If you get stuck, or have any questions, you can ask for help in the [Facebook f
62
  Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
63
 
64
  == Changelog ==
 
 
 
 
 
 
 
 
 
65
  = 2021-08-30 version 3.0.6 =
66
  * Update Facebook Business SDK to v11.0.0
67
 
1
+ === Meta pixel for WordPress ===
2
  Contributors: facebook
3
+ Tags: Facebook, Facebook Conversion Pixel, Facebook Pixel, Facebook Pixel Events, Conversions API, facebook retargeting, facebook standard events, Meta, Meta pixel, Meta Conversion API,
4
  Requires at least: 4.4
5
+ Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 3.0.7
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Grow your business with Meta for WordPress!
12
 
13
  == Description ==
14
+ This plugin will install a Meta Pixel for your page so you can capture the actions people take when they interact with your page, such as Lead, ViewContent, AddToCart, InitiateCheckout and Purchase events. It also includes support for the Conversions API.
15
+
16
+ You’ll be able to see when customers took an action after seeing your ad on Facebook and Instagram, which can help you with retargeting. And when you use the Conversions API alongside the Pixel, it creates a more reliable connection that helps the delivery system decrease your costs. [Learn More](https://www.facebook.com/business/learn/facebook-ads-pixel)
17
+
18
+ The Conversions API is designed to create a direct connection between your marketing data and the Meta systems, which help optimise ad targeting, decrease cost per action and measure results across Meta technologies. [Learn More](https://www.facebook.com/business/help/2041148702652965?id=818859032317965)
 
 
 
 
 
 
 
 
19
 
20
  == Installation ==
21
  __To install from your WordPress site__ <br />
54
  Of course! This plugin is open sourced on the Facebook Incubator GitHub. You can find the code and contribution instructions in the [plugin repository](https://github.com/facebookincubator/Facebook-Pixel-for-WordPress).
55
 
56
  == Changelog ==
57
+ = 2022-10-31 version 3.0.8 =
58
+ * Fix PII drop when converting Pixel payload to Conversion API payload
59
+ * Rebranded the extension from Facebook pixel to Meta pixel
60
+
61
+ = 2022-08-02 version 3.0.7 =
62
+ * Update Facebook Business SDK to v12.0.0
63
+ * Added the ability to send website events using conversion API and OpenBridge Javascript. This can be enabled/disabled from the settings page.
64
+ * Added ads metrics and insights on the settings page.
65
+
66
  = 2021-08-30 version 3.0.6 =
67
  * Update Facebook Business SDK to v11.0.0
68
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit53e54b384034241419d8bbb9e91ca2a1::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitfa4a96d0ee0e82a82184cb57fed1c535::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit53e54b384034241419d8bbb9e91ca2a1
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit53e54b384034241419d8bbb9e91ca2a1
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit53e54b384034241419d8bbb9e91ca2a1', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit53e54b384034241419d8bbb9e91ca2a1', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit53e54b384034241419d8bbb9e91ca2a1::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitfa4a96d0ee0e82a82184cb57fed1c535
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitfa4a96d0ee0e82a82184cb57fed1c535', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitfa4a96d0ee0e82a82184cb57fed1c535', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitfa4a96d0ee0e82a82184cb57fed1c535::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit53e54b384034241419d8bbb9e91ca2a1
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'F' =>
@@ -42,9 +42,9 @@ class ComposerStaticInit53e54b384034241419d8bbb9e91ca2a1
42
  public static function getInitializer(ClassLoader $loader)
43
  {
44
  return \Closure::bind(function () use ($loader) {
45
- $loader->prefixLengthsPsr4 = ComposerStaticInit53e54b384034241419d8bbb9e91ca2a1::$prefixLengthsPsr4;
46
- $loader->prefixDirsPsr4 = ComposerStaticInit53e54b384034241419d8bbb9e91ca2a1::$prefixDirsPsr4;
47
- $loader->classMap = ComposerStaticInit53e54b384034241419d8bbb9e91ca2a1::$classMap;
48
 
49
  }, null, ClassLoader::class);
50
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitfa4a96d0ee0e82a82184cb57fed1c535
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'F' =>
42
  public static function getInitializer(ClassLoader $loader)
43
  {
44
  return \Closure::bind(function () use ($loader) {
45
+ $loader->prefixLengthsPsr4 = ComposerStaticInitfa4a96d0ee0e82a82184cb57fed1c535::$prefixLengthsPsr4;
46
+ $loader->prefixDirsPsr4 = ComposerStaticInitfa4a96d0ee0e82a82184cb57fed1c535::$prefixDirsPsr4;
47
+ $loader->classMap = ComposerStaticInitfa4a96d0ee0e82a82184cb57fed1c535::$classMap;
48
 
49
  }, null, ClassLoader::class);
50
  }