File: /home/lesanew/www/wp-content/themes/neobeat/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<link rel="profile" href="https://gmpg.org/xfn/11">
<meta name="theme-color" content="#f3eade">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Les Ânes TÊTus" />
<meta name="application-name" content="Les Ânes TÊTus" />
<meta name="mobile-web-app-capable" content="yes" />
<?php if ( is_singular() && pings_open( get_queried_object() ) ) { ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php } ?>
<?php wp_head(); ?>
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src='https://connect.facebook.net/fr_FR/fbevents.js';
s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script');
fbq('init', '8932749213514900'); // 👈 Ton ID pixel ici
fbq('track', 'PageView');
</script>
<!-- 💸 Track Purchase UNIQUEMENT sur la page de remerciement -->
<?php if ( is_page('billetterie') && isset($_GET['key']) ) :
$order_id = wc_get_order_id_by_order_key( $_GET['key'] );
$order = wc_get_order( $order_id );
if ( $order && in_array( $order->get_status(), ['processing', 'completed'] ) ) :
$total = $order->get_total();
$currency = $order->get_currency();
?>
<script>
fbq('track', 'Purchase', {
value: <?= esc_js( $total ); ?>,
currency: '<?= esc_js( $currency ); ?>'
});
</script>
<?php endif; endif; ?>
<!-- ✅ Fin suivi achat -->
<noscript>
<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=8932749213514900&ev=PageView&noscript=1"/>
</noscript>
<!-- End Meta Pixel Code -->
</head>
<body <?php body_class(); ?> itemscope itemtype="https://schema.org/WebPage">
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
// Hook to include additional content after body tag open
do_action( 'neobeat_action_after_body_tag_open' );
?>
<div id="qodef-page-wrapper" class="<?php echo esc_attr( neobeat_get_page_wrapper_classes() ); ?>">
<?php
// Hook to include page header template
do_action( 'neobeat_action_page_header_template' ); ?>
<div id="qodef-page-outer">
<?php
// Include title template
get_template_part( 'title' );
// Hook to include additional content before page inner content
do_action( 'neobeat_action_before_page_inner' ); ?>
<div id="qodef-page-inner" class="<?php echo esc_attr( neobeat_get_page_inner_classes() ); ?>">