Events formatting from GTM

Hello,

I am currently converting GA3 events to Piwik pro From Google Tag Manager . In GA3, my event looks like so and works perfectly well.

image

I was converting this event for PiwikPro using this script using the same trigger

image

I can see that the event is getting fired to PiwikPro, but the values are not passed

image

Any idea how the values should be concatenated for this to work with PiwikPro?

Thank you!

Hi,

there are “too many parameters” and the format is invalid for your events. Put all the variables and separators inside the string you are sending, moving the last " from "funds download " right to the end before the comma for the first parameter. Enclose the second parameter (starting behind the comma until the last GTM variable) in ", too. This should fix it - check the browser console for error messages as well.

best,
Markus

3 Likes

Exactly like @mbaersch said,
The method should look somewhat like this:

_paq.push(["trackEvent", "file_downloads", "Funds download - {{DLV - eventCountry}} - {{DLV - eventLanguage}} - {{DLV - eventUserCategory}}", "{{DLV - eventDocName}} - {{DLV - eventDocLanguage}} - {{DLV - eventFundID}}"]);
2 Likes

Thank you very much both of you. It works perfectly now. Much appreciated

1 Like