You are using incompatible version of . PixelYourSite requires at
least . Please, update to
latest version.
getOption('server_access_api_token');
if(Facebook()->enabled() && !$apiTokens)
{
$meta_key = 'pys_notice_dont_CAPI_start_delay';
$user_id = get_current_user_id();
$start_delay = get_user_meta( $user_id, $meta_key );
$day_ago = time() - DAY_IN_SECONDS;
if($start_delay && $start_delay > $day_ago) {
adminRenderNotCAPI(PYS());
}
else if(!$start_delay){
update_user_meta($user_id, $meta_key, time());
}
}
if ( isPinterestActive( false ) && isPinterestVersionIncompatible() ) {
adminIncompatibleVersionNotice( 'PixelYourSite Pinterest Add-On', PYS_FREE_PINTEREST_MIN_VERSION );
} elseif ( isPinterestActive() ) {
$expire_at = Pinterest()->getOption( 'license_expires' );
if ( $expire_at && $now > $expire_at ) {
adminRenderLicenseExpirationNotice( Pinterest() );
}
}
if ( isBingActive( false ) && isBingVersionIncompatible() ) {
adminIncompatibleVersionNotice( 'PixelYourSite Bing Add-On', PYS_FREE_BING_MIN_VERSION );
} elseif ( isBingActive() ) {
$expire_at = Bing()->getOption( 'license_expires' );
if ( $expire_at && $now > $expire_at ) {
adminRenderLicenseExpirationNotice( Bing() );
}
}
/**
* Pixel ID notices
*/
$facebook_pixel_id = Facebook()->getPixelIDs() ;
if ( Facebook()->enabled() && empty( $facebook_pixel_id ) ) {
$no_facebook_pixels = true;
} else {
$no_facebook_pixels = false;
}
$ga_tracking_id = GA()->getPixelIDs() ;
if ( GA()->enabled() && empty( $ga_tracking_id ) ) {
$no_ga_pixels = true;
} else {
$no_ga_pixels = false;
}
$pinterest_pixel_id = Pinterest()->getOption( 'pixel_id' );
$pinterest_license_status = Pinterest()->getOption( 'license_status' );
if ( isPinterestActive() && Pinterest()->enabled()
&& ! empty( $pinterest_license_status ) // license active or was active before
&& empty( $pinterest_pixel_id ) ) {
$no_pinterest_pixels = true;
} else {
$no_pinterest_pixels = false;
}
if ( isPinterestActive() ) {
if ( $no_facebook_pixels && $no_ga_pixels && $no_pinterest_pixels ) {
adminRenderNoPixelsNotice();
} else {
if ( $no_facebook_pixels ) {
adminRenderNoPixelNotice( Facebook() );
}
if ( $no_ga_pixels ) {
adminRenderNoPixelNotice( GA() );
}
if ( $no_pinterest_pixels ) {
adminRenderNoPixelNotice( Pinterest() );
}
}
// show notice if licence was never activated
if (Pinterest()->enabled() && empty($pinterest_license_status)) {
adminRenderActivatePinterestLicence();
}
} else {
if ( $no_facebook_pixels && $no_ga_pixels ) {
adminRenderNoPixelsNotice();
} else {
if ( $no_facebook_pixels ) {
adminRenderNoPixelNotice( Facebook() );
}
if ( $no_ga_pixels ) {
adminRenderNoPixelNotice( GA() );
}
}
}
if ( isBingActive() ) {
$bing_license_status = Bing()->getOption( 'license_status' );
// show notice if licence was never activated
if (Bing()->enabled() && empty($bing_license_status)) {
adminRenderActivateBingLicence();
}
}
/**
* GDPR
*/
if ( isCookieLawInfoPluginActivated() && ! PYS()->getOption( 'gdpr_ajax_enabled' ) ) {
adminGdprAjaxNotEnabledNotice();
}
}
/**
* @param Plugin|Settings $plugin
*/
function adminRenderLicenseExpirationNotice( $plugin ) {
if ( 'pixelyoursite' == getCurrentAdminPage() ) {
return; // do not show notice on plugin pages
}
$slug = $plugin->getSlug();
$user_id = get_current_user_id();
// show only if never dismissed or dismissed more than a week ago
$meta_key = 'pys_' . $slug . '_expiration_notice_dismissed_at';
$dismissed_at = get_user_meta( $user_id, $meta_key );
if ( $dismissed_at ) {
if ( is_array( $dismissed_at ) ) {
$dismissed_at = reset( $dismissed_at );
}
$week_ago = time() - WEEK_IN_SECONDS;
if ( $week_ago < $dismissed_at ) {
return;
}
}
$license_key = $plugin->getOption( 'license_key' );
?>
Your getPluginName(); ?> license key is expired, so you no longer get any updates. Don't miss our
latest improvements and make sure that everything works smoothly.
If you renewed your license but you still see this message, click on the "Reactivate License" button.
getSlug();
$user_id = get_current_user_id();
// show only if never dismissed or dismissed more than a week ago
$meta_key = 'pys_' . $slug . '_CAPI_notice_dismissed_at';
$dismissed_at = get_user_meta( $user_id, $meta_key );
if ( $dismissed_at ) {
if ( is_array( $dismissed_at ) ) {
$dismissed_at = reset( $dismissed_at );
}
$week_ago = time() - WEEK_IN_SECONDS;
if ( $week_ago < $dismissed_at ) {
return;
}
else
{
?>
PixelYourSite Tip: Don't forget to enable Meta Conversion API events. They can improve your ads performance and conversion tracking. Watch this video to learn how: watch the video.
PixelYourSite Tip: Improve your Meta Ads conversion tracking and performance with Conversion API events. Simply add your token to enable CAPI. Watch this video to learn how to do it: watch the video.
Activate your Pinterest add-on license: click here.
Activate your PixelYourSite Microsoft UET (Bing) add-on license: click here.
You have no pixel configured with PixelYourSite. You can add the Meta Pixel (formerly Facebook Pixel), Google Analytics or the
Pinterest Tag. Start tracking
everything now
getSlug();
$user_id = get_current_user_id();
// do not show dismissed notice
$meta_key = 'pys_' . $slug . '_no_pixel_dismissed_at';
$dismissed_at = get_user_meta( $user_id, $meta_key );
if ( $dismissed_at ) {
return;
}
?>
Add your Meta Pixel (formerly Facebook Pixel) ID and start tracking everything with PixelYourSite. Click Here
Add your Google Analytics tracking ID inside PixelYourSite and start tracking everything. Enhanced
Ecommerce is fully supported for WooCommerce or Easy Digital Downloads. Click Here
(If you use another Google Analytics plugin, disable it in order to avoid conflicts)
Add your Google Analytics ID inside PixelYourSite and start tracking everything. Click Here
(If you use another Google Analytics plugin, disable it in order to avoid conflicts)
Add your Pinterest pixel ID and start tracking everything with PixelYourSite. Click Here
disabled="disabled" class="custom-switch-input">
'.$label.' ';
}
function renderCogBadge( $label = "You need this plugin" ) {
$url = 'https://www.pixelyoursite.com/woocommerce-cost-of-goods';
echo ' '.$label.' ';
}
function renderSpBadge() {
echo ' Pro Feature ';
}
function renderHfBadge() {
echo ' Pro Feature ';
}
function addMetaTagFields($pixel,$url) { ?>