Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

250
Vistas
Why is text not working as link in Snapchat Pixel code?

I ran into an issue where this portion of the pixel code below was not recognized as a link and as a result the pixel would not fire:

https://sc-static.net/scevent.min.js [The pixel code was provide in a Google document; I copy and pasted the script below]

<script type='text/javascript'>
    (function(e,t,n){if(e.snaptr)return;var a=e.snaptr=function()
    {a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)};
    a.queue=[];var s='script';r=t.createElement(s);r.async=!0;
    r.src=n;var u=t.getElementsByTagName(s)[0];
    u.parentNode.insertBefore(r,u);})(window,document,
    'https://sc-static.net/scevent.min.js');
    
    snaptr('init', 'xxxxxxxxx-xxxxxxx-xxxxxxxx-xxxxxxxxx', {
    'user_email': '__INSERT_USER_EMAIL__'
    });
    
    snaptr('track', 'PAGE_VIEW');
    
    </script>

I eventually copy the pixel from the ads account and pasted it in. The pixel tag worked! ...But why?

I compared the two https://diffchecker.com/diff

Image of DiffChecker Results - Pixel copied from Google document vs copied from ads manager account.

Then I tested the code to compare the strings, result:

//ValueOne is copy/pasted from Google document
var valueOne = 'https‍://sc-static.‍net/scevent.min.‍js';

//ValueTwo is copy/pasted from ads account provided pixel code
var valueTwo = 'https://sc-static.net/scevent.min.js';

console.log('Check 1 Result: ' + valueOne === valueTwo);
console.log('Check 2 Result: ' + valueOne == valueTwo);

Output: Code Output

Warning Message in Code Output image:

Warning Message in Code Output image

How I can write code to catch and fix this? I am curious how the valueOne string can be converted to the valueTwo string/link?

If there is anything else to know, let me know.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda