Skip to main content
Version: Next

Link Activity Tracking

CMF can track opened newsletter links as customer activities, so you can track activities directly on the customer object in Pimcore and use that information for further processing, such as assigning customer segments, and for personalization.

Functionality in a Nutshell

  • A central definition object creates links used in newsletters.
  • Created links point to a landing page and carry additional tracking parameters:
    • Campaign tracking in Google Analytics, via UTM parameters.
    • Activity tracking for each customer in CMF, via the cmfc parameter. By default it is filled with a merge tag (for example cmfc=*|ID_ENCODED|*); the newsletter provider (for example Mailchimp) replaces it with the customer ID while sending.

Detailed Configuration Workflow

  1. Create a LinkActivityDefinition object and fill in its data, at least Type and Landing page link.

    LinkActivityDefinitionLinkActivityDefinitionLinkActivityDefinition

  2. Link the LinkActivityDefinition object into a link in the newsletter, via drag and drop. Pimcore generates the corresponding link to the landing page with all parameters.

    The link looks something like this: https://demo.pimcore.com/en?utm_source=newsletter&utm_medium=button&utm_campaign=summer&cmfa=5ccc38eacb2be&cmfc=*|ID_ENCODED|*

  3. Send the newsletter through your newsletter provider, for example Mailchimp.

    The provider replaces the merge tag (*|ID_ENCODED|*) with the correct customer ID.

  4. When a customer clicks the link and opens the landing page, CMF tracks a corresponding activity for that customer:

    • Type is the Type from the LinkActivityDefinition object.
    • Every additional attribute on the LinkActivityDefinition object is added as an attribute on the activity.

    Tracked link activityTracked link activityTracked link activity

Additional Configuration

The CMF Symfony configuration tree has two options for the link activity tracker:

    activity_url_tracker:
enabled: true
# used for automatic link generation of LinkActivityDefinition data objects
linkCmfcPlaceholder: '*|ID_ENCODED|*'
  • enabled: enables or disables link tracking.
  • linkCmfcPlaceholder: the placeholder for the customer ID, replaced when the newsletter is sent. The default value is for Mailchimp.

Usage with Built-in Newsletter Sending

Link activity tracking also works with Pimcore's built-in newsletters. The configuration workflow stays the same; only linkCmfcPlaceholder in the configuration tree needs to change:

    activity_url_tracker:
enabled: true
# used for automatic link generation of LinkActivityDefinition data objects
linkCmfcPlaceholder: '%Text(ID_ENCODED);'