Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FB Noscript code correction #41

Open
manucaralmo opened this issue Sep 20, 2021 Discussed in #40 · 0 comments
Open

FB Noscript code correction #41

manucaralmo opened this issue Sep 20, 2021 Discussed in #40 · 0 comments

Comments

@manucaralmo
Copy link
Owner

Discussed in #40

Originally posted by ellismp September 19, 2021
Hi unless I'm missing something I think lines 151++ should be something like this otherwise the IMG tag is missing

  let FacebookPixelNS = document.createElement('noscript');
  let FacebookPixel = document.createElement('img');
  FacebookPixel.setAttribute('height', `1`);
  FacebookPixel.setAttribute('width', `1`);
  FacebookPixel.setAttribute('style', `display:none`);
  FacebookPixel.setAttribute('src', `https://www.facebook.com/tr?id=${this.tracking.FacebookPixelCode}&ev=PageView&noscript=1`);
  FacebookPixelNS.appendChild(FacebookPixel);
  document.head.appendChild(FacebookPixelNS);

Best
Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant