Find Jobs
Hire Freelancers

Need Javascript for Google Tag Manager expert

$10-30 AUD

En curso
Publicado hace alrededor de 1 año

$10-30 AUD

Pagado a la entrega
To indicate you have read the description and are qualified for this job, please start your application with the following words. Any applications that do not will be ignored. "js - tag manager - undefined error" That means I'm NOT just looking for someone who can write javascript, I want someone who is also experienced with writing js for Google Tag Manager, AND can troubleshoot errors on the platform. I work with Tag Manager a lot but I know nothing about javascript, so there is a good likelihood of ongoing work for the right person THE JOB: It's really very simple. I need to remove a dollar sign from a variable that I have scraped from the DOM. I have used the following code to remove the dollar sign, and the person who wrote the code assures me it should work, but it is only ever returning "undefined" function() { var priceText = {{Booking Price}}; var regex = /([0-9.,]+)/; if ([login to view URL](priceText)) { return [login to view URL](regex)[0].replace(/,/g, ''); } } That code is more complex than it needs to be because it is written to remove ANY unnecessary characters from a price. ALL I need to do is to remove the left-most character OR remove dollar signs from the existing variable. Please only bid if you are confident you can perform the job. No time-wasters!
ID del proyecto: 36277150

Información sobre el proyecto

10 propuestas
Proyecto remoto
Activo hace 1 año

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
10 freelancers están ofertando un promedio de $39 AUD por este trabajo
Avatar del usuario
Hi, I'm a Google Analytics consultant with experience since 2016 year. I have worked with more than 150+ sites from simple event tracking to complex projects for big companies. I can identify for you what need to track for your business before implementation if you want. I will setup Google analytics & I will also setup Google tag manager and integrate it with your site for Free. Additionally i can also setup and fix all errors related to Google Ads, Google Search Console & Facebook Pixel. I can also provide the following event tracking and other services in Google Analytics for you: Setup Google Analytics 4 (GA4) Upgradation (New Feature) Setup Goals & Funnels Setup Conversion & event tracking Setup Google Ads Conversion Tracking Google Ads Remarketing Enhanced E-Commerce Tracking Setup Custom Dimensions & Metrics Setup Custom Dashboards & Alerts Setting up Filters and Custom Reports and much more!
$200 AUD en 7 días
5,0 (6 comentarios)
4,3
4,3
Avatar del usuario
Hi, We went through your project description and it seems like our team is a great fit for this job. We are an expert team which have many years of experience on JavaScript, Google Tag Management Please come over chat and discuss your requirement in a detailed way. Regards
$20 AUD en 7 días
5,0 (1 comentario)
0,0
0,0
Avatar del usuario
js - tag manager - undefined error:I am able to do it, the error in your function not because of code, replacing method is now too old, I will us new one.
$20 AUD en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
solucion: in JavaScript and uses regular expressions to remove the dollar sign from a string. However, there are a few issues with the code that could be causing it to return "undefined". Firstly, the code is written as an anonymous function with no name, and it is not clear how you are invoking this function. In order to use the code, you should either give the function a name and call it explicitly, or place the code inside a script tag in your HTML file so that it runs automatically when the page is loaded. Secondly, the regular expression in the code is looking for digits, commas, and periods within the string, but it is not explicitly looking for a dollar sign. If your variable {{Booking Price}} includes a dollar sign, you should modify the regular expression to include it. For example, you could change the regex variable to: var regex = /\$?([0-9.,]+)/; This regex will match an optional dollar sign followed by one or more digits, commas, or periods. Lastly, if the {{Booking Price}} variable does not include a valid price value that matches the regular expression, the function will return undefined. You should make sure that the variable is properly defined and contains a valid price value before invoking the function.
$15 AUD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
js - tag manager - undefined error. hi i can fix your problem. just give me a little more details about the project like: is the variable an string?
$20 AUD en 7 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
js - tag manager - undefined error It sounds like you're experiencing an issue with the custom JavaScript code in Google Tag Manager that is intended to remove a dollar sign from a variable scraped from the DOM. I can certainly help you with this.
$20 AUD en 1 día
5,0 (1 comentario)
0,0
0,0
Avatar del usuario
Hello, I can help you with what you need! Nice to meet you, I'm Vinicius Bene, I've served more than 30 different branches and more than 70 companies and I'm sure I can help you!
$20 AUD en 7 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de AUSTRALIA
Flemington, Australia
4,8
28
Forma de pago verificada
Miembro desde ago 7, 2015

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.