---
# System prepended metadata

title: Create merge field for Mailjet using EmaticJS

---

# Create merge field for Mailjet using EmaticJS
```javascript=

function EmaticsCustom(email){
	var mergeVars = {
		groupings: [
			{
				name: "MailjetSource",
				groups: ["Subscription box"]
			}
		]
	}

	ematics("subscribe","", email, mergeVars, function(e){
		if (e["error"] == 0) { 
			// Success
		} else { 
			// Error
			// console.log(e["errorMessage"])
		}
	});
}
```

No need to have the property created in Mailjet, the EmaticJS will create for us