To be able to apply an injection rule to a link in a message, you must first create and configure this rule.

An injection rule is associated to a specific project, to one or multiple communication types and to one or multiple domains. And the rule must contain the applicable parameters.

Access Path> Contact > Messages > Injection rules

 How To

Step 1 - Create the rule
  1. Start by selecting the project for which you want to create the rule.
  2. In the page listing existing rules, click on Create a rule.
  3. In the rule creation window, type in a name for your new rule.
    When the rule is applied to a message, this is the name that you will see under the additional edit options, under the Link tracking section, and Link tracking sub-section.
  4. In the Type field, indicate whether the message is using version 1 or version 2 format. Only one selection is possible.
  5. In the Communication type field, select the communication type to which you want to apply the rule. You can choose to apply the rule to all communication types (in which case, the value is the Default value) or to a specific communication type. The communication types listed correspond to those that were created for the current project.
    *Note that it is not possible to change the category once the rule is created.
  6. In the URLs field, type in all the domains to which you want to add the parameters that you will add to the rule. If needed, you'll be entitled to add or edit these later as well.
  7. Click Create.
Step 2 - Configure the rule

The window that opens once the rule is created shows additional sections and fields to further define the rule.

  1. Check the option Auto apply if you want the rule to apply automatically to all messages, without having to do anything.
  2. If you have enabled the Behavioral tracking and data protection, and wish to apply this rule only to contacts who have accepted cookies, thus that their actions be tracked in your communications, check the option Apply only to tracked contacts.
  3. If you have made any changes, make sure to click Save.
  4. As needed, edit or add URLs. To add a new one, click on Add an URL and enter the desired addresses. To edit an existing one, select the URL and click on the Edit. In the edit window, make the correction and click Save.
  5. To define parameters, click Create a parameter.
    1. In the edit window, give the parameter a name.
    2. In the Parameter field, enter the parameter, that is the code to be added to the specified URLs.
    3. In the Communication type field, make sure to specify the same communication type as the rule, or the default value.
      IMPORTANT - If the rule applies to a specific communication type, the parameter MUST ALSO apply to the same communication type, or to all communication types.
      Example: Communication type of rule = Promotion, Communication type of parameter = Promotion or Default value.
    4. Check the Hide if empty option if you don't want the parameter to show in the link when no data is provided.
    5. If you check the Replace if already exists option AND that the parameter already exists in the link, the parameter in the message will be replaced with that of the link. If no parameter exist, then it is simply added.
    6. Specify the value of the parameter. Several options are possible:
      • Predefined value - Each parameter can contain a generated value, whether defined or taken dynamically from the system.
        Examples of dynamic content

        Message data

        • [[=Message.idMessage;]] = Message id
        • [[=Message.MessageName;]] = Message name
        • [[=Message.idCategory;]] = Message communication type
        • [[=Message.Headers.Subject;]] = Message object


        Mailing related data

        • [[=Mailing.dtMailing.ToString("yyyyMMdd");]] = mailing date, in YYYYMMDD format
        • [[=Mailing.idBatch;]] = mailing batch id (the mailing itself)
      • If the value is predefined, it is also possible to offer to edit the value just before sending the message by selecting the Editable option.
      • Different for each message - This option lets the user specify the value to add to links when editing the message, before sending it.
        When this option is checked, you can also choose to set the value as Required; this way, if a parameter value is not provided, the message cannot be sent.
  6. Once the parameter is configured, click Create.