I am just wondering why are there some tags, that do not contain an option to edit the data mapping (eg Piwik), where it would be required or at least beneficial.
And more importantly, how can I map values to parameters for these tags?
Hi Sebastian, the mapping toolbox is not implemented for Piwik tags because sending custom data is not a matter of just adding query string parameters to a pixel url.
_paq.push([ 'setCustomVariable','1','VisitorType','Member' ]);
If you have a data layer variable called visitor_type, you could put this code in a JS Code extension and you would send the variable to Custom Variable 1:
_paq.push([ 'setCustomVariable','1','VisitorType', b.visitor_type ]);
In a JS Code extension, "b" is a reference to the data object, so b.visitor_type is your visitor_type variable.
Does that help solve your problem? If you have a lot of mappings to add, then we could put in a request for the mapping code to be implemented in the tag to support this.
I'll get in touch with you directly to discuss further.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.
To add to Fiann's excellent answer is regard to Piwik, I'd like to answer the question in a broader focus for other users.
Not all tags are setup to accept additional data mappings. This is usually more a limitation of the tag than Tealium. Each tag we implement is hand built, and data mappings are always a key aspect to review when creating the template. If we are incorrect we can quickly apply the ability to add mappings to a tag, just let your Account Manager know.
I am quite new to Piwik, but this is more or less the same than for eg Adobe. There is some client code that is than replaced by the Tealium Tag. The Tealium builds the request URL based on the data mapping. This should be possible for Piwik as well (as Craig also wrote below).
Just want to understand when and why this is the case.