Hi there,
Is it possible to combine Piwik variables in Custom Event Action or Name? It’s been quite common to do this in UA, when you need to have several data points in one field.
I tried this in a couple Custom Event tags and got a “0” in the reports.
Or are Custom Dimensions the way to go?
Hi mikkovai!
It’s currently not possible to combine 2 different Piwik PRO Tag Manager variables in one field.
You could either:
- Create a Custom JS variable that joins both of these variables into a single string and then use it in the Name field.
- Create a custom dimension to store the additional variable information.
1 Like
@mikkovai it is possible to do that with “+”, like so:
Result:
I hope it helps, cheers!
2 Likes
Hi gonerator!
Just FYI - it works as of now but it might not work in the future in case we decide to change how the fields are being parsed.
1 Like
Good to know, thanks! I still rather use custom js
Hi,
as someone wrote, either you store them in a Custom JS or you write in a i.e. notepad the variables you need in the same structure you need to get them in action or name and then copy-paste in the action/name field. For instance write down "{{ DLV var1 }} | payment card:{{ var2 - Custom JS }} | {{ DLV var3 }} and then copy them in the field.
In our case it works fine and that also was the Piwik’s recommendation.
So you got it working without the “+” sign between the variables?