Ah got it. Adding those in the email would be a little more difficult but should be possible.
You need to do two things for each utm field you want to add in your email:
1.- Add a hidden field in your form:
You can hide a field by adding this code in the css section of your form:
.sfForm #rnField6{
display:none;
}
Please change rnField6 for your field id (which you can find in the advanced tab of each field settings)
2.- Add a formula that will get the value form the url, a formula like this should do the trick:
function parse_query_string(query) {
var vars = query.split("&");
var query_string = {};
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (typeof query_string[pair[0]] === "undefined") {
query_string[pair[0]] = decodeURIComponent(pair[1]);
} else if (typeof query_string[pair[0]] === "string") {
var arr = [query_string[pair[0]], decodeURIComponent(pair[1])];
query_string[pair[0]] = arr;
} else {
query_string[pair[0]].push(decodeURIComponent(pair[1]));
}
}
return query_string;
}
return parse_query_string(window.location.href).utm_source;
The formula is very big but all you need to do is change utm_source for the value that you want to retrieve from your url.
Hope this helps but if it doesn’t (or if you have more questions) please let me know. Also if you have a chance please don’t forget to 5 start review the plugin =).
-
This reply was modified 6 years, 10 months ago by
EDGARROJAS.