Tracking lead (via GTM)

Hi,

I try to track custom events. But I’ve got error messages in dataLayer during validation test.

“The method ‘generate_lead’ was not found in “_paq” variable. Please have a look at the Piwik tracker documentation”

“The method ‘job_offer’ was not found in “_paq” variable. Please have a look at the Piwik tracker documentation”

I think I used the right framework in Google Tag Manager. I also tried with Piwik Tag Manager.

image

Is there something I’m missing?

Have a great day,
Olivier

Hi @olive,

Syntax for the custom event method is a bit different:

It should look something like this:
_paq.push(["trackEvent", "generate_lead", "Lead", "domaine"]);

1 Like

Hi Anthony,

Thanks! It seems better.

It should be like this, right?

image

Thank you so much.

Olivier

Looks good. You can always use the tracker debugger to see whether any of the tracked events are being processed correctly.

Thank you for your help @anthonybartczak