we’ve been tracking the submission of formulars on our website with custom events (NOT set by Google Tag Manager) with category, action and label. These events are our conversions in Google Analytics right now. Here’s the link to one of our products. The event tracking is working the same on every product page.
Is it possible to use the same events for setting up conversions in PIWIK Pro? Unfortunately I wasn’t able to do so.
When I enter this code in the browser’s console I’ll get the following error:
Uncaught SyntaxError: illegal character U+201C
But for Google Analytics the event tracking is working, so there shouldn’t be any problem I guess?
Does the PIWIK Pro code has to be the first code after the tag? As I’ve seen that the agency that has coded the website has written it after another code in second place.
You can pass the gtag variable as event name, that’s not a problem (it’s the next param after event name which is set to gesendet). Most likely just something in your code wasn’t right and thus this variable caused some errors. So yes, you can even pass the name / text from this form.
Could you check in the browser’s console if this variable actually is defined and works? You can use console.log(variablename); to do that.