Open leemunroe opened 8 years ago
This is one of those little utility things that I feel like would be on npm already but I can't find anything. I'd probably just write a separate node module for this rather than make it part of juice since it is a different category of transform.
I imagine maybe doing this based on regex and looking for href="(capture)" and just transforming the contents of each capture by appending the query string unless the existing query has some sort of parameter conflict.
Never too late, I guess: https://alter.email
As an email developer I want to be able to pass a query string that is appended to every link so that I can track campaigns in my analytics tool.
After moving from Premailer to Juice for producing inlined CSS for emails, this is one of the features I miss. The workaround right now is to manually add it to links. It would be great if there was an option.
Reference: https://github.com/dwightjack/grunt-premailer#optionsquerystring