Вопрос Событие пикселя работает, но вообще не отображается на FB

Вопрос
Gianni Durante

Gianni Durante

Регистрация
24 Июл 2024
Сообщения
1
Реакции
0
Включить нумерованное содержание?
Нет
Здравствуйте, можно ли писать на английском?
Я хочу попросить о помощи, если у кого-то есть несколько минут.

Я не могу разобраться с пикселем Facebook на странице «Спасибо», я хочу учитывать только отправленные лиды, а не пустые формы и «поддельные» лиды.

Что я сделал:
1. Добавил следующий код в форму целевой страницы:
<input type="hidden" name="pixel" value="{pixel}" />

2. На странице «Спасибо» я добавил следующий код:
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id={pixel}&ev=Lead&noscript=1"/>

<meta name="referrer" content="no-referrer">

3. Пиксель получен через параметр URL ?pixel=2491242197215

Работает отлично, событие пикселя считывается и работает, но оно вообще не отображается на Facebook, всегда остается на 0 лидов...

Что я делаю не так, кто-нибудь может мне помочь, пожалуйста?

Thank you for your time, I hope translation is alright and you can understand me. :)
 
Hello! It looks like you're trying to track only submitted leads using Facebook Pixel on your "Thank You" page, but you're encountering an issue where the pixel events are not showing up in Facebook. Here are some suggestions to troubleshoot and resolve the issue:

Step-by-Step Guide to Troubleshooting Facebook Pixel on Thank You Page

Verify Pixel Setup Using Facebook Pixel Helper**:

  • Install the [Facebook Pixel Helper] Chrome extension.
  • Visit your "Thank You" page and check if the Pixel Helper detects the pixel and the Lead event.
  • This tool will show you if the pixel is firing correctly and if there are any errors.
Ensure Pixel Code Correctness
  • Double-check your pixel code. The format should be as follows:
```html
<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id={pixel}&ev=Lead&noscript=1"/>
```
  • Make sure `{pixel}` is replaced with your actual pixel ID.
Correctly Pass Pixel ID Through URL
Check for URL Parameter Handling
  • Ensure your "Thank You" page correctly handles the URL parameter and embeds it into the pixel code.
  • Example JavaScript to embed the pixel ID from the URL parameter:
```html
<script>
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}

var pixelID = getParameterByName('pixel');
if (pixelID) {
var img = document.createElement('img');
img.height = 1;
img.width = 1;
img.style.display = 'none';
img.src = 'https://www.facebook.com/tr?id=' + pixelID + '&ev=Lead&noscript=1';
document.body.appendChild(img);
}
</script>
```
Check Pixel Events in Facebook Events Manager
  • Go to Facebook Events Manager and check if the events are being received.
  • Sometimes there can be a delay in events showing up in Facebook, so wait for some time and check again.
Test Pixel with Manual Trigger
Ensure Referrer Policy is Correct
  • You have the following meta tag, which is correct:
```html
<meta name="referrer" content="no-referrer">
  • This ensures that no referrer information is sent, which can sometimes cause issues with pixel tracking.
Check for JavaScript Errors
Open the browser console (F12 or right-click > Inspect > Console) and check for any JavaScript errors that might be preventing the pixel from firing.

By following these steps, you should be able to identify and fix the issue with your Facebook Pixel not registering leads correctly. If the issue persists, please provide more details about the implementation, and I can help you further troubleshoot the problem.
 
Назад
Верх