How to integrat html code in the body ? ( not custom html )


Hi,

this must be placed before the closure of< head> :

     

and this function should be called after the form validated and sent :

ga(‘send’, ‘event’, ‘Formulaire-valide’, ‘Formulaire-Devis-Adwords’, ‘Formulaire-Landing-page’);
thanks !


2 replies

Camille,

You can do this one of two ways.  If you go to your scripts manager and add the GA script and tell it to fire in the head on all pages for that domain you are 2/3 of the way home.

Then you can add the ga(event scirpt to the form confirmation dialog for that page.

You can also do all of this with google tag manager, but that gets more complicated.

Good Luck!

Joe

Hi Joe,

Thanks for your fast answer.

It seems ok for the globlal tracking script.

For GA event, we have to put a bit of script on 3 different landing pages under the same domain.

For example for this page, the script have to track the form validation :

http://www.salonsdelaveyron.fr/demande-info/

When you say “Then you can add the ga(event scirpt to the form confirmation dialog for that page.” could you give more details ? (where we have to put the script ?)

Thanks in advance foy your help,

Camille,

Reply