URL Parameters

Maizzle can automatically append custom URL parameters to your links.

Useful if you need analytics beside the ones from your ESP.

Global

To add the same URL parameters to all links in all templates, update the empty object in your environment config:

// config.js
module.exports = {
  urlParameters: {
    utm_source: 'maizzle',
    utm_campaign: 'Campaign Name',
    utm_medium: 'email',
    custom_parameter: 'foo',
    '1stOfAugust': 'bar',
  }
  // ...
}

Local

Of course, you can define URL parameters at a Template level, through Front Matter:

---
title: "These URL params are unique to this template"
urlParameters:
  utm_source: custom
  utm_campaign: "Pre-launch August"
  # ...
---

{% block template %}
  ...
{% endblock %}