Conversion and Subscriptions tracking

Marfeel allows tracking goals and conversions like subscribing to a newsletter, signing up to the site, playing a video or subscribing to a paywall. When you track a conversion Marfeel automatically infers the context and calculates different attribution models.

Subscriptions

To track a new subscription invoke the trackConversion method:

window.marfeel = window.marfeel || { cmd: [] };
window.marfeel.cmd.push(['compass', function(compass) {
	compass.trackConversion('subscribe');
}]);

Registrations & generic goal tracking

You can track different conversions providing different conversion names.

window.marfeel.cmd.push(['compass', function(compass) {
	compass.trackConversion('Newsletter Elections');
}]);
window.marfeel.cmd.push(['compass', function(compass) {
	compass.trackConversion('signup');
}]);

Automatic conversion tracking

Marfeel can automatically track conversions when:

  • A user clicks on a <button> or <a > element
  • A user submits a <form>
  • For button and a elements, Compass will register a conversion when a click is triggered.
  • For form element, Compass will register a conversion when a submit is triggered.

To do so add the attribute data-mrf-conversion="nameOfTheConversion" to the element you want Marfeel to track. Example:

<form data-mrf-conversion="newsletterSubscription">
	<input type="submit" value="Submit" />
</form>

<a href="/last-news" data-mrf-conversion="lastNews-header" />

<button class="btn btn-big icon–like" data-mrf-conversion="likeButton" />

Conversion parameters

Conversion parameters are structured data points attached to a conversion that describe what exactly happened during a user interaction. They add context to conversions by capturing the specific details behind an action, turning a generic event into an analyzable signal.

By using conversion parameters, you can measure behavior with precision: which video was watched, which button drove the conversion or which product was added to cart. This granularity is what makes conversions explainable, comparable, and optimizable.

You can add a conversion parameter using the meta parameter to send additional contextual information as key–value pairs when tracking a conversion.

window.marfeel.cmd.push(['compass', function(compass) {
	compass.trackConversion('Newsletter Elections', {
		meta: {
			template: 'A',
			position: 'header'
		}, 
		value : 123
	});
}]);

The conversion above includes two conversion parameters:

  • template describes the template used
  • position indicates where it was added

Conversion parameters vs. dimensions and metrics

Conversion parameters are used to gather data from a website or app.

The data from conversion parameters feeds into dimensions and metrics. These dimensions and metrics are available in reports, explorations, and other surfaces throughout Marfeel so you can analyze the data.