Version Description
Download this release
Release Info
Developer | PixelYourSite |
Plugin | PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) |
Version | 8.1.0 |
Comparing to | |
See all releases |
Code changes from version 8.0.9 to 8.1.0
- dist/scripts/public.js +1 -1
- dist/styles/admin.css +15 -0
- facebook-pixel-master.php +1 -1
- includes/class-events-manager.php +3 -4
- includes/class-settings.php +25 -0
- includes/functions-admin.php +60 -1
- includes/views/html-main-edd.php +99 -95
- includes/views/html-main-general.php +155 -131
- includes/views/html-main-woo.php +35 -32
- modules/bing/bing.php +2 -2
- modules/facebook/facebook.php +7 -0
- modules/facebook/options_defaults.json +2 -1
- modules/facebook/options_fields.json +2 -1
- modules/facebook/views/html-settings.php +8 -0
- modules/pinterest/pinterest.php +2 -2
- pixelyoursite.php +1 -1
- readme.txt +9 -5
dist/scripts/public.js
CHANGED
@@ -329,7 +329,7 @@ if (!Array.prototype.includes) {
|
|
329 |
|
330 |
// Non-default binding used to avoid situations when some code in external js
|
331 |
// stopping events propagation, eg. returns false, and our handler will never called
|
332 |
-
$(triggers.join(',')
|
333 |
Utils.fireTriggerEvent(eventId);
|
334 |
});
|
335 |
},
|
329 |
|
330 |
// Non-default binding used to avoid situations when some code in external js
|
331 |
// stopping events propagation, eg. returns false, and our handler will never called
|
332 |
+
$(document).onFirst('click', triggers.join(','), function () {
|
333 |
Utils.fireTriggerEvent(eventId);
|
334 |
});
|
335 |
},
|
dist/styles/admin.css
CHANGED
@@ -9,3 +9,18 @@
|
|
9 |
.card-header.has_switch .card-collapse {
|
10 |
padding-top:8px;
|
11 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
.card-header.has_switch .card-collapse {
|
10 |
padding-top:8px;
|
11 |
}
|
12 |
+
#pys .plate {
|
13 |
+
background: #F8F8F8;
|
14 |
+
padding: 0 1rem;
|
15 |
+
}
|
16 |
+
|
17 |
+
#pys .settings_content {
|
18 |
+
display: none;
|
19 |
+
}
|
20 |
+
#pys #bing_settings_switch:checked + .settings_content,
|
21 |
+
#pys #pin_settings_switch:checked + .settings_content,
|
22 |
+
#pys #gads_settings_switch:checked + .settings_content,
|
23 |
+
#pys #gan_settings_switch:checked + .settings_content,
|
24 |
+
#pys #fb_settings_switch:checked + .settings_content {
|
25 |
+
display: block;
|
26 |
+
}
|
facebook-pixel-master.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: PixelYourSite
|
5 |
* Plugin URI: http://www.pixelyoursite.com/
|
6 |
* Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Signal event, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff. Facebook Conversion API (CAPI) support.
|
7 |
-
* Version: 8.0
|
8 |
* Author: PixelYourSite
|
9 |
* Author URI: http://www.pixelyoursite.com
|
10 |
* License: GPLv3
|
4 |
* Plugin Name: PixelYourSite
|
5 |
* Plugin URI: http://www.pixelyoursite.com/
|
6 |
* Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Signal event, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff. Facebook Conversion API (CAPI) support.
|
7 |
+
* Version: 8.1.0
|
8 |
* Author: PixelYourSite
|
9 |
* Author URI: http://www.pixelyoursite.com
|
10 |
* License: GPLv3
|
includes/class-events-manager.php
CHANGED
@@ -274,10 +274,9 @@ class EventsManager {
|
|
274 |
}
|
275 |
|
276 |
$eventData = $child->getData();
|
277 |
-
|
278 |
-
// send only for FB Server events
|
279 |
if($pixel->getSlug() == "facebook" &&
|
280 |
-
($event->getId() == "
|
281 |
Facebook()->isServerApiEnabled() &&
|
282 |
Facebook()->getOption("woo_complete_registration_send_from_server") &&
|
283 |
!$this->isGdprPluginEnabled() )
|
@@ -306,7 +305,7 @@ class EventsManager {
|
|
306 |
|
307 |
// send only for FB Server events
|
308 |
if($pixel->getSlug() == "facebook" &&
|
309 |
-
($event->getId() == "
|
310 |
Facebook()->isServerApiEnabled() &&
|
311 |
Facebook()->getOption("woo_complete_registration_send_from_server") &&
|
312 |
!$this->isGdprPluginEnabled() )
|
274 |
}
|
275 |
|
276 |
$eventData = $child->getData();
|
277 |
+
// send only for FB Server events
|
|
|
278 |
if($pixel->getSlug() == "facebook" &&
|
279 |
+
($event->getId() == "woo_complete_registration") &&
|
280 |
Facebook()->isServerApiEnabled() &&
|
281 |
Facebook()->getOption("woo_complete_registration_send_from_server") &&
|
282 |
!$this->isGdprPluginEnabled() )
|
305 |
|
306 |
// send only for FB Server events
|
307 |
if($pixel->getSlug() == "facebook" &&
|
308 |
+
($event->getId() == "woo_complete_registration") &&
|
309 |
Facebook()->isServerApiEnabled() &&
|
310 |
Facebook()->getOption("woo_complete_registration_send_from_server") &&
|
311 |
!$this->isGdprPluginEnabled() )
|
includes/class-settings.php
CHANGED
@@ -753,6 +753,31 @@ abstract class Settings {
|
|
753 |
|
754 |
}
|
755 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
756 |
public function render_checkbox_input_array( $key, $label, $index = 0, $disabled = false ) {
|
757 |
|
758 |
$attr_name = "pys[$this->slug][$key][]";
|
753 |
|
754 |
}
|
755 |
|
756 |
+
/**
|
757 |
+
* Sanitize array field value
|
758 |
+
*
|
759 |
+
* @param $values
|
760 |
+
*
|
761 |
+
* @return array
|
762 |
+
*/
|
763 |
+
public function sanitize_array_textarea_field( $values ) {
|
764 |
+
|
765 |
+
$values = is_array( $values ) ? $values : array();
|
766 |
+
$sanitized = array();
|
767 |
+
|
768 |
+
foreach ( $values as $key => $value ) {
|
769 |
+
|
770 |
+
$new_value = $this->sanitize_textarea_field( $value );
|
771 |
+
|
772 |
+
if ( ! empty( $new_value ) && ! in_array( $new_value, $sanitized ) ) {
|
773 |
+
$sanitized[ $key ] = $new_value;
|
774 |
+
}
|
775 |
+
|
776 |
+
}
|
777 |
+
|
778 |
+
return $sanitized;
|
779 |
+
}
|
780 |
+
|
781 |
public function render_checkbox_input_array( $key, $label, $index = 0, $disabled = false ) {
|
782 |
|
783 |
$attr_name = "pys[$this->slug][$key][]";
|
includes/functions-admin.php
CHANGED
@@ -699,4 +699,63 @@ function renderSpBadge() {
|
|
699 |
|
700 |
function renderHfBadge() {
|
701 |
echo ' <a href="https://www.pixelyoursite.com/head-footer-scripts?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-head-footer" target="_blank" class="badge badge-pill badge-pro">Pro Feature <i class="fa fa-external-link" aria-hidden="true"></i></a>';
|
702 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
699 |
|
700 |
function renderHfBadge() {
|
701 |
echo ' <a href="https://www.pixelyoursite.com/head-footer-scripts?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-head-footer" target="_blank" class="badge badge-pill badge-pro">Pro Feature <i class="fa fa-external-link" aria-hidden="true"></i></a>';
|
702 |
+
}
|
703 |
+
|
704 |
+
function addMetaTagFields($pixel,$url) { ?>
|
705 |
+
<div class="row">
|
706 |
+
<div class="col-12">
|
707 |
+
<h4 class="label mb-3">Verify your domain:</h4>
|
708 |
+
<?php
|
709 |
+
$pixel->render_text_input_array_item('verify_meta_tag','Add the verification meta-tag there');
|
710 |
+
?>
|
711 |
+
<?php if(!empty($url)) : ?>
|
712 |
+
<small class="form-text"><a href="<?=$url?>" target="_blank">Learn how to verify your domain</a></small>
|
713 |
+
<?php endif; ?>
|
714 |
+
</div>
|
715 |
+
</div>
|
716 |
+
<hr>
|
717 |
+
<?php
|
718 |
+
$metaTags = (array) $pixel->getOption( 'verify_meta_tag' );
|
719 |
+
foreach ($metaTags as $index => $val) :
|
720 |
+
if($index == 0) continue; ?>
|
721 |
+
<div class="row">
|
722 |
+
<div class="col-10">
|
723 |
+
<?php
|
724 |
+
$pixel->render_text_input_array_item('verify_meta_tag','Add the verification meta-tag there',$index);
|
725 |
+
?>
|
726 |
+
</div>
|
727 |
+
<div class="col-2">
|
728 |
+
<button type="button" class="btn btn-sm remove-meta-row">
|
729 |
+
<i class="fa fa-trash-o" aria-hidden="true"></i>
|
730 |
+
</button>
|
731 |
+
</div>
|
732 |
+
</div>
|
733 |
+
<hr>
|
734 |
+
<?php
|
735 |
+
endforeach;
|
736 |
+
?>
|
737 |
+
<div class="row" id="pys_add_<?=$pixel->getSlug()?>_meta_tag_button_row">
|
738 |
+
<div class="col-12">
|
739 |
+
<button class="btn btn-sm btn-primary" type="button" id="pys_add_<?=$pixel->getSlug()?>_meta_tag">
|
740 |
+
Add another verification meta-tag
|
741 |
+
</button>
|
742 |
+
<script>
|
743 |
+
jQuery(document).ready(function ($) {
|
744 |
+
|
745 |
+
$('#pys_add_<?=$pixel->getSlug()?>_meta_tag').click(function (e) {
|
746 |
+
|
747 |
+
e.preventDefault();
|
748 |
+
var newField = '<div class="row"><div class="col-10">' +
|
749 |
+
'<input type="text" placeholder="Add the verification meta-tag there" name="pys[<?=$pixel->getSlug()?>][verify_meta_tag][]" id="pys_facebook_meta_tag_0" value="" placeholder="" class="form-control">' +
|
750 |
+
'</div>' +
|
751 |
+
'<div class="col-2">' +
|
752 |
+
'<button type="button" class="btn btn-sm remove-meta-row"><i class="fa fa-trash-o" aria-hidden="true"></i></button>' +
|
753 |
+
'</div></div><hr>';
|
754 |
+
var $row = $(newField)
|
755 |
+
.insertBefore('#pys_add_<?=$pixel->getSlug()?>_meta_tag_button_row')
|
756 |
+
});
|
757 |
+
});
|
758 |
+
</script>
|
759 |
+
</div>
|
760 |
+
</div>
|
761 |
+
<?php }
|
includes/views/html-main-edd.php
CHANGED
@@ -57,28 +57,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
57 |
</div>
|
58 |
</div>
|
59 |
|
60 |
-
<div class="card card-static">
|
61 |
-
<div class="card-header">
|
62 |
-
About EDD Events Parameters
|
63 |
-
</div>
|
64 |
-
<div class="card-body">
|
65 |
-
<div class="row">
|
66 |
-
<div class="col">
|
67 |
-
<p>All events get the following parameters for all the tags: <i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
|
68 |
-
<p>The Purchase event will have the following extra-parameters: <i>category_name, num_items, tags, total (pro), transactions_count (pro), tax (pro), predicted_ltv (pro), average_order (pro), coupon_used (pro), coupon_code (pro), shipping (pro), shipping_cost (pro).</i></p>
|
69 |
-
<p>The Facebook Pixel events are Dynamic Ads ready.</p>
|
70 |
-
<p>The Google Analytics events track the data Enhanced Ecommerce or Monetization (GA4).</p>
|
71 |
-
<p>The Pinterest events have the required data for Dynamic Remarketing.</p>
|
72 |
-
</div>
|
73 |
-
</div>
|
74 |
-
</div>
|
75 |
-
</div>
|
76 |
-
|
77 |
|
78 |
<!-- AddToCart -->
|
79 |
-
<div class="card
|
80 |
<div class="card-header">
|
81 |
-
|
82 |
</div>
|
83 |
<div class="card-body">
|
84 |
<div class="row">
|
@@ -92,12 +75,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
92 |
</div>
|
93 |
</div>
|
94 |
|
|
|
|
|
95 |
<?php if ( Facebook()->enabled() ) : ?>
|
96 |
|
97 |
<!-- Facebook ID -->
|
98 |
-
<div class="card
|
99 |
<div class="card-header">
|
100 |
-
Facebook ID setting
|
101 |
</div>
|
102 |
<div class="card-body">
|
103 |
<div class="row mb-3">
|
@@ -128,9 +113,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
128 |
|
129 |
<?php if ( GA()->enabled() ) : ?>
|
130 |
|
131 |
-
<div class="card
|
132 |
<div class="card-header">
|
133 |
-
Google Analytics ID setting
|
134 |
</div>
|
135 |
<div class="card-body">
|
136 |
<div class="row mb-3">
|
@@ -171,9 +156,9 @@ e&utm_campaign=pro-feature' ); ?>
|
|
171 |
|
172 |
<?php if ( Pinterest()->enabled() ) : ?>
|
173 |
|
174 |
-
<div class="card
|
175 |
<div class="card-header">
|
176 |
-
Pinterest Tag ID setting
|
177 |
</div>
|
178 |
<div class="card-body">
|
179 |
|
@@ -213,9 +198,9 @@ e&utm_campaign=pro-feature' ); ?>
|
|
213 |
<?php endif; ?>
|
214 |
|
215 |
<?php if ( Bing()->enabled() ) : ?>
|
216 |
-
<div class="card
|
217 |
<div class="card-header">
|
218 |
-
Bing ID setting
|
219 |
</div>
|
220 |
<div class="card-body">
|
221 |
<div class="row mb-3">
|
@@ -252,11 +237,11 @@ e&utm_campaign=pro-feature' ); ?>
|
|
252 |
</div>
|
253 |
</div>
|
254 |
<?php endif; ?>
|
255 |
-
|
256 |
<!-- Google Dynamic Remarketing Vertical -->
|
257 |
-
<div class="card
|
258 |
<div class="card-header">
|
259 |
-
Google Dynamic Remarketing Vertical <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics' ); ?>
|
260 |
</div>
|
261 |
<div class="card-body">
|
262 |
<div class="row">
|
@@ -274,9 +259,9 @@ e&utm_campaign=pro-feature' ); ?>
|
|
274 |
</div>
|
275 |
|
276 |
<!-- Event Value -->
|
277 |
-
<div class="card
|
278 |
<div class="card-header">
|
279 |
-
Event Value Settings <?php renderProBadge(); ?>
|
280 |
</div>
|
281 |
<div class="card-body">
|
282 |
<div class="row mb-3">
|
@@ -300,8 +285,8 @@ e&utm_campaign=pro-feature' ); ?>
|
|
300 |
</div>
|
301 |
</div>
|
302 |
</div>
|
|
|
303 |
|
304 |
-
<h2 class="section-title">Default E-Commerce events</h2>
|
305 |
|
306 |
<!-- Purchase -->
|
307 |
<div class="card">
|
@@ -513,68 +498,6 @@ e&utm_campaign=pro-feature' ); ?>
|
|
513 |
</div>
|
514 |
</div>
|
515 |
|
516 |
-
<!-- RemoveFromCart -->
|
517 |
-
<div class="card">
|
518 |
-
<div class="card-header has_switch">
|
519 |
-
<?php PYS()->render_switcher_input('edd_remove_from_cart_enabled');?>Track remove from cart <?php cardCollapseBtn(); ?>
|
520 |
-
</div>
|
521 |
-
<div class="card-body">
|
522 |
-
|
523 |
-
<?php if ( Facebook()->enabled() ) : ?>
|
524 |
-
<div class="row">
|
525 |
-
<div class="col">
|
526 |
-
<?php Facebook()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
527 |
-
<h4 class="switcher-label">Enable the RemoveFromCart event on Facebook</h4>
|
528 |
-
</div>
|
529 |
-
</div>
|
530 |
-
<?php endif; ?>
|
531 |
-
|
532 |
-
<?php if ( GA()->enabled() ) : ?>
|
533 |
-
<div class="row mb-1">
|
534 |
-
<div class="col">
|
535 |
-
<?php GA()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
536 |
-
<h4 class="switcher-label">Enable the remove_from_cart event on Google Analytics</h4>
|
537 |
-
</div>
|
538 |
-
</div>
|
539 |
-
<div class="row mb-2">
|
540 |
-
<div class="col col-offset-left">
|
541 |
-
<?php GA()->render_checkbox_input( 'edd_remove_from_cart_non_interactive',
|
542 |
-
'Non-interactive event' ); ?>
|
543 |
-
</div>
|
544 |
-
</div>
|
545 |
-
<?php endif; ?>
|
546 |
-
|
547 |
-
<div class="row">
|
548 |
-
<div class="col">
|
549 |
-
<?php renderDummySwitcher(); ?>
|
550 |
-
<h4 class="switcher-label">Enable the remove_from_cart event on Google Ads</h4>
|
551 |
-
<?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?>
|
552 |
-
</div>
|
553 |
-
</div>
|
554 |
-
|
555 |
-
<?php if ( Pinterest()->enabled() ) : ?>
|
556 |
-
<div class="row">
|
557 |
-
<div class="col">
|
558 |
-
<?php Pinterest()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
559 |
-
<h4 class="switcher-label">Enable the RemoveFromCart event on Pinterest</h4>
|
560 |
-
<?php Pinterest()->renderAddonNotice(); ?>
|
561 |
-
</div>
|
562 |
-
</div>
|
563 |
-
<?php endif; ?>
|
564 |
-
|
565 |
-
<!-- --><?php //if ( Bing()->enabled() ) : ?>
|
566 |
-
<!-- <div class="row">-->
|
567 |
-
<!-- <div class="col">-->
|
568 |
-
<!-- --><?php //Bing()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
569 |
-
<!-- <h4 class="switcher-label">Enable the RemoveFromCart event on Bing</h4>-->
|
570 |
-
<!-- --><?php //Bing()->renderAddonNotice(); ?>
|
571 |
-
<!-- </div>-->
|
572 |
-
<!-- </div>-->
|
573 |
-
<!-- --><?php //endif; ?>
|
574 |
-
|
575 |
-
</div>
|
576 |
-
</div>
|
577 |
-
|
578 |
<!-- AddToCart -->
|
579 |
<div class="card">
|
580 |
<div class="card-header has_switch">
|
@@ -1007,6 +930,87 @@ e&utm_campaign=pro-feature' ); ?>
|
|
1007 |
</div>
|
1008 |
</div>
|
1009 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1010 |
|
1011 |
<div class="panel">
|
1012 |
<div class="row">
|
57 |
</div>
|
58 |
</div>
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
<!-- AddToCart -->
|
62 |
+
<div class="card">
|
63 |
<div class="card-header">
|
64 |
+
When to fire the add to cart event<?php cardCollapseBtn(); ?>
|
65 |
</div>
|
66 |
<div class="card-body">
|
67 |
<div class="row">
|
75 |
</div>
|
76 |
</div>
|
77 |
|
78 |
+
<h2 class="section-title">ID Settings</h2>
|
79 |
+
|
80 |
<?php if ( Facebook()->enabled() ) : ?>
|
81 |
|
82 |
<!-- Facebook ID -->
|
83 |
+
<div class="card">
|
84 |
<div class="card-header">
|
85 |
+
Facebook ID setting<?php cardCollapseBtn(); ?>
|
86 |
</div>
|
87 |
<div class="card-body">
|
88 |
<div class="row mb-3">
|
113 |
|
114 |
<?php if ( GA()->enabled() ) : ?>
|
115 |
|
116 |
+
<div class="card" id="pys-section-ga-id">
|
117 |
<div class="card-header">
|
118 |
+
Google Analytics ID setting<?php cardCollapseBtn(); ?>
|
119 |
</div>
|
120 |
<div class="card-body">
|
121 |
<div class="row mb-3">
|
156 |
|
157 |
<?php if ( Pinterest()->enabled() ) : ?>
|
158 |
|
159 |
+
<div class="card" id="pys-section-ga-id">
|
160 |
<div class="card-header">
|
161 |
+
Pinterest Tag ID setting<?php cardCollapseBtn(); ?>
|
162 |
</div>
|
163 |
<div class="card-body">
|
164 |
|
198 |
<?php endif; ?>
|
199 |
|
200 |
<?php if ( Bing()->enabled() ) : ?>
|
201 |
+
<div class="card">
|
202 |
<div class="card-header">
|
203 |
+
Bing ID setting<?php cardCollapseBtn(); ?>
|
204 |
</div>
|
205 |
<div class="card-body">
|
206 |
<div class="row mb-3">
|
237 |
</div>
|
238 |
</div>
|
239 |
<?php endif; ?>
|
240 |
+
<hr>
|
241 |
<!-- Google Dynamic Remarketing Vertical -->
|
242 |
+
<div class="card card-disabled">
|
243 |
<div class="card-header">
|
244 |
+
Google Dynamic Remarketing Vertical <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics' ); ?> <?php cardCollapseBtn(); ?>
|
245 |
</div>
|
246 |
<div class="card-body">
|
247 |
<div class="row">
|
259 |
</div>
|
260 |
|
261 |
<!-- Event Value -->
|
262 |
+
<div class="card card-disabled">
|
263 |
<div class="card-header">
|
264 |
+
Event Value Settings <?php renderProBadge(); ?> <?php cardCollapseBtn(); ?>
|
265 |
</div>
|
266 |
<div class="card-body">
|
267 |
<div class="row mb-3">
|
285 |
</div>
|
286 |
</div>
|
287 |
</div>
|
288 |
+
<hr>
|
289 |
|
|
|
290 |
|
291 |
<!-- Purchase -->
|
292 |
<div class="card">
|
498 |
</div>
|
499 |
</div>
|
500 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
<!-- AddToCart -->
|
502 |
<div class="card">
|
503 |
<div class="card-header has_switch">
|
930 |
</div>
|
931 |
</div>
|
932 |
</div>
|
933 |
+
<hr>
|
934 |
+
<!-- RemoveFromCart -->
|
935 |
+
<div class="card">
|
936 |
+
<div class="card-header has_switch">
|
937 |
+
<?php PYS()->render_switcher_input('edd_remove_from_cart_enabled');?>Track remove from cart <?php cardCollapseBtn(); ?>
|
938 |
+
</div>
|
939 |
+
<div class="card-body">
|
940 |
+
|
941 |
+
<?php if ( Facebook()->enabled() ) : ?>
|
942 |
+
<div class="row">
|
943 |
+
<div class="col">
|
944 |
+
<?php Facebook()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
945 |
+
<h4 class="switcher-label">Enable the RemoveFromCart event on Facebook</h4>
|
946 |
+
</div>
|
947 |
+
</div>
|
948 |
+
<?php endif; ?>
|
949 |
+
|
950 |
+
<?php if ( GA()->enabled() ) : ?>
|
951 |
+
<div class="row mb-1">
|
952 |
+
<div class="col">
|
953 |
+
<?php GA()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
954 |
+
<h4 class="switcher-label">Enable the remove_from_cart event on Google Analytics</h4>
|
955 |
+
</div>
|
956 |
+
</div>
|
957 |
+
<div class="row mb-2">
|
958 |
+
<div class="col col-offset-left">
|
959 |
+
<?php GA()->render_checkbox_input( 'edd_remove_from_cart_non_interactive',
|
960 |
+
'Non-interactive event' ); ?>
|
961 |
+
</div>
|
962 |
+
</div>
|
963 |
+
<?php endif; ?>
|
964 |
+
|
965 |
+
<div class="row">
|
966 |
+
<div class="col">
|
967 |
+
<?php renderDummySwitcher(); ?>
|
968 |
+
<h4 class="switcher-label">Enable the remove_from_cart event on Google Ads</h4>
|
969 |
+
<?php renderProBadge('https://www.pixelyoursite.com/google-ads-tag/?utm_source=pys-free-plugin&utm_medium=pro-badge&utm_campaign=pro-feature'); ?>
|
970 |
+
</div>
|
971 |
+
</div>
|
972 |
+
|
973 |
+
<?php if ( Pinterest()->enabled() ) : ?>
|
974 |
+
<div class="row">
|
975 |
+
<div class="col">
|
976 |
+
<?php Pinterest()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
977 |
+
<h4 class="switcher-label">Enable the RemoveFromCart event on Pinterest</h4>
|
978 |
+
<?php Pinterest()->renderAddonNotice(); ?>
|
979 |
+
</div>
|
980 |
+
</div>
|
981 |
+
<?php endif; ?>
|
982 |
+
|
983 |
+
<!-- --><?php //if ( Bing()->enabled() ) : ?>
|
984 |
+
<!-- <div class="row">-->
|
985 |
+
<!-- <div class="col">-->
|
986 |
+
<!-- --><?php //Bing()->render_switcher_input( 'edd_remove_from_cart_enabled' ); ?>
|
987 |
+
<!-- <h4 class="switcher-label">Enable the RemoveFromCart event on Bing</h4>-->
|
988 |
+
<!-- --><?php //Bing()->renderAddonNotice(); ?>
|
989 |
+
<!-- </div>-->
|
990 |
+
<!-- </div>-->
|
991 |
+
<!-- --><?php //endif; ?>
|
992 |
+
|
993 |
+
</div>
|
994 |
+
</div>
|
995 |
+
|
996 |
+
<!-- About EDD Events Parameters -->
|
997 |
+
<div class="card card-static">
|
998 |
+
<div class="card-header">
|
999 |
+
About EDD Events Parameters
|
1000 |
+
</div>
|
1001 |
+
<div class="card-body">
|
1002 |
+
<div class="row">
|
1003 |
+
<div class="col">
|
1004 |
+
<p>All events get the following parameters for all the tags: <i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
|
1005 |
+
<p>The Purchase event will have the following extra-parameters: <i>category_name, num_items, tags, total (pro), transactions_count (pro), tax (pro), predicted_ltv (pro), average_order (pro), coupon_used (pro), coupon_code (pro), shipping (pro), shipping_cost (pro).</i></p>
|
1006 |
+
<p>The Facebook Pixel events are Dynamic Ads ready.</p>
|
1007 |
+
<p>The Google Analytics events track the data Enhanced Ecommerce or Monetization (GA4).</p>
|
1008 |
+
<p>The Pinterest events have the required data for Dynamic Remarketing.</p>
|
1009 |
+
</div>
|
1010 |
+
</div>
|
1011 |
+
</div>
|
1012 |
+
</div>
|
1013 |
+
|
1014 |
|
1015 |
<div class="panel">
|
1016 |
<div class="row">
|
includes/views/html-main-general.php
CHANGED
@@ -18,100 +18,123 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
18 |
<?php if ( Facebook()->enabled() ) : ?>
|
19 |
|
20 |
<div class="row align-items-center mb-3">
|
21 |
-
<div class="col-
|
22 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/facebook-small-square.png">
|
23 |
</div>
|
24 |
-
<div class="col-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</div>
|
40 |
-
<div class="
|
41 |
-
<
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
51 |
</div>
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
Use this if you need to test the server-side event. <strong>Remove it after testing</strong>
|
61 |
-
</small>
|
62 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
</div>
|
64 |
-
|
65 |
-
|
66 |
-
<div class="row mb-3">
|
67 |
-
<div class="col-3"></div>
|
68 |
-
<div class="col-7">
|
69 |
-
<strong>WPML Detected. </strong> With the <a target="_blank" href="https://www.pixelyoursite.com/plugins/pixelyoursite-professional?utm_medium=plugin&utm_campaign=multilingual">Advanced and Agency</a> licenses, you can fire a different pixel for each language.
|
70 |
-
</div>
|
71 |
-
</div>
|
72 |
-
<?php endif; ?>
|
73 |
-
<hr>
|
74 |
|
|
|
|
|
75 |
|
76 |
|
77 |
<?php if ( GA()->enabled() ) : ?>
|
78 |
|
79 |
<div class="row align-items-center mb-3">
|
80 |
-
<div class="col-
|
81 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/analytics-square-small.png">
|
82 |
</div>
|
83 |
-
<div class="col-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
<?php GA()->render_switcher_input("use_4_version");?>
|
85 |
<h4 class="switcher-label">Enable Google Analytics 4</h4>
|
86 |
<div class="mt-1">
|
87 |
<a href="https://www.pixelyoursite.com/pixelyoursite-free-version/enable-google-analytics-4" target="_blank">Watch this help video</a>
|
88 |
</div>
|
89 |
-
<h4 class="label mb-3 mt-3">Google Analytics tracking ID:</h4>
|
90 |
-
<?php GA()->render_pixel_id( 'tracking_id', 'Google Analytics tracking ID' ); ?>
|
91 |
-
<small class="form-text" mb-2>
|
92 |
-
<a href="https://www.pixelyoursite.com/pixelyoursite-free-version/add-your-google-analytics-code?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
93 |
-
target="_blank">How to get it?</a>
|
94 |
-
</small>
|
95 |
-
<div class ="mt-2">
|
96 |
-
<input type="checkbox" class="custom-control-input" name="pys[ga][is_enable_debug_mode][-1]" value="0" checked />
|
97 |
-
<?php GA()->render_checkbox_input_array("is_enable_debug_mode","Enable Analytics Debug mode for this property");?>
|
98 |
-
</div>
|
99 |
-
|
100 |
-
<p class="mt-3 ">Add multiple Google Analytics tags with the <a href="https://www.pixelyoursite.com/?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
101 |
-
target="_blank">pro version</a>.</p>
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
</div>
|
106 |
</div>
|
107 |
-
|
108 |
<div class="row mb-3">
|
109 |
-
<div class="col-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</div>
|
113 |
</div>
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
<hr>
|
116 |
|
117 |
<?php endif; ?>
|
@@ -119,10 +142,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
119 |
<?php do_action( 'pys_admin_pixel_ids' ); ?>
|
120 |
|
121 |
<div class="row align-items-center">
|
122 |
-
<div class="col-
|
123 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/google-ads-square-small.png">
|
124 |
</div>
|
125 |
-
<div class="col-
|
126 |
Add the Google Ads tag with the <a
|
127 |
href="https://www.pixelyoursite.com/google-ads-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
128 |
target="_blank">pro version</a>.
|
@@ -144,65 +167,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
144 |
</div>
|
145 |
</div>
|
146 |
|
147 |
-
<div class="card">
|
148 |
-
<div class="card-header">
|
149 |
-
Active Events:
|
150 |
-
</div>
|
151 |
-
<div class="card-body show" style="display: block;">
|
152 |
-
<?php
|
153 |
-
$customCount = EventsCustom()->getCount();
|
154 |
-
//$customFdp = EventsFdp()->getCount();
|
155 |
-
$signalEvents = EventsSignal()->getCount();
|
156 |
-
$wooEvents = EventsWoo()->getCount();
|
157 |
-
$eddEvents = EventsEdd()->getCount();
|
158 |
-
|
159 |
-
if($signalEvents > 0) {
|
160 |
-
$signalEvents = 1;
|
161 |
-
}
|
162 |
-
|
163 |
-
if(PYS()->getOption('search_event_enabled')) {
|
164 |
-
$signalEvents++;
|
165 |
-
}
|
166 |
-
|
167 |
-
$total = $customCount + $signalEvents + $wooEvents + $eddEvents;
|
168 |
-
?>
|
169 |
-
<p><strong>You have <?=$total?> active events in total.</strong></p>
|
170 |
-
<p>You have <?=$signalEvents?> global active events. You can control them on this page.</p>
|
171 |
-
<p>You have <?=$customCount?> manually added active events. You can control them on the <a href="<?=buildAdminUrl( 'pixelyoursite', 'events' )?>">Events page</a>.</p>
|
172 |
-
<?php if(isWooCommerceActive()) : ?>
|
173 |
-
<p>You have <?=$wooEvents?> WooCommerce active events. You can control them on the <a href="<?=buildAdminUrl( 'pixelyoursite', 'woo' )?>">WooCommerce page</a>.</p>
|
174 |
-
<?php endif; ?>
|
175 |
-
<?php if(isEddActive()) : ?>
|
176 |
-
<p>You have <?=$eddEvents?> EDD active events. You can control them on the <a href="<?=buildAdminUrl( 'pixelyoursite', 'edd' )?>">EDD page</a>.</p>
|
177 |
-
<?php endif; ?>
|
178 |
-
<p class="mt-5 small">We count each manually added event, regardless of its name or targeted tag.</p>
|
179 |
-
<p class="small">We don't count the Dynamic Ads for Blog events.</p>
|
180 |
-
</div>
|
181 |
-
</div>
|
182 |
-
|
183 |
-
<div class="card">
|
184 |
-
<div class="card-header">
|
185 |
-
About Parameters:
|
186 |
-
</div>
|
187 |
-
<div class="card-body show" style="display: block;">
|
188 |
-
<p>The plugin tracks the following parameters by default for all the events and for all installed tags:
|
189 |
-
<i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
|
190 |
-
<p>Facebook, Pinterest, and Google Ads Page View event also tracks the following parameters: tags,
|
191 |
-
category.</p>
|
192 |
-
<p>You can add extra parameters to events configured on the Events tab.
|
193 |
-
WooCommerce or Easy Digital Downloads events will have the e-commerce parameters specific to
|
194 |
-
each tag.</p>
|
195 |
-
<p>The Search event has the specific search parameter.</p>
|
196 |
-
<p>The Signal event has various specific parameters, depending on the action that fires the event.</p>
|
197 |
-
</div>
|
198 |
-
</div>
|
199 |
-
|
200 |
<!-- Signal Events -->
|
201 |
<div class="card">
|
202 |
<div class="card-header has_switch">
|
203 |
<?php PYS()->render_switcher_input('signal_events_enabled');?>Track key actions with the Signal event <?php cardCollapseBtn(); ?>
|
204 |
</div>
|
205 |
-
<div class="card-body
|
206 |
<?php if ( Facebook()->enabled() ) : ?>
|
207 |
<div class="row">
|
208 |
<div class="col">
|
@@ -350,7 +320,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
350 |
</div>
|
351 |
</div>
|
352 |
|
353 |
-
|
354 |
<!-- Search -->
|
355 |
<div class="card">
|
356 |
<div class="card-header has_switch">
|
@@ -545,31 +514,86 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
545 |
</div>
|
546 |
</div>
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
<h2 class="section-title mt-3">Global Settings</h2>
|
549 |
|
550 |
<div class="panel">
|
551 |
-
<div class="row">
|
552 |
<div class="col">
|
553 |
<?php PYS()->render_switcher_input( 'debug_enabled' ); ?>
|
554 |
<h4 class="switcher-label">Debugging mode. You will be able to see details about the events inside your
|
555 |
browser console (developer tools).</h4>
|
556 |
</div>
|
557 |
</div>
|
558 |
-
<div class="row">
|
559 |
<div class="col">
|
560 |
<?php renderDummySwitcher(); ?>
|
561 |
<h4 class="switcher-label">Track UTMs</h4>
|
562 |
<?php renderProBadge(); ?>
|
563 |
</div>
|
564 |
</div>
|
565 |
-
<div class="row">
|
566 |
<div class="col">
|
567 |
<?php renderDummySwitcher(); ?>
|
568 |
<h4 class="switcher-label">Track traffic source</h4>
|
569 |
<?php renderProBadge(); ?>
|
570 |
</div>
|
571 |
</div>
|
572 |
-
<div class="row
|
573 |
<div class="col">
|
574 |
<?php PYS()->render_switcher_input( 'enable_event_url_param' ); ?>
|
575 |
<h4 class="switcher-label">Track the <i>event_url</i> parameter. Uncheck this if your URLs contain personal information about your users.</h4>
|
18 |
<?php if ( Facebook()->enabled() ) : ?>
|
19 |
|
20 |
<div class="row align-items-center mb-3">
|
21 |
+
<div class="col-2 py-2">
|
22 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/facebook-small-square.png">
|
23 |
</div>
|
24 |
+
<div class="col-6">
|
25 |
+
Your Facebook Pixel
|
26 |
+
</div>
|
27 |
+
<div class="col-4">
|
28 |
+
<label for="fb_settings_switch" class="btn btn-block btn-sm btn-primary btn-settings">Click for settings</label>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
<input type="checkbox" id="fb_settings_switch" style="display: none">
|
32 |
+
<div class="settings_content">
|
33 |
+
<div class="plate pt-3 pb-3 mb-3">
|
34 |
+
<div class="row mb-3">
|
35 |
+
<div class="col-12">
|
36 |
+
<h4 class="label">Facebook Pixel ID:</h4>
|
37 |
+
<?php Facebook()->render_pixel_id( 'pixel_id', 'Facebook Pixel ID' ); ?>
|
38 |
+
<small class="form-text">
|
39 |
+
<a href="https://www.pixelyoursite.com/pixelyoursite-free-version/add-your-facebook-pixel?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
40 |
+
target="_blank">How to get it?</a>
|
41 |
+
</small>
|
42 |
+
<p class="mt-3 mb-0">Add multiple Facebook Pixels with the <a href="https://www.pixelyoursite.com/?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
43 |
+
target="_blank">pro version</a>.</p>
|
44 |
+
</div>
|
45 |
</div>
|
46 |
+
<div class="row align-items-center mb-3">
|
47 |
+
<div class="col-12">
|
48 |
+
<h4 class="label">Conversion API (recommended):</h4>
|
49 |
+
<?php Facebook()->render_checkbox_input(
|
50 |
+
"use_server_api",
|
51 |
+
"Send events directly from your web server to Facebook through the Conversion API. This can help you capture more events. An access token is required to use the server-side API. <a href='https://www.pixelyoursite.com/facebook-conversion-api-capi' target='_blank'>Learn how to generate the token and how to test Conversion API</a>"
|
52 |
+
); ?>
|
53 |
+
<?php Facebook()->render_checkbox_input("server_event_use_ajax","Use Ajax when conversion API is enabled. Keep this option active if you use a cache");?>
|
54 |
+
<?php Facebook()->render_text_area_array_item("server_access_api_token","Api token") ?>
|
55 |
+
<small class="form-text">
|
56 |
+
This is an experimental feature and works only for the automatilly fired standard events. We plan to expand it to all events soon.
|
57 |
+
</small>
|
58 |
+
</div>
|
59 |
</div>
|
60 |
+
<div class="row align-items-center mb-3">
|
61 |
+
<div class="col-12">
|
62 |
+
<h4 class="label">test_event_code :</h4>
|
63 |
+
<?php Facebook()->render_text_input_array_item("test_api_event_code","Code"); ?>
|
64 |
+
<small class="form-text">
|
65 |
+
Use this if you need to test the server-side event. <strong>Remove it after testing</strong>
|
66 |
+
</small>
|
67 |
+
</div>
|
|
|
|
|
68 |
</div>
|
69 |
+
<?php if(isWPMLActive()) : ?>
|
70 |
+
<div class="row mb-3">
|
71 |
+
<div class="col-12">
|
72 |
+
<strong>WPML Detected. </strong> With the <a target="_blank" href="https://www.pixelyoursite.com/plugins/pixelyoursite-professional?utm_medium=plugin&utm_campaign=multilingual">Advanced and Agency</a> licenses, you can fire a different pixel for each language.
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<?php endif; ?>
|
76 |
</div>
|
77 |
+
<?php addMetaTagFields(Facebook(),"https://www.pixelyoursite.com/verify-domain-facebook"); ?>
|
78 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
+
<hr>
|
81 |
+
<?php endif; ?>
|
82 |
|
83 |
|
84 |
<?php if ( GA()->enabled() ) : ?>
|
85 |
|
86 |
<div class="row align-items-center mb-3">
|
87 |
+
<div class="col-2 py-2">
|
88 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/analytics-square-small.png">
|
89 |
</div>
|
90 |
+
<div class="col-6">
|
91 |
+
Your Google Analytics
|
92 |
+
</div>
|
93 |
+
<div class="col-4">
|
94 |
+
<label for="gan_settings_switch" class="btn btn-block btn-sm btn-primary btn-settings">Click for settings</label>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
|
98 |
+
<input type="checkbox" id="gan_settings_switch" style="display: none">
|
99 |
+
<div class="settings_content">
|
100 |
+
<div class="row pt-3 pb-3">
|
101 |
+
<div class="col-12">
|
102 |
<?php GA()->render_switcher_input("use_4_version");?>
|
103 |
<h4 class="switcher-label">Enable Google Analytics 4</h4>
|
104 |
<div class="mt-1">
|
105 |
<a href="https://www.pixelyoursite.com/pixelyoursite-free-version/enable-google-analytics-4" target="_blank">Watch this help video</a>
|
106 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
</div>
|
108 |
</div>
|
109 |
+
<div class="plate pt-3 pb-3">
|
110 |
<div class="row mb-3">
|
111 |
+
<div class="col-12">
|
112 |
+
<h4 class="label mb-3 mt-3">Google Analytics tracking ID:</h4>
|
113 |
+
<?php GA()->render_pixel_id( 'tracking_id', 'Google Analytics tracking ID' ); ?>
|
114 |
+
<small class="form-text" mb-2>
|
115 |
+
<a href="https://www.pixelyoursite.com/pixelyoursite-free-version/add-your-google-analytics-code?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
116 |
+
target="_blank">How to get it?</a>
|
117 |
+
</small>
|
118 |
+
<div class ="mt-2">
|
119 |
+
<input type="checkbox" class="custom-control-input" name="pys[ga][is_enable_debug_mode][-1]" value="0" checked />
|
120 |
+
<?php GA()->render_checkbox_input_array("is_enable_debug_mode","Enable Analytics Debug mode for this property");?>
|
121 |
+
</div>
|
122 |
+
|
123 |
+
<p class="mt-3 ">Add multiple Google Analytics tags with the <a href="https://www.pixelyoursite.com/?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
124 |
+
target="_blank">pro version</a>.</p>
|
125 |
</div>
|
126 |
</div>
|
127 |
+
<?php if(isWPMLActive()) : ?>
|
128 |
+
<div class="row mb-3">
|
129 |
+
<div class="col-12">
|
130 |
+
<strong>WPML Detected. </strong> With the <a target="_blank" href="https://www.pixelyoursite.com/plugins/pixelyoursite-professional?utm_medium=plugin&utm_campaign=multilingual">Advanced and Agency</a> licenses, you can fire a different pixel for each language.
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
<?php endif; ?>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
|
138 |
<hr>
|
139 |
|
140 |
<?php endif; ?>
|
142 |
<?php do_action( 'pys_admin_pixel_ids' ); ?>
|
143 |
|
144 |
<div class="row align-items-center">
|
145 |
+
<div class="col-2 py-4">
|
146 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/google-ads-square-small.png">
|
147 |
</div>
|
148 |
+
<div class="col-10">
|
149 |
Add the Google Ads tag with the <a
|
150 |
href="https://www.pixelyoursite.com/google-ads-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
151 |
target="_blank">pro version</a>.
|
167 |
</div>
|
168 |
</div>
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
<!-- Signal Events -->
|
171 |
<div class="card">
|
172 |
<div class="card-header has_switch">
|
173 |
<?php PYS()->render_switcher_input('signal_events_enabled');?>Track key actions with the Signal event <?php cardCollapseBtn(); ?>
|
174 |
</div>
|
175 |
+
<div class="card-body">
|
176 |
<?php if ( Facebook()->enabled() ) : ?>
|
177 |
<div class="row">
|
178 |
<div class="col">
|
320 |
</div>
|
321 |
</div>
|
322 |
|
|
|
323 |
<!-- Search -->
|
324 |
<div class="card">
|
325 |
<div class="card-header has_switch">
|
514 |
</div>
|
515 |
</div>
|
516 |
|
517 |
+
<!-- Active Events stat -->
|
518 |
+
<div class="card">
|
519 |
+
<div class="card-header">
|
520 |
+
Active Events:
|
521 |
+
</div>
|
522 |
+
<div class="card-body show" style="display: block;">
|
523 |
+
<?php
|
524 |
+
$customCount = EventsCustom()->getCount();
|
525 |
+
//$customFdp = EventsFdp()->getCount();
|
526 |
+
$signalEvents = EventsSignal()->getCount();
|
527 |
+
$wooEvents = EventsWoo()->getCount();
|
528 |
+
$eddEvents = EventsEdd()->getCount();
|
529 |
+
|
530 |
+
if($signalEvents > 0) {
|
531 |
+
$signalEvents = 1;
|
532 |
+
}
|
533 |
+
|
534 |
+
if(PYS()->getOption('search_event_enabled')) {
|
535 |
+
$signalEvents++;
|
536 |
+
}
|
537 |
+
|
538 |
+
$total = $customCount + $signalEvents + $wooEvents + $eddEvents;
|
539 |
+
?>
|
540 |
+
<p><strong>You have <?=$total?> active events in total.</strong></p>
|
541 |
+
<p>You have <?=$signalEvents?> global active events. You can control them on this page.</p>
|
542 |
+
<p>You have <?=$customCount?> manually added active events. You can control them on the <a href="<?=buildAdminUrl( 'pixelyoursite', 'events' )?>">Events page</a>.</p>
|
543 |
+
<?php if(isWooCommerceActive()) : ?>
|
544 |
+
<p>You have <?=$wooEvents?> WooCommerce active events. You can control them on the <a href="<?=buildAdminUrl( 'pixelyoursite', 'woo' )?>">WooCommerce page</a>.</p>
|
545 |
+
<?php endif; ?>
|
546 |
+
<?php if(isEddActive()) : ?>
|
547 |
+
<p>You have <?=$eddEvents?> EDD active events. You can control them on the <a href="<?=buildAdminUrl( 'pixelyoursite', 'edd' )?>">EDD page</a>.</p>
|
548 |
+
<?php endif; ?>
|
549 |
+
<p class="mt-5 small">We count each manually added event, regardless of its name or targeted tag.</p>
|
550 |
+
<p class="small">We don't count the Dynamic Ads for Blog events.</p>
|
551 |
+
</div>
|
552 |
+
</div>
|
553 |
+
|
554 |
+
<!-- About Parameters -->
|
555 |
+
<div class="card">
|
556 |
+
<div class="card-header">
|
557 |
+
About Parameters:
|
558 |
+
</div>
|
559 |
+
<div class="card-body show" style="display: block;">
|
560 |
+
<p>The plugin tracks the following parameters by default for all the events and for all installed tags:
|
561 |
+
<i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
|
562 |
+
<p>Facebook, Pinterest, and Google Ads Page View event also tracks the following parameters: tags,
|
563 |
+
category.</p>
|
564 |
+
<p>You can add extra parameters to events configured on the Events tab.
|
565 |
+
WooCommerce or Easy Digital Downloads events will have the e-commerce parameters specific to
|
566 |
+
each tag.</p>
|
567 |
+
<p>The Search event has the specific search parameter.</p>
|
568 |
+
<p>The Signal event has various specific parameters, depending on the action that fires the event.</p>
|
569 |
+
</div>
|
570 |
+
</div>
|
571 |
+
|
572 |
<h2 class="section-title mt-3">Global Settings</h2>
|
573 |
|
574 |
<div class="panel">
|
575 |
+
<div class="row mb-2">
|
576 |
<div class="col">
|
577 |
<?php PYS()->render_switcher_input( 'debug_enabled' ); ?>
|
578 |
<h4 class="switcher-label">Debugging mode. You will be able to see details about the events inside your
|
579 |
browser console (developer tools).</h4>
|
580 |
</div>
|
581 |
</div>
|
582 |
+
<div class="row mb-2">
|
583 |
<div class="col">
|
584 |
<?php renderDummySwitcher(); ?>
|
585 |
<h4 class="switcher-label">Track UTMs</h4>
|
586 |
<?php renderProBadge(); ?>
|
587 |
</div>
|
588 |
</div>
|
589 |
+
<div class="row mb-2">
|
590 |
<div class="col">
|
591 |
<?php renderDummySwitcher(); ?>
|
592 |
<h4 class="switcher-label">Track traffic source</h4>
|
593 |
<?php renderProBadge(); ?>
|
594 |
</div>
|
595 |
</div>
|
596 |
+
<div class="row mb-2">
|
597 |
<div class="col">
|
598 |
<?php PYS()->render_switcher_input( 'enable_event_url_param' ); ?>
|
599 |
<h4 class="switcher-label">Track the <i>event_url</i> parameter. Uncheck this if your URLs contain personal information about your users.</h4>
|
includes/views/html-main-woo.php
CHANGED
@@ -62,28 +62,11 @@ use PixelYourSite\Facebook\Helpers;
|
|
62 |
</div>
|
63 |
</div>
|
64 |
|
65 |
-
<div class="card card-static">
|
66 |
-
<div class="card-header">
|
67 |
-
About WooCommerce Events Parameters
|
68 |
-
</div>
|
69 |
-
<div class="card-body">
|
70 |
-
<div class="row">
|
71 |
-
<div class="col">
|
72 |
-
<p>All events get the following parameters for all the tags: <i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
|
73 |
-
<p>The Purchase event will have the following extra-parameters: <i>category_name, num_items, tags, total (pro), transactions_count (pro), tax (pro), predicted_ltv (pro), average_order (pro), coupon_used (pro), coupon_code (pro), shipping (pro), shipping_cost (pro).</i></p>
|
74 |
-
<p>The Facebook Pixel events are Dynamic Ads ready.</p>
|
75 |
-
<p>The Google Analytics events track the data Enhanced Ecommerce or Monetization (GA4).</p>
|
76 |
-
<p>The Pinterest events have the required data for Dynamic Remarketing.</p>
|
77 |
-
</div>
|
78 |
-
</div>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
|
82 |
|
83 |
<!-- AddToCart -->
|
84 |
-
<div class="card
|
85 |
<div class="card-header">
|
86 |
-
|
87 |
</div>
|
88 |
<div class="card-body">
|
89 |
<div class="row">
|
@@ -98,6 +81,7 @@ use PixelYourSite\Facebook\Helpers;
|
|
98 |
</div>
|
99 |
</div>
|
100 |
|
|
|
101 |
<!-- Facebook for WooCommerce -->
|
102 |
<?php if ( Facebook()->enabled() && Helpers\isFacebookForWooCommerceActive() ) : ?>
|
103 |
|
@@ -105,7 +89,7 @@ use PixelYourSite\Facebook\Helpers;
|
|
105 |
<!-- @todo: add show/hide facebook content id section JS -->
|
106 |
<div class="card card-static">
|
107 |
<div class="card-header">
|
108 |
-
Facebook for WooCommerce Integration
|
109 |
</div>
|
110 |
<div class="card-body">
|
111 |
<div class="row">
|
@@ -141,12 +125,13 @@ use PixelYourSite\Facebook\Helpers;
|
|
141 |
<?php if ( Facebook()->enabled() ) : ?>
|
142 |
|
143 |
<?php $facebook_id_visibility = Helpers\isDefaultWooContentIdLogic() ? 'block' : 'none'; ?>
|
|
|
144 |
|
145 |
-
<div class="card
|
146 |
<div class="card-header">
|
147 |
-
Facebook ID setting
|
148 |
</div>
|
149 |
-
<div class="card-body">
|
150 |
<div class="row mb-3">
|
151 |
<div class="col">
|
152 |
<?php Facebook()->render_switcher_input( 'woo_variable_as_simple' ); ?>
|
@@ -183,9 +168,9 @@ use PixelYourSite\Facebook\Helpers;
|
|
183 |
|
184 |
<?php if ( GA()->enabled() ) : ?>
|
185 |
|
186 |
-
<div class="card
|
187 |
<div class="card-header">
|
188 |
-
Google Analytics ID setting
|
189 |
</div>
|
190 |
<div class="card-body">
|
191 |
<div class="row mb-3">
|
@@ -222,7 +207,7 @@ use PixelYourSite\Facebook\Helpers;
|
|
222 |
|
223 |
|
224 |
<!-- Google Ads Settings -->
|
225 |
-
<div class="card card-
|
226 |
<div class="card-header">
|
227 |
Google Ads ID Setting <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics?utm_source=pys-free-plugin&utm_medium=pro-badg
|
228 |
e&utm_campaign=pro-feature' ); ?>
|
@@ -232,9 +217,9 @@ e&utm_campaign=pro-feature' ); ?>
|
|
232 |
|
233 |
<?php if ( Pinterest()->enabled() ) : ?>
|
234 |
|
235 |
-
<div class="card
|
236 |
<div class="card-header">
|
237 |
-
Pinterest Tag ID setting
|
238 |
</div>
|
239 |
<div class="card-body">
|
240 |
<div class="row mb-3">
|
@@ -280,9 +265,9 @@ e&utm_campaign=pro-feature' ); ?>
|
|
280 |
<!-- @todo: update UI -->
|
281 |
<!-- @todo: hide for dummy Bing -->
|
282 |
<?php if ( Bing()->enabled() ) : ?>
|
283 |
-
<div class="card
|
284 |
<div class="card-header">
|
285 |
-
Bing Tag ID setting
|
286 |
</div>
|
287 |
<div class="card-body">
|
288 |
|
@@ -379,7 +364,7 @@ e&utm_campaign=pro-feature' ); ?>
|
|
379 |
</div>
|
380 |
</div>
|
381 |
|
382 |
-
<h2 class="section-title">
|
383 |
|
384 |
<!-- Purchase -->
|
385 |
<div class="card">
|
@@ -1219,7 +1204,7 @@ e&utm_campaign=pro-feature' ); ?>
|
|
1219 |
</div>
|
1220 |
</div>
|
1221 |
|
1222 |
-
<h2 class="section-title">Extra
|
1223 |
|
1224 |
<!-- Affiliate -->
|
1225 |
<div class="card card-disabled">
|
@@ -1383,6 +1368,24 @@ e&utm_campaign=pro-feature' ); ?>
|
|
1383 |
</div>
|
1384 |
</div>
|
1385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1386 |
<div class="panel">
|
1387 |
<div class="row">
|
1388 |
<div class="col">
|
62 |
</div>
|
63 |
</div>
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
<!-- AddToCart -->
|
67 |
+
<div class="card">
|
68 |
<div class="card-header">
|
69 |
+
When to fire the add to cart event<?php cardCollapseBtn(); ?>
|
70 |
</div>
|
71 |
<div class="card-body">
|
72 |
<div class="row">
|
81 |
</div>
|
82 |
</div>
|
83 |
|
84 |
+
<h2 class="section-title">ID Settings</h2>
|
85 |
<!-- Facebook for WooCommerce -->
|
86 |
<?php if ( Facebook()->enabled() && Helpers\isFacebookForWooCommerceActive() ) : ?>
|
87 |
|
89 |
<!-- @todo: add show/hide facebook content id section JS -->
|
90 |
<div class="card card-static">
|
91 |
<div class="card-header">
|
92 |
+
Facebook for WooCommerce Integration<?php cardCollapseBtn(); ?>
|
93 |
</div>
|
94 |
<div class="card-body">
|
95 |
<div class="row">
|
125 |
<?php if ( Facebook()->enabled() ) : ?>
|
126 |
|
127 |
<?php $facebook_id_visibility = Helpers\isDefaultWooContentIdLogic() ? 'block' : 'none'; ?>
|
128 |
+
<?php $isShowFbID = Helpers\isFacebookForWooCommerceActive();?>
|
129 |
|
130 |
+
<div class="card" id="pys-section-facebook-id" style="display: <?php esc_attr_e( $facebook_id_visibility ); ?>;">
|
131 |
<div class="card-header">
|
132 |
+
Facebook ID setting<?php cardCollapseBtn(); ?>
|
133 |
</div>
|
134 |
+
<div class="card-body <?=$isShowFbID ? "show" : ""?>" style ="<?=$isShowFbID ? "display:block" : ""?>">
|
135 |
<div class="row mb-3">
|
136 |
<div class="col">
|
137 |
<?php Facebook()->render_switcher_input( 'woo_variable_as_simple' ); ?>
|
168 |
|
169 |
<?php if ( GA()->enabled() ) : ?>
|
170 |
|
171 |
+
<div class="card " id="pys-section-ga-id">
|
172 |
<div class="card-header">
|
173 |
+
Google Analytics ID setting<?php cardCollapseBtn(); ?>
|
174 |
</div>
|
175 |
<div class="card-body">
|
176 |
<div class="row mb-3">
|
207 |
|
208 |
|
209 |
<!-- Google Ads Settings -->
|
210 |
+
<div class="card card-disabled">
|
211 |
<div class="card-header">
|
212 |
Google Ads ID Setting <?php renderProBadge( 'https://www.pixelyoursite.com/google-analytics?utm_source=pys-free-plugin&utm_medium=pro-badg
|
213 |
e&utm_campaign=pro-feature' ); ?>
|
217 |
|
218 |
<?php if ( Pinterest()->enabled() ) : ?>
|
219 |
|
220 |
+
<div class="card" id="pys-section-ga-id">
|
221 |
<div class="card-header">
|
222 |
+
Pinterest Tag ID setting<?php cardCollapseBtn(); ?>
|
223 |
</div>
|
224 |
<div class="card-body">
|
225 |
<div class="row mb-3">
|
265 |
<!-- @todo: update UI -->
|
266 |
<!-- @todo: hide for dummy Bing -->
|
267 |
<?php if ( Bing()->enabled() ) : ?>
|
268 |
+
<div class="card">
|
269 |
<div class="card-header">
|
270 |
+
Bing Tag ID setting<?php cardCollapseBtn(); ?>
|
271 |
</div>
|
272 |
<div class="card-body">
|
273 |
|
364 |
</div>
|
365 |
</div>
|
366 |
|
367 |
+
<h2 class="section-title">Recommended events</h2>
|
368 |
|
369 |
<!-- Purchase -->
|
370 |
<div class="card">
|
1204 |
</div>
|
1205 |
</div>
|
1206 |
|
1207 |
+
<h2 class="section-title">Extra events</h2>
|
1208 |
|
1209 |
<!-- Affiliate -->
|
1210 |
<div class="card card-disabled">
|
1368 |
</div>
|
1369 |
</div>
|
1370 |
|
1371 |
+
<!-- About WooCommerce Events -->
|
1372 |
+
<div class="card card-static">
|
1373 |
+
<div class="card-header">
|
1374 |
+
About WooCommerce Events Parameters
|
1375 |
+
</div>
|
1376 |
+
<div class="card-body">
|
1377 |
+
<div class="row">
|
1378 |
+
<div class="col">
|
1379 |
+
<p>All events get the following parameters for all the tags: <i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
|
1380 |
+
<p>The Purchase event will have the following extra-parameters: <i>category_name, num_items, tags, total (pro), transactions_count (pro), tax (pro), predicted_ltv (pro), average_order (pro), coupon_used (pro), coupon_code (pro), shipping (pro), shipping_cost (pro).</i></p>
|
1381 |
+
<p>The Facebook Pixel events are Dynamic Ads ready.</p>
|
1382 |
+
<p>The Google Analytics events track the data Enhanced Ecommerce or Monetization (GA4).</p>
|
1383 |
+
<p>The Pinterest events have the required data for Dynamic Remarketing.</p>
|
1384 |
+
</div>
|
1385 |
+
</div>
|
1386 |
+
</div>
|
1387 |
+
</div>
|
1388 |
+
|
1389 |
<div class="panel">
|
1390 |
<div class="row">
|
1391 |
<div class="col">
|
modules/bing/bing.php
CHANGED
@@ -71,10 +71,10 @@ class Bing extends Settings implements Pixel {
|
|
71 |
?>
|
72 |
|
73 |
<div class="row align-items-center">
|
74 |
-
<div class="col-
|
75 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/microsoft-small-square.png">
|
76 |
</div>
|
77 |
-
<div class="col-
|
78 |
<h4 class="label">Microsoft the UET Tag (Bing) with <a href="https://www.pixelyoursite.com/bing-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-bing" target="_blank">this pro add-on.</a></h4>
|
79 |
</div>
|
80 |
</div>
|
71 |
?>
|
72 |
|
73 |
<div class="row align-items-center">
|
74 |
+
<div class="col-2 py-4">
|
75 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/microsoft-small-square.png">
|
76 |
</div>
|
77 |
+
<div class="col-10">
|
78 |
<h4 class="label">Microsoft the UET Tag (Bing) with <a href="https://www.pixelyoursite.com/bing-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-bing" target="_blank">this pro add-on.</a></h4>
|
79 |
</div>
|
80 |
</div>
|
modules/facebook/facebook.php
CHANGED
@@ -45,6 +45,7 @@ class Facebook extends Settings implements Pixel {
|
|
45 |
/** @var PYS $core */
|
46 |
$core->registerPixel( $this );
|
47 |
} );
|
|
|
48 |
// add_action( 'woocommerce_add_to_cart', array($this,'server_woo_add_to_cart') , 20, 6 );
|
49 |
// add_action( 'woocommerce_ajax_added_to_cart', array($this,'server_woo_add_to_cart_ajax') );
|
50 |
}
|
@@ -1282,6 +1283,12 @@ class Facebook extends Settings implements Pixel {
|
|
1282 |
);
|
1283 |
|
1284 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1285 |
}
|
1286 |
|
1287 |
/**
|
45 |
/** @var PYS $core */
|
46 |
$core->registerPixel( $this );
|
47 |
} );
|
48 |
+
add_action( 'wp_head', array( $this, 'output_meta_tag' ) );
|
49 |
// add_action( 'woocommerce_add_to_cart', array($this,'server_woo_add_to_cart') , 20, 6 );
|
50 |
// add_action( 'woocommerce_ajax_added_to_cart', array($this,'server_woo_add_to_cart_ajax') );
|
51 |
}
|
1283 |
);
|
1284 |
|
1285 |
}
|
1286 |
+
function output_meta_tag() {
|
1287 |
+
$metaTags = (array) Facebook()->getOption( 'verify_meta_tag' );
|
1288 |
+
foreach ($metaTags as $tag) {
|
1289 |
+
echo $tag;
|
1290 |
+
}
|
1291 |
+
}
|
1292 |
}
|
1293 |
|
1294 |
/**
|
modules/facebook/options_defaults.json
CHANGED
@@ -63,5 +63,6 @@
|
|
63 |
"woo_complete_registration_custom_value_old": "",
|
64 |
"woo_complete_registration_send_from_server": true,
|
65 |
|
66 |
-
"signal_events_enabled": true
|
|
|
67 |
}
|
63 |
"woo_complete_registration_custom_value_old": "",
|
64 |
"woo_complete_registration_send_from_server": true,
|
65 |
|
66 |
+
"signal_events_enabled": true,
|
67 |
+
"verify_meta_tag": ""
|
68 |
}
|
modules/facebook/options_fields.json
CHANGED
@@ -62,5 +62,6 @@
|
|
62 |
"woo_complete_registration_custom_value_old": "radio",
|
63 |
"woo_complete_registration_send_from_server": "checkbox",
|
64 |
|
65 |
-
"signal_events_enabled": "checkbox"
|
|
|
66 |
}
|
62 |
"woo_complete_registration_custom_value_old": "radio",
|
63 |
"woo_complete_registration_send_from_server": "checkbox",
|
64 |
|
65 |
+
"signal_events_enabled": "checkbox",
|
66 |
+
"verify_meta_tag": "array_textarea"
|
67 |
}
|
modules/facebook/views/html-settings.php
CHANGED
@@ -39,6 +39,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
39 |
<h4 class="switcher-label">Remove Facebook default events</h4>
|
40 |
</div>
|
41 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
</div>
|
43 |
</div>
|
44 |
|
39 |
<h4 class="switcher-label">Remove Facebook default events</h4>
|
40 |
</div>
|
41 |
</div>
|
42 |
+
|
43 |
+
<div class="row">
|
44 |
+
<div class="col">
|
45 |
+
<?php Facebook()->render_switcher_input( 'send_external_id_demo',false,true ); ?>
|
46 |
+
<h4 class="switcher-label">Send external id</h4>
|
47 |
+
<?php renderProBadge();?>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
</div>
|
51 |
</div>
|
52 |
|
modules/pinterest/pinterest.php
CHANGED
@@ -76,10 +76,10 @@ class Pinterest extends Settings implements Pixel {
|
|
76 |
public function renderPixelIdField() {
|
77 |
?>
|
78 |
<div class="row align-items-center">
|
79 |
-
<div class="col-
|
80 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/pinterest-square-small.png">
|
81 |
</div>
|
82 |
-
<div class="col-
|
83 |
Add the Pinterest tag with our <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
84 |
target="_blank">FREE addon</a>.
|
85 |
</div>
|
76 |
public function renderPixelIdField() {
|
77 |
?>
|
78 |
<div class="row align-items-center">
|
79 |
+
<div class="col-2 py-4">
|
80 |
<img class="tag-logo" src="<?php echo PYS_FREE_URL; ?>/dist/images/pinterest-square-small.png">
|
81 |
</div>
|
82 |
+
<div class="col-10">
|
83 |
Add the Pinterest tag with our <a href="https://www.pixelyoursite.com/pinterest-tag?utm_source=pixelyoursite-free-plugin&utm_medium=plugin&utm_campaign=free-plugin-ids"
|
84 |
target="_blank">FREE addon</a>.
|
85 |
</div>
|
pixelyoursite.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
-
define( 'PYS_FREE_VERSION', '8.0
|
8 |
define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
|
9 |
define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
|
10 |
define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
+
define( 'PYS_FREE_VERSION', '8.1.0' );
|
8 |
define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
|
9 |
define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
|
10 |
define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
===PixelYourSite - Your smart PIXEL (TAG) Manager===
|
2 |
-
Contributors: PixelYourSite
|
3 |
Tags: Facebook Pixel, Facebook Conversion API, CAPI, Facebook Pixel Events, Facebook Dynamic Product Ads, Facebook Conversion Value, WooCommerce Facebook Pixel, Easy Digital Downloads Facebook Pixel, Google Analytics, Google Analytics Enhanced Ecommerce, GA4, WooCommerce Google Analytics, Easy Digital Downloads Google Analytics, head & footer scripts, Pinterest tag
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.4
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 8.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -79,7 +79,7 @@ PixelYourSite works with 4 popular “cookie consent” plugins:
|
|
79 |
Cookiebot - [link](https://wordpress.org/plugins/cookiebot/)
|
80 |
GDPR Cookie Consent - [link](https://wordpress.org/plugins/cookie-law-info/)
|
81 |
Cookie Notice Plugin - [link](https://wordpress.org/plugins/cookie-notice/)
|
82 |
-
|
83 |
|
84 |
Additionally we offer filters that developers can use to create their own custom integrations. These filters can control the way each pixel works.
|
85 |
|
@@ -182,8 +182,6 @@ For more details about how [PixelYourSite Pro](https://www.pixelyoursite.com/) c
|
|
182 |
|
183 |
**Learning Section**: we’ve put together a number of articles with all sort of tips and tricks that will help you with your ads. [Click here for our learning section](https://www.pixelyoursite.com/learn)
|
184 |
|
185 |
-
**Video Tips**: watch short videos showing how to do all sort of ads related things. [Click here to watch the video tips](https://www.pixelyoursite.com/video)
|
186 |
-
|
187 |
**Documentation**: learn how to use PixelYourSite free plugin. [Click here for the HELP articles](https://www.pixelyoursite.com/pixelyoursite-free-version)
|
188 |
|
189 |
|
@@ -395,6 +393,12 @@ NO, absolutely not! We don't track any type of data about your website. We simpl
|
|
395 |
|
396 |
== Changelog ==
|
397 |
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
|
399 |
= PixelYourSite 8.0.9 =
|
400 |
|
1 |
===PixelYourSite - Your smart PIXEL (TAG) Manager===
|
2 |
+
Contributors: PixelYourSite
|
3 |
Tags: Facebook Pixel, Facebook Conversion API, CAPI, Facebook Pixel Events, Facebook Dynamic Product Ads, Facebook Conversion Value, WooCommerce Facebook Pixel, Easy Digital Downloads Facebook Pixel, Google Analytics, Google Analytics Enhanced Ecommerce, GA4, WooCommerce Google Analytics, Easy Digital Downloads Google Analytics, head & footer scripts, Pinterest tag
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.4
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 8.1.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
79 |
Cookiebot - [link](https://wordpress.org/plugins/cookiebot/)
|
80 |
GDPR Cookie Consent - [link](https://wordpress.org/plugins/cookie-law-info/)
|
81 |
Cookie Notice Plugin - [link](https://wordpress.org/plugins/cookie-notice/)
|
82 |
+
|
83 |
|
84 |
Additionally we offer filters that developers can use to create their own custom integrations. These filters can control the way each pixel works.
|
85 |
|
182 |
|
183 |
**Learning Section**: we’ve put together a number of articles with all sort of tips and tricks that will help you with your ads. [Click here for our learning section](https://www.pixelyoursite.com/learn)
|
184 |
|
|
|
|
|
185 |
**Documentation**: learn how to use PixelYourSite free plugin. [Click here for the HELP articles](https://www.pixelyoursite.com/pixelyoursite-free-version)
|
186 |
|
187 |
|
393 |
|
394 |
== Changelog ==
|
395 |
|
396 |
+
= PixelYourSite 8.1.0 =
|
397 |
+
|
398 |
+
* Significant UI improvements.
|
399 |
+
|
400 |
+
* New option to verify your domain on Facebook using a meta-tag. [Watch this video for details](https://www.youtube.com/watch?v=lLXZW5eZt4o)
|
401 |
+
|
402 |
|
403 |
= PixelYourSite 8.0.9 =
|
404 |
|