Bienvenido, Invitado
Recordarme

TEMA:

Adding Google tag manager onclick attribute to Submit button 5 meses 1 semana antes #262453

  • Autor del tema
  • Breezrusr
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 19
  • Gracias recibidas: 0
Yes I did try without the return keyword in Method 1 and Method 2.

I just noticed that for both methods the console returns a javascript error upon loading the page:

Method 1 (with or with the return keyword):

Uncaught TypeError: document.ff_form21 is undefined
ff_validation www.example.com/your-link:600
ff_validate_submit www.example.com/your-link:622
<anonymous> www.example.com/your-link:639
free-audit-request:600:213
ff_validation www.example.com/your-link:600
ff_validate_submit www.example.com/your-link:622
<anonymous> www.example.com/your-link:639

This is the learn more link given with the error:
developer.mozilla.org/en-US/docs/Web/Jav...rors/Unexpected_type

The error disappear when I put the Actionscript parameter of the custom Submit button to None.

For method 2 (with or without the return keyword):

Uncaught ReferenceError: ff_FreeAuditRequest_breezy_EN_init is not defined
ff_initialize www.example.com/your-link:555
onload www.example.com/your-link:557
EventHandlerNonNull* www.example.com/your-link:556
free-audit-request:555:29
ff_initialize www.example.com/your-link:555
onload www.example.com/your-link:557
(Async: EventHandlerNonNull)
<anonymous> www.example.com/your-link:556

This is the learn more link given with the error:
developer.mozilla.org/en-US/docs/Web/Jav...e/Errors/Not_defined

The error disappear when I turn off the custom initialization script.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Breezrusr.

Adding Google tag manager onclick attribute to Submit button 5 meses 1 semana antes #262466

  • Avatar de Mirec
  • Mirec
  • Conectado
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 1584
  • Karma: 2
  • Gracias recibidas: 83
Hi,

could you please send me login information, backend link on email ma@evolutio.hr

I'll connect to your server and solve your problem.

Regards,
Mriko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Adding Google tag manager onclick attribute to Submit button 5 meses 1 semana antes #262496

  • Autor del tema
  • Breezrusr
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 19
  • Gracias recibidas: 0
I just sent you the credentials to login. You'll have access to the development environment, so feel free to disable/enable anything you want in order to help you find a solution.

Thanks.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Breezrusr.

Adding Google tag manager onclick attribute to Submit button 5 meses 1 semana antes #262520

  • Avatar de Mirec
  • Mirec
  • Conectado
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 1584
  • Karma: 2
  • Gracias recibidas: 83
Hi,

ok, thank you!

Regards,
Mirko

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Adding Google tag manager onclick attribute to Submit button 5 meses 1 semana antes #262537

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 8368
  • Karma: 3
  • Gracias recibidas: 581
Hi @Breezrusr,

have you seen this article about google tracking code:
crosstec.org/en/support/online-documenta...ogle-analyticys.html

I think this is better way to add it

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Adding Google tag manager onclick attribute to Submit button 5 meses 6 días antes #262674

  • Autor del tema
  • Breezrusr
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 19
  • Gracias recibidas: 0
Hi @Tihana,

Thanks for the suggestion. I'm actually using a temporary solution like the one you're suggesting but instead of having the code inserted in form pieces section of the form, I'm calling a function directly on the page if the url is actually the thank you page, like so:

if(window.url = www.company123.com/thank-you ){

//Page view triggered google tag manager code called here

}

It's doing the job for now but I feel it's more of a tweak than how it should really be done so I'm waiting for the solution to insert the proper code inside the button like it should be done.

Thanks.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
  • 2
  • 3
Moderadores: ForumSupport
Tiempo de carga de la página: 0.049 segundos